You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.Create a `.env`file from the `example.env` file. Go through the [quickstarts](https://www.twilio.com/docs/voice/sdks/javascript/get-started) for more information about these variables.
42
+
3.Copy `example.env`to `.env`, then supply the required values. For details about each variable, see the [quickstart](https://www.twilio.com/docs/voice/sdks/javascript/get-started).
43
43
44
44
```bash
45
45
cp example.env .env
46
46
```
47
47
48
-
4. In the Twilio Console, navigate to your `TwiML App` settings and set the `Voice Request URL` to the URL endpoint of your desired component. Options:
48
+
4. In the Twilio Console, open your **TwiML App** settings and set **Voice Request URL** to the endpoint for the component you want to test:
- Voice AI Assistant, access[http://localhost:3030/twilio-voice-ai-assistant?identity=bob](http://localhost:3030/twilio-voice-ai-assistant?identity=bob).
Copy file name to clipboardExpand all lines: example.env
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ API_KEY_SID=SKxxxxxxxxxxxxxx
12
12
# Twilio API secret
13
13
API_KEY_SECRET=xxxxxxxxxxxxxx
14
14
15
-
# Twilio TwiML App sid where the Voice Request URL is set to
16
-
#https://yourdomain/twilio-voice-dialer/twiml
17
-
#See more info about TwiML set up by visiting https://www.twilio.com/docs/voice/sdks/javascript#twiml-applications
15
+
# Twilio TwiML App SID
16
+
#The Voice Request URL must point to one of the /twiml endpoints listed in the README.
17
+
#For details, see https://www.twilio.com/docs/voice/sdks/javascript#twiml-applications
18
18
APP_SID=APxxxxxxxxxxxxxx
19
19
20
20
# Twilio auth token
@@ -23,14 +23,14 @@ AUTH_TOKEN=xxxxxxxxxxxxxx
23
23
# Caller ID
24
24
CALLER_ID=+11234567890
25
25
26
-
#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.
27
-
#See more info about ngrok by visiting https://ngrok.com.
28
-
#Note: do not include "https://" or "wss://" in the URL.
26
+
#Public base URL that Twilio can reach.
27
+
#If you run the components locally, use a tunneling service such as ngrok.
28
+
#Do not include the scheme (https:// or wss://) in the URL.
29
29
CALLBACK_BASE_URL=foo.ngrok.dev
30
30
31
31
# Default identity to use
32
32
DEFAULT_IDENTITY=alice
33
33
34
34
# twilio-voice-ai-assistant
35
35
# See https://platform.openai.com/settings/organization/api-keys
0 commit comments