Getting Started
Last updated
Last updated
Go to and Get started with a free Twilio account (No credit card required).
Go to the console > . Under this menu > Numbers and Get a number
Under the Programmable Voice Menu > TwiML > then
Click "+" to create a new TwiLM app
Give your app a friendly name, then click save.
Go to
Click "New API key"
Give it a friendly name (ex my bubble app voice)
Click Create
Copy the SID and Secret and store them in a safe place. Later you will add them to the .
Create a new service. Give it a name (ex yourappname)
Add the following environment variables
CALLER_ID (optional if you're planing on using mutliple Twilio numbers ignore this step)
Create a new function. Click "Add +" -> Add Function -> give the function a name (ex access-token)
Add following code
Make sure the function is Public, Click the icon next to the function and select Public
Save
Deploy
Create a new function. Click "Add +" -> Add Function -> give the function a name (ex client-voice)
Add following code
Replace context.CALLER_ID
with event.appCallerId
if you are using multi Twilio numbers
Make sure the function is Public, Click the icon next to the function and select Public
Save
Deploy
To get your capability token URL:
Copy URL (https://xxxx-####.twil.io/client-voice)
Then add the URL to your app
Select your app
In Voice > Request URL > Paste your client voice URL (https://xxxx-####.twil.io/client-voice)
To get your access token URL:
Copy URL it should be something like https://xxxx-####.twil.io/capability-token
Paste this Capability token URL in your bubble plugin
Make sure you have all the plugin settings filled as shown below. Go to Plugins > Twilio Plugin > Fill out the username, password, accessTokenURL, & App Owner Email
The value is a number that corresponds to the different levels of logging available. For best practice only change the log level when needed.
0
TRACE
1
DEBUG
2
INFO
3
WARN
4
ERROR
5
SILENT
Click "+" to create a new function, then select "Twilio Client Quickstart".
Under the function configuration code replace const identity = 'the_user_id'
with const identity = event.identity
Go to
TWIML_APP_SID: add the voice application SID from the
TWILIO_API_KEY: add the API key from the
TWILIO_API_SECRET: add the API key secrete from the
Go to , then manage.
Click the then
Go to
Go to , then manage.
Click service then the
Go to ,
Then Enter your APP_SID ( you will find it under click your app then copy the app SID) and CALLER_ID (Your formatted as +11231231234)