Skip to content
MYZATECHSOLUTIONS
Completed · Training demoAI & Intelligent Applications

Agentic Chatbot Training Demo

Flask web chatbot built for a live training session to show how a chatbot becomes agentic by deciding when to search the web.

Training session demo

Overview

A teaching project built step by step in front of attendees: from a terminal script to a web chatbot that chooses for itself when to use web search.

The problem

Attendees needed a concrete, hands-on way to see the difference between a simple chatbot and an agent that uses tools.

The solution

Started with a terminal script, then a Flask web interface, then added the web search tool so the model could decide when to look things up.

Architecture and workflow

  1. User message in the web interface
  2. Flask backend
  3. Claude decides whether to search
  4. Web search tool (when needed)
  5. Answer returned to the page

Implementation details

  • API keys in environment variables, request logging, and input validation.
  • Retries with backoff and clean JSON error responses.
  • Debug mode off for the live demo.

Challenges and lessons learned

  • The first version used another provider's API; quota errors and a deprecated SDK led to switching to Claude.
  • Getting the Flask templates and static folder structure right.

More work

  • Completed

    AI & Intelligent Applications

    WhatsApp AI Assistant

    WhatsApp bot that understands text and voice notes in English or Roman Urdu and replies in the same language, using Claude and Azure AI Speech.

    • Python
    • Flask
    • Meta WhatsApp Cloud API
    • Anthropic Claude API
    • +3 more
  • Completed

    AI & Intelligent Applications

    Web Research Agent

    Streamlit chat agent that answers questions with current, search-backed information using Claude's built-in web search tool.

    • Python
    • Anthropic Claude API
    • Claude web search tool
    • Streamlit
    • +1 more
  • In progress

    AI & Intelligent Applications

    Fraud Detection System

    Credit-card fraud detection comparing supervised, unsupervised, and deep-learning models on a heavily imbalanced dataset, with a multi-agent layer planned.

    • Python
    • scikit-learn
    • TensorFlow
    • Keras

Need something similar?

Tell me about your project and let's explore whether this kind of solution fits.

Start a Conversation