Hugging Face
A voice agent was built to let farmers ask questions aloud in their own language and get spoken answers grounded in a 154-page English agricultural handbook. The agent uses CUGA, IBM Research’s open-source agent harness, as a text-in, text-out brain with speech-to-text and text-to-speech layers around it. The hardest challenge was cross-lingual retrieval: a Hindi question would retrieve wrong passages because CUGA’s default embedding model is English-only. The fix was to use a multilingual embedding model (intfloat/multilingual-e5-large) so the same meaning lands in the same place regardless of language. The prompt asks the model not to produce Markdown or citation tags, and a light formatter strips any that slip through before speech. Simple input checks catch off-topic questions, and if one gets through the model starts its reply with OFF_TOPIC so the app can swap in a polite redirect without a second LLM call.
Twilio
This blueprint describes an inbound voice AI agent built with Twilio and AWS that balances natural conversation with deterministic compliance steps. It uses Twilio’s Conversations Layer for Voice AI and AWS services including Amazon Bedrock for the LLM, DynamoDB for policy tables, and KMS for token encryption. The architecture uses a Lambda-based front door for scripted tasks like greeting and caller verification, and a container on AWS Fargate for AI-driven conversation. Call-bound tokens keep authentication out of the AI model, preventing prompt injection from unlocking sensitive tools. The system supports step-up verification, handoff to human agents with full context, and an admin console for live policy changes. The blueprint is intended as a starting point for enterprises to adapt to their own identity systems and compliance requirements.
Twilio
A production voice AI agent requires more than a model and prompt; callers expect fluid conversation, interruption handling, and safe system actions. Twilio provides the Conversations Layer for Voice AI, handling connectivity, call control, speech, turn-taking, shared context, and handoff infrastructure. The customer builds and owns the agent runtime, including models, prompts, tools, guardrails, and business logic. Twilio’s six rules for AI agents include being agentic where possible and deterministic where required, keeping authority out of the model, and testing the agent like code. The architecture is designed to maximize the number of calls the agent resolves independently, with clean handoff to a human when needed.