We saw an introduction to “AI agents” in yesterday’s post. To recap, AI agents, accomplish simple/complex business requirements. It can be a simple chatbot or an agent that detects why electricity bills are high for any given customer.

Given this background, let us create a basic AI Agent chatbot in Python.

[withcode id=”YVq”]

This is a vibe coded simple AI chatbot that answers just five questions. They are:

  1. “Hi” or “Hello”
  2. “How are you”
  3. “Who are you”
  4. “Bye”
  5. “Help”

If you do ask any other questions, it will give you a blanket answer such as this:

“So far, I am programmed to only answer five inputs 🙂 and cannot understand this input “

This AI agent runs within the browser itself…do run it and let me know how it is…:)

Just press the ‘Green Triangle’ button on the right side of the screen in the program above and you can see the AI agent in action 🙂

This post is for alphabet ‘B’ for BlogchatterA2Z by @blogchatter!

Related Posts

2 thoughts on “Basic AI agent Chatbot

Leave a Reply