Home › Agentic AI with Bunty › Lesson 1

Chatbot vs agent

Agentic AI with Bunty, lesson 1 of 6. A short Hinglish video, simple English notes, free.

Open the interactive lessonWatch on YouTube

The idea

Ask ChatGPT to "book my Goa trip" and it writes a long answer. No ticket or hotel actually gets booked.

A chatbot (Bunty version 1) only gives advice: "Sir, you could write the email like this…". You still do the work yourself.

An agent (Bunty version 2) has a laptop, email and a calendar. It finds a free slot, sends the email and tells you the meeting is fixed.

An agent has three extra things:

The code: Chatbot vs agent in Python

Save this as bunty_agent.py and run it with python bunty_agent.py:

# Bunty v1 (chatbot) only gives advice. Bunty v2 (agent) uses tools and does the job.
calendar = {"Mon 10:00": "busy", "Mon 11:00": "free", "Mon 12:00": "busy"}
sent = []

def send_email(to, text):           # a tool: it really changes something
    sent.append((to, text))
    return "sent"

def chatbot(task):
    return "Sir, you could find a free slot and write an email like this..."

def agent(task):
    slot = next(t for t, s in calendar.items() if s == "free")   # use the calendar tool
    send_email("client@example.com", f"Meeting fixed: {slot}")   # use the email tool
    calendar[slot] = "busy"
    return f"Sir, meeting fixed at {slot}. Email sent."

task = "Fix a meeting with the client"
print("Chatbot:", chatbot(task))
print("Agent:  ", agent(task))
print("Emails sent:", sent)

Output:

Chatbot: Sir, you could find a free slot and write an email like this...
Agent:   Sir, meeting fixed at Mon 11:00. Email sent.
Emails sent: [('client@example.com', 'Meeting fixed: Mon 11:00')]

The chatbot function only returns advice. The agent function uses two tools (the calendar and send_email) and really finishes the job.

Try it: change the code

Try it yourself

Remember

A chatbot tells you; an agent does it.

Goal: tell Bunty what "done" looks like →

All lessons: Agentic AI with Bunty