Add Telephony to a Gemini Live Agent

Google for Developers · Beginner ·🤖 AI Agents & Automation ·13h ago
Thor from Google DeepMind walks through how to set up the Gemini Live API with Twilio and deploy it to Google Cloud Run, so anyone can call your Gemini voice agent from a regular phone number. Inbound and outbound calls, real-time audio streaming, and the same agent running in the browser and on the phone from a single deployment. What's covered: Using the GenAI Python SDK Twilio example from GitHub, building inbound and outbound call handlers with FastAPI and WebSockets, handling audio format conversion between Gemini and Twilio, deploying to Google Cloud Run with Secret Manager, and using Antigravity coding agent skills to accelerate the build. ] Grab your Gemini API key at Google AI Studio and your Twilio credentials at twilio.com to get started. Full example and setup instructions linked below. Resources: Find the tutorial →https://goo.gle/4cokC0t Find the code→https://goo.gle/4tYFYXV What are you building with Gemini Live? Drop it in the comments. Chapters 0:00 - Live Demo: Calling the Gemini Assistant on the Phone 0:51 - Introduction to Gemini 3.1 Flash Live & Twilio 1:16 - GitHub Examples & The Gen AI Python SDK 1:46 - Building the Integration with Coding Agents 2:57 - Code Walkthrough: FastAPI & WebSockets Setup 3:43 - Handling Twilio Inbound & Outbound Endpoints 5:25 - Audio Conversion (PCM to mu-law) & Partner Integrations 6:50 - Deployment to Google Cloud Run 7:35 - Web Browser Client Demo: Accents & Camera Vision Speaker: Thor Schaeff Products Mentioned: Google AI, Gemini
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

From Scattershot to Sniper: AI for Smarter Grant Lead Generation
Learn how AI can improve grant lead generation by shifting from manual searching to strategic curation and relationship building, increasing efficiency and personalization
Dev.to AI
Apple Took 50 Years for 3 CEOs — GUI Agents Went from Paper to Production in One
Learn how GUI agents rapidly evolved from concept to production in just one year, outpacing traditional tech industry milestones
Dev.to AI
Tim Cook Steps Down — Is the Mac Becoming the Next AI Agent Platform?
Apple's CEO transition may signal a new era for the Mac as an AI agent platform, learn how this shift can impact your work
Dev.to AI
Data Quality Management is not what it used to be
Learn how AI-Native and Agentic AI are transforming data quality management operating models
Medium · Data Science

Chapters (9)

Live Demo: Calling the Gemini Assistant on the Phone
0:51 Introduction to Gemini 3.1 Flash Live & Twilio
1:16 GitHub Examples & The Gen AI Python SDK
1:46 Building the Integration with Coding Agents
2:57 Code Walkthrough: FastAPI & WebSockets Setup
3:43 Handling Twilio Inbound & Outbound Endpoints
5:25 Audio Conversion (PCM to mu-law) & Partner Integrations
6:50 Deployment to Google Cloud Run
7:35 Web Browser Client Demo: Accents & Camera Vision
Up next
OpenClaw 4.20 Just Changed AI Agents Forever
Julian Goldie SEO
Watch →