Skip to content

Commit 2a3af30

Browse files
committed
feat: conversation-relay
1 parent 8f3c8b1 commit 2a3af30

File tree

12 files changed

+474
-135
lines changed

12 files changed

+474
-135
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ The reference components demonstrate several common Twilio Voice use cases. Thes
2020
- Quality metrics
2121
- Warnings
2222
- Errors
23+
- Conversation Relay
24+
- Make outgoing call to connect with an agent
25+
- Websocket server
26+
- Basic OpenAI integration
2327

2428
## Installation
2529

@@ -63,10 +67,15 @@ CALLER_ID=+11234567890
6367

6468
# If developing locally and running the Reference Components locally, consider using a tool like ngrok to proxy the server endpoints. Once proxied, change CALLBACK_BASE_URL to the ngrok URL endpoints.
6569
# See more info about ngrok by visiting https://ngrok.com.
66-
CALLBACK_BASE_URL=https://foo.ngrok.dev
70+
# Note: do not include "https://" or "wss://" in the URL.
71+
CALLBACK_BASE_URL=foo.ngrok.dev
6772

6873
# Default identity to use
6974
DEFAULT_IDENTITY=alice
75+
76+
# twilio-voice-conversation-relay
77+
# See https://platform.openai.com/settings/organization/api-keys
78+
OPENAI_API_KEY="sk-proj......."
7079
```
7180

7281
## Run the project locally

example.env

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ CALLER_ID=+11234567890
2525

2626
# If developing locally and running the Reference Components locally, consider using a tool like ngrok to proxy the server endpoints. Once proxied, change CALLBACK_BASE_URL to the ngrok URL endpoints.
2727
# See more info about ngrok by visiting https://ngrok.com.
28-
CALLBACK_BASE_URL=https://foo.ngrok.dev
28+
# Note: do not include "https://" or "wss://" in the URL.
29+
CALLBACK_BASE_URL=foo.ngrok.dev
2930

3031
# Default identity to use
3132
DEFAULT_IDENTITY=alice
33+
34+
# twilio-voice-conversation-relay
35+
# See https://platform.openai.com/settings/organization/api-keys
36+
OPENAI_API_KEY="sk-proj......."

0 commit comments

Comments
 (0)