

Build a Gemini Voice Agent with Twilio ConversationRelay
Build a voice agent that answers a real phone call, thinks with Google Gemini, and takes action.
In this live Build Session for the Twilio Voice AI Hackathon, Rishab Kumar from Twilio walks through a Python voice agent from first ring to spoken answer. You’ll connect an inbound Twilio call to Google Gemini using ConversationRelay and FastAPI, manage conversation context, write responses that sound natural out loud, and let Gemini call a Python tool to look up store hours.
What you’ll learn
How a caller’s voice reaches an LLM through ConversationRelay
How Gemini decides when to call a tool, and how the result becomes a spoken reply
How to write prompts and responses for speech, not text
How to keep context across a live phone conversation
Details
When: Thursday, January 7, 2027, 10:00 to 10:45 AM ET
Format: 30-minute live demo, then 15 minutes of open Q&A on Zoom
Level: Beginner. Some familiarity with Python, APIs and environment variables helps.
Hackathon track: Track 1, Voice AI Agent
Recording: everyone who registers gets it by email afterward
Want to build along? Request your $15 Twilio promo code by Monday, January 4 via the [credit request form]. Codes can take up to 3 business days to arrive, and ConversationRelay isn’t available on a free trial account.
Resources
FAQs
What is a Devpost Build Session?
A free, live technical session where an engineer from a hackathon sponsor builds something on screen and answers questions. Sessions are recorded and posted on YouTube.
What will I build in this session?
A Python voice agent that answers an inbound phone call, sends what the caller says to Google Gemini through Twilio ConversationRelay, calls a Python function to get store hours, and speaks the answer back.
What is Twilio ConversationRelay?
A Twilio service that handles speech-to-text and text-to-speech on a live call, so your app gets the caller’s words as text and sends back text to be spoken. You bring the LLM and the logic.
Do I need to register for the Twilio Voice AI Hackathon to attend?
No. Anyone can join. If you plan to submit a project, register at twilio.devpost.com before the January 25, 2027 deadline.
Can I use a Twilio free trial account?
Not for this build. Free trial accounts don’t include ConversationRelay. Request a $15 promo code through the [credit request form] and upgrade your account. Allow up to 3 business days.
What should I set up before the session?
A Twilio account, a Google Gemini API key, and Python installed locally. The setup guide in the sample repository lists everything else.
Is this session beginner friendly?
Yes. You don’t need prior experience with voice apps or Twilio. Basic Python and comfort with APIs is enough.
Can I watch the recording if I can’t attend live?
Yes. Register and we’ll email you the recording and resources after the session.
Can I ask questions during the session?
Yes. Submit questions in the Zoom Q&A panel at any time. The last 15 minutes are open Q&A with the presenter.
Which hackathon track does this session support?
Track 1: Voice AI Agent. It’s also a working starting point for any project built on ConversationRelay.