Skip to main content

View Phone & RAG Example on GitHub

Check out the complete Phone & RAG example in our GitHub repository
In this example, we build both inbound and outbound calling agents using Twilio, Stream, and RAG backends (Gemini FileSearch or Turbopuffer). The inbound agent answers calls and uses a knowledge base to provide product information. The outbound agent can make calls programmatically—like booking a restaurant reservation. This demonstrates how to connect AI voice agents to the phone network with real-time knowledge retrieval.