
Telnyx has published a working example of an AI phone agent that handles price-quote calls end-to-end without a human.
The agent answers, asks 3–4 qualifying questions, and delivers a structured JSON quote with line items and a monthly total before the caller hangs up.
The quote is then extracted from the conversation and stored, making it immediately available via API for downstream billing or CRM systems.
What happened
Telnyx released an open-source Python application (102 lines) that uses Telnyx Call Control and Llama 3.3 70B AI to answer incoming calls, ask qualifying questions, and generate structured price quotes in real time without human intervention. Callers hear text-to-speech greetings, speak naturally, and receive a quote with line items and monthly total before hanging up.
Why it matters
Traditional quote flows require web forms, email delays, or sales handoffs. This agent eliminates friction by conducting a conversational interview on the phone and extracting clean JSON quotes (with product, quantity, unit price, and subtotal) that are immediately accessible via API — ready to pipe into CRM systems or billing platforms. Businesses can customize the product catalog and questioning style by editing the system prompt.
What to watch
The app stores quotes in memory by default; production deployments will need a database (PostgreSQL or Redis), multi-worker concurrency (gunicorn), timeout handling, webhook signature verification, and integration with CRM systems like Salesforce or HubSpot. Code is available to clone and deploy locally with ngrok in minutes.
Ask the AI about this article →
The article presents a working end-to-end example of an AI phone agent designed to eliminate friction from the price-quote sales process. Traditional flows require callers to fill out forms, wait for sales emails, or be transferred to a human — all friction points that reduce conversion. This agent runs a real-time voice conversation, adapts its questions based on the caller's responses (e.g., asking about SMS volume only if the caller mentioned SMS), and delivers a quote on the call itself.
The technical architecture is simple: incoming calls trigger Telnyx webhooks, which drive a state machine in a Flask app. Each event (call initiated, call answered, speech gathered, call ended) triggers the next action. The AI model (Llama 3.3 70B) handles two distinct tasks — conducting the conversation and extracting structured data from it afterward. The post-call extraction is the key innovation: rather than relying on the AI to produce structured JSON during the conversation (which could be error-prone), the app replays the transcript with a specific extraction prompt, yielding a clean, machine-readable quote object ready for integration with billing systems or CRMs.
For production, the article notes that in-memory storage must be replaced with a database, concurrency needs to be managed with a WSGI server (gunicorn), and error recovery and monitoring are essential. The customization surface — the system prompt and pricing catalog — is explicit, allowing businesses to adapt the agent to different product catalogs (consulting, SaaS, manufacturing) and questioning strategies without touching the core logic.
For example, today's edition would include:
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. Q&As are published on this page for other readers too.
Mitsubishi Electric and its U.S

EDM producer Max "H4RRIS" Harris and Italian turntablist-turned-producer Nihil Young are publicly calling out…

Beatport now bans tracks made entirely or mostly by AI

The Fire and Disaster Management Agency plans to launch a model project in fiscal 2027 to use AI in handling 1…

AWS announced an integration where Amazon Quick, an agentic AI workspace, connects to fal's generative media p…

Leafnet and BBIX began collaborating in August 2026 to build a new service that combines voice and AI
