File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed
examples/03_phone_and_rag_example Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ Copy the ngrok url from the first tab. And in a new tab start your http endpoint
5757```
5858cd 03_phone_and_rag_example
5959uv sync
60- RAG_BACKEND=turbopuffer NGROK_URL=replaceme.ngrok-free.app uv run phone_and_rag_example .py
60+ RAG_BACKEND=gemini NGROK_URL=replaceme.ngrok-free.app uv run inbound_phone_and_rag_example .py
6161```
6262
6363C. Twilio console
@@ -70,26 +70,17 @@ replaceme.ngrok-free.app/twilio/voice
7070
7171D. Call the number
7272
73- Call the number. You'll end up talking to the agent
74-
75-
76- ### Running the example - Outbound call
77-
78- ```
79- cd 03_phone_and_rag_example
80- uv sync
81- RAG_BACKEND=turbopuffer TWILIO_NUMBER=numberhere uv run outbound_example.py
82- ```
73+ Call the number and you'll end up talking to the agent.
74+ Note that there is some added latency during development if you're not running in US-east.
8375
8476
8577## Understanding the examples
8678
87- ### Twilio
88-
89- Twilio works by creating a websocket based media stream.
90- This logic is the same for both inbound and outbound.
91-
79+ ### Twilio & Twiml
9280
81+ Both the inbound and outbound code for twilio generate a TwiML doc.
82+ This TwiML doc starts the media websocket connection to Twilio.
83+ After that it behaves like a regular agent.
9384
9485## RAG
9586
You can’t perform that action at this time.
0 commit comments