WEBVTT

00:00.200 --> 00:01.000
Welcome!

00:01.000 --> 00:06.080
In this short tutorial, I'm going to show you how to create an account on Twilio, which in short,

00:06.120 --> 00:13.000
is a platform where you can buy phone numbers and then import them into tools like VWAP and retail I.

00:13.920 --> 00:19.520
This will be essential for building the AI voice agents we are going to create in this course.

00:20.600 --> 00:26.880
Now, although you can buy phone numbers directly in retail, AI and Vaapi, there are some limitations

00:27.320 --> 00:28.120
on retail AI.

00:28.600 --> 00:34.200
Outbound international calls are not supported, so if you buy a number directly there, you won't be

00:34.240 --> 00:36.480
able to make calls outside your country.

00:36.480 --> 00:37.400
And on Vaapi.

00:37.600 --> 00:42.640
The functionality to create phone numbers is only available for US based numbers.

00:42.640 --> 00:48.280
So if you need numbers from the other regions, you have to use the import phone numbers feature anyway.

00:48.520 --> 00:55.680
So the easiest and most flexible option is to buy your number on Twilio and import it into retail AI

00:55.720 --> 00:56.440
or Vaapi.

00:56.480 --> 01:02.380
If you want to build AI voice agents on these platforms, you can always come back to this lesson and

01:02.380 --> 01:04.740
follow it step by step whenever you need to.

01:04.780 --> 01:08.060
Set up a voice agent with little AI or Vaapi.

01:08.220 --> 01:09.340
So let's get started.

01:09.900 --> 01:16.860
If you are new to Twilio, it's a communication platform that provides virtual phone numbers, messaging,

01:16.860 --> 01:20.060
and voice services in over 100 countries.

01:20.540 --> 01:26.900
And using Twilio, you can buy a virtual phone number and make calls as if you have a local presence

01:26.900 --> 01:28.140
in multiple countries.

01:29.060 --> 01:30.460
And that's why we are using it.

01:31.180 --> 01:36.500
So if you are using Twilio for the first time, you will get a $15 shell credit.

01:37.340 --> 01:40.100
Usually it costs just $2 a month.

01:41.380 --> 01:44.220
So basically you have seven months for free.

01:45.700 --> 01:47.140
First, create an account.

01:52.940 --> 01:55.660
Now go to the phone numbers section.

01:59.580 --> 02:00.980
Which is in the left menu.

02:01.810 --> 02:04.770
then under manage by number.

02:14.730 --> 02:16.850
And search for a number in your country.

02:17.810 --> 02:28.770
After you have bought a number, we need to connect it to our agent via SIP trunking.

02:31.050 --> 02:37.650
So go to search bar and search for SIP.

02:40.690 --> 02:42.610
Click on elastic SIP trunks.

02:45.210 --> 02:49.170
Give it a friendly name and click create.

02:51.090 --> 02:52.970
Now we need to configure the connection.

02:52.970 --> 02:54.610
And this is really important step.

02:54.970 --> 02:56.690
So please don't miss it.

02:57.170 --> 02:58.770
Otherwise it won't work.

03:00.010 --> 03:03.030
So under general We have to.

03:06.870 --> 03:14.550
Enable code transfer as I prefer and also enable transfer.

03:18.830 --> 03:26.390
Then under termination provides some name right here.

03:27.830 --> 03:28.750
Then scroll down.

03:30.870 --> 03:32.270
Create credentials.

03:34.550 --> 03:37.590
So give it some friendly name username and password.

03:38.110 --> 03:39.270
Then click create.

03:43.950 --> 03:45.430
And that's it in this section.

03:47.270 --> 03:53.030
The next one origination we're going to add the origination URL.

03:53.550 --> 04:00.190
So let's copy it from the retail documentation I'll attach the web page as a resource for this lesson.

04:00.590 --> 04:01.930
So copy it.

04:01.970 --> 04:03.370
Add a new origination.

04:03.770 --> 04:07.170
Paste the URL here and click add.

04:08.570 --> 04:09.690
And on the numbers.

04:14.770 --> 04:24.610
Just add the number you bought on Twilio by clicking on add a number and add an existing number.

04:26.650 --> 04:28.050
So you can select from the list.

04:31.530 --> 04:34.010
Now go back to termination.

04:36.050 --> 04:37.210
Copy this sip.

04:41.490 --> 04:44.090
Go to your retail account.

04:46.730 --> 04:48.010
And under phone numbers.

04:50.050 --> 04:53.690
Connect to your number via SIP trunking.

04:55.970 --> 04:57.210
And paste it right here.

04:59.610 --> 05:05.950
Also, you need to provide the phone number you just bought and click save.

05:11.470 --> 05:17.470
And now we successfully connected the phone number we bought to our agent on retail AI.

05:18.190 --> 05:21.750
Now let's actually look at how to set up a phone number in.

05:22.350 --> 05:24.470
Your agent can actually make calls.

05:25.390 --> 05:27.230
So click on phone numbers.

05:30.590 --> 05:31.590
Create phone number.

05:32.870 --> 05:36.830
Now if you are based in the US you can use the number.

05:37.470 --> 05:41.270
So just enter area code and click create.

05:41.270 --> 05:43.390
And these numbers are completely free.

05:43.390 --> 05:47.670
And you can have up to ten of them in your account.

05:47.950 --> 05:53.790
So if you are outside the US like me you will need to use the import tab.

05:54.030 --> 06:00.990
So you need to go to Twilio, create an account, purchase a number and then import it here.

06:01.390 --> 06:10.660
So once you buy a phone number on Twilio and the phone numbers in folio section, scroll down.

06:13.100 --> 06:14.460
You should see account info.

06:15.300 --> 06:17.220
Just copy this account ID.

06:21.140 --> 06:22.300
And paste it right here.

06:24.900 --> 06:28.220
The same for of token.

06:29.540 --> 06:30.340
Copy it.

06:32.700 --> 06:33.580
Paste it here.

06:38.660 --> 06:40.300
And your phone number.

06:45.020 --> 06:47.540
Then simply click on import from Twilio and that's it.

06:48.420 --> 06:49.260
Alright great.

06:49.820 --> 06:57.220
Once you successfully import the number from Twilio, you have to assign your voice agent you just created

06:57.260 --> 06:57.900
right here.

06:58.100 --> 06:58.660
All right.

06:58.660 --> 06:59.900
That's it for this lesson.

07:00.060 --> 07:02.740
I hope it was helpful and see you in the next one.
