AI Voice Agent for Business
Answers inbound calls, qualifies leads and books appointments, with a person approving every sensitive action.
OpenAI Agents SDK · MCP server with 10 tools · 158 offline tests · demo data only

Small service businesses miss calls and enquiries when nobody is free to answer, but letting an AI create customer records, book technicians or cancel appointments on its own is risky.
The agent handles the conversation and answers from the company's own knowledge base, or says it does not know. Read-only lookups run immediately, while every tool that changes data pauses the run until a person approves or rejects it. An approved call runs with exactly the arguments that were shown, and the gate fails closed on errors, timeouts and unknown tools.
Key features
- 01
Two modes from the same instructions: Realtime speech-to-speech voice and a text chat mode. The greeting says it is an AI assistant.
- 02
RAG over a local knowledge base (offline TF-IDF embeddings, or OpenAI text-embedding-3-small) that answers with sources or says "I don't know".
- 03
MCP server with 10 CRM and calendar tools over stdio or streamable HTTP, each tagged read-only, sensitive or destructive.
- 04
Human-in-the-loop gate: creating, updating, qualifying, noting, booking and cancelling all wait for a person, and every decision is logged.
- 05
Deterministic lead scoring from 0 to 100 using budget, timeline, service fit and contact details, with every point explained and hot, warm and cold tiers.
- 06
Guardrails that treat caller text as untrusted data, plus structured, redacted JSONL session logs of every turn, tool call and decision.
Architecture
- 1Caller (voice or text)
- 2AI agent (OpenAI Agents SDK, Realtime or text mode)
- 3search_knowledge (local RAG index) and read-only MCP tools
- 4sensitive MCP tools
- 5human approval gate
- 6demo CRM and calendar store
- 7redacted session logs
Results
The foundation, MCP server, RAG layer and agent with approvals are complete, with 158 tests that run offline in CI on Python 3.11 to 3.13. All business data in the repository is fictional demo data.