LLM-agnostic Β· tool-calling Β· zero build

One assistant that actually does things.

Search YouTube, read and send email, and post to Telegram, Slack or Discord β€” all from a single chat. The model decides when to call a tool, and only the integrations you've configured are ever exposed.

  • 8built-in tools
  • 5integrations
  • 0build steps
chat β€” session web-8f2a
β–Ά
youtube_searchβ€œpython asyncio tutorial”
βœ‰
email_sendqueued Β· awaiting confirm
Live demo

Talk to the assistant

This demo runs entirely in your browser with a simulated agent, so you can feel the tool-calling flow without any keys. Point it at the real FastAPI backend any time.

β—†
Assistantsimulated Β· ready
DEMO
Features

Small surface, sharp edges

Everything you need to wire an LLM to real services β€” and nothing you don't.

🧠

LLM-agnostic

gpt-4o-mini, Claude, Gemini, Groq, Ollama, OpenRouter β€” anything LiteLLM supports. Swap models with one env var.

πŸ”

Tool-calling loop

The model decides when to call a tool. Results are fed back into the conversation until it produces a final answer β€” up to a configurable iteration cap.

πŸ›‘οΈ

Graceful degradation

Integrations without credentials are hidden from the model entirely, so it never promises something it can't actually do.

πŸ”Œ

Two backends

Call provider APIs directly, or route through a local OpenConnector runtime if you've already connected the apps there.

⚑

Web UI + CLI

A zero-build single-page chat interface, plus a REPL for scripting and one-shot prompts from the terminal.

πŸ”

Secrets stay secret

Credentials are read from the environment only and never logged. The server binds to 127.0.0.1 by default.

Integrations

Eight tools, five services

Each one is registered only when its credentials are present.

β–Ά

YouTube

  • youtube_searchSearch videos
  • youtube_video_detailsMetadata + stats

YOUTUBE_API_KEY

βœ‰

Gmail

  • email_listFull Gmail query syntax
  • email_readRead a full message
  • email_sendSend mail

GMAIL_ACCESS_TOKEN Β· refresh trio

➀

Telegram

  • telegram_send_messagePost to a chat

TELEGRAM_BOT_TOKEN

#

Slack

  • slack_send_messagePost to a channel

SLACK_BOT_TOKEN

β—ˆ

Discord

  • discord_send_messagePost to a channel

DISCORD_BOT_TOKEN

Architecture

How a message flows

A thin agent loop sits between your chat and the outside world.

πŸ’¬ Web UI / CLI your message
β†’
πŸ” Agent loop LiteLLM Β· tool calls
β†’
🧰 Tool registry only what's configured
β†’
🌐 Services YouTube · Gmail · chat
1

You ask

The message is appended to the session history and sent to the model.

2

Model decides

It either answers directly or emits one or more tool calls with JSON arguments.

3

Tools run

Each call is dispatched to the matching integration; results go back to the model.

4

You get an answer

The loop repeats until the model replies in plain language β€” then history is trimmed.

Quick start

Running in under a minute

Only the LLM key is required. Every integration is optional.

terminal
cd ai-chatbot
pip install -r requirements.txt

cp .env.example .env
# edit .env: set CHATBOT_MODEL and LLM_API_KEY

python app.py        # β†’ http://127.0.0.1:8000
python cli.py        # …or the REPL
.env
CHATBOT_MODEL=gpt-4o-mini
LLM_API_KEY=sk-…

# optional integrations
YOUTUBE_API_KEY=…
GMAIL_ACCESS_TOKEN=…
TELEGRAM_BOT_TOKEN=…
SLACK_BOT_TOKEN=…
DISCORD_BOT_TOKEN=…

# or route through a local runtime
CHATBOT_BACKEND=runtime
OPENCONNECTOR_URL=http://localhost:3000
HTTP API

Five endpoints, no surprises

The web UI is just a client of this API β€” build your own on top.

MethodPathBodyDescription
GET/β€”Chat UI
GET/api/healthβ€”Model, backend, configured tools
GET/api/toolsβ€”Tools available to the model
POST/api/chat{"message","session_id"}Send a message
POST/api/reset{"session_id"}Clear a session
curl
curl -s localhost:8000/api/chat \
  -H 'content-type: application/json' \
  -d '{"message":"Find a 10-minute Python tutorial on YouTube","session_id":"demo"}'

Give your assistant hands.

Clone it, drop in a key, and start asking for real work.