Glimpses of Agentic AI practises

Published: (January 14, 2026 at 01:28 PM EST)
2 min read
Source: Dev.to

Source: Dev.to

Complaint Triage System

Cover image for Glimpses of Agentic AI practises

In continuation of my Agentic AI learning, I built a project called complaint‑triage‑system. Users can submit complaints via email. The backend uses SQLAlchemy for the database, and administrators access a separate dashboard where they authenticate with email and password secured by a JWT token.

Initially I used a Gemini API key for triaging complaints into high/medium/low categories and for analyzing the submitted text. After encountering glitches, I revoked the key. I then switched to the Grok API (free) which handled triage correctly, though its analysis was very keyword‑specific.

Development Challenges

  • JWT‑based tokenization proved cumbersome.
  • OTP‑based authentication was abandoned because the OTP appeared only in the backend server logs.
  • Lack of clear system design and workflow became a major red flag.

I created a create_admin script and stored the admin email and password in environment variables. After that, everything worked until I tried to send AI‑generated, customizable replies to users. An App password for my email didn’t work, but Twilio SendGrid saved the day. With a SendGrid API key, the application functioned without bugs. However, edited replies weren’t reaching the payload at first; after debugging, the issue was resolved and the system ran smoothly.

Deployment Hurdles

  • AWS Elastic Beanstalk caused HTTP/HTTPS mismatches because I was using AWS Amplify (HTTPS).
  • Switching to an EC2 instance with Nginx led to timeouts on the free tier and repeated command failures.

Despite these obstacles, the full‑stack application was completed and the GitHub repository now contains multiple commits.

My AWS free tier has expired, and I have many more projects to start and contribute to.

Back to Blog

Related posts

Read more »

𝗗𝗲𝘀𝗶𝗴𝗻𝗲𝗱 𝗮 𝗣𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻‑𝗥𝗲𝗮𝗱𝘆 𝗠𝘂𝗹𝘁𝗶‑𝗥𝗲𝗴𝗶𝗼𝗻 𝗔𝗪𝗦 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 𝗘𝗞𝗦 | 𝗖𝗜/𝗖𝗗 | 𝗖𝗮𝗻𝗮𝗿𝘆 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁𝘀 | 𝗗𝗥 𝗙𝗮𝗶𝗹𝗼𝘃𝗲𝗿

!Architecture Diagramhttps://dev-to-uploads.s3.amazonaws.com/uploads/articles/p20jqk5gukphtqbsnftb.gif I designed a production‑grade multi‑region AWS architectu...