DEV Community

Cover image for Glimpses of Agentic AI practises
Anushka Singh
Anushka Singh

Posted on

Glimpses of Agentic AI practises

In continuation of my Agentic AI learning I got to make a project complaint-triage-system in which users can submit their complaints via their email-id. For database I used Sqlalchemy and when admin intends to check the lodged complaints on separate dashboard, they have to authenticate with their email and password secured by JWT token. It took me so long because first I used Gemini API key and at last I had to revoke because some glitch happened to be there (as usual). Oh I completely forgot to write that why did I use API key because it was helping me to triage the complaint status to high/medium/low and it was responsible for analysis of complaint submitted but the twist came when I intended to create the email send reply button by admin side along with regenerate and edit button.

I don't know how but my gemini key crashed, I rushed into changing the models but it didn't work. I switched to grok API because it was free, triage was working correctly and the analysis was a bit short (very specific in keywords).In between all of this It was all pain to use JWT based tokenization , I had to cancel otp based authentication when entering email, the otp was appearing to me in my backend server. I got so confused, my biggest red flag was lack of system design or clear workflow, and I mean it you not only need mere inspiration,but also clarity in your aim...

LET'S Get back to the topic so i just made a create_admin file and added my email, password in the env. After this, everything was working fine and I finally wanted AI-generated customized editable reply to be sent to the user.. I used APP password of one of my email ids but again it didn't work out. What came as my saviour Twilio Sendgrid. Sendgrid API key and my application was working without bugs, I edited my reply to add some human touch and specific details to the email however the edited reply was not going to the payload.. I debugged one last time and magic it is running smoothly.

Deploying is another pain and I tried on AWS Elastic Beanstalk but that http and https mismatch because I was using AWS amplify(using https), I turned to EC2 and tried installing nginx but the timeout in free tier and repeated commands exhausted me...This is how my full-stack application came into the life and the github commits> 11 has other memebase.
Today My aws free tier expired and I have multiple quests to create many projects, to contribute.

Top comments (0)