Python-powered chat apps with Twilio and SendGrid Transcripts
Chapter: Messaging and workflows with Twilio Studio
Lecture: Twilio dashboard
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
To begin building our application. We're going to start over on twilio.com,
0:04
and you need to create an account.
0:06
It's free, but you have to set one up, since I've already logged in.
0:09
If I click log in, it takes me straight to the Twilio dashboard.
0:13
And over here there's a couple of things you can use to manage your account and
0:17
notice. I have a few things that are stuck to the side that might not
0:20
show up in yours. So the first thing that we want to do is actually
0:24
find the relevant sections because there's many things you can do over here in the twilio
0:28
dashboard, and we want to pin those, so we can just quickly jump around them
0:32
and not get distracted with other stuff.
0:34
So if you expand this out,
0:35
what we want to do is we're gonna pin programmable messaging.
0:38
Just click that so we we pin that one.
0:43
If you scroll down, we're going to use the studio to develop our workflow and
0:47
our message exchange. Once we've done,
0:49
those two things should have them pinned on the left.
0:53
In the messaging Section though does a little information about what's been going on.
0:58
A few errors we may have had potentially as we're developing our application,
1:03
Now the part that's going to be relevant for this course is under the try it out
1:07
section and we can do SMS text messages.
1:10
But we're going to do whatsApp. Now
1:13
In order to use WhatsApp, you have to set up your account.
1:17
You have to come over here and you have a unique joint code for this number
1:22
here. What you need to do is find that code and text it to this
1:26
number you can see down here.
1:27
It says your sandbox for a particular WhatsApp account is valid for three days and worked
1:33
on it for a while. It's going to expire,
1:34
and you have to come back and reactivate it with this same code.
1:37
So it says, we're waiting for you to send a message.
1:40
Let's go and do that. Now you saw I was already working with this earlier
1:45
so it's actually okay, but just to take you through the workflow,
1:48
I'm going to send that message here, as it's fantastic.
1:53
You're all set. You can now send and receive to this particular message.
1:57
You can reply Stop to make it stop or if you wait too long,
2:01
it's going to expire, right,
2:02
So now we're going to be able to interact with this.
2:05
As we develop our application through our WhatsApp account,
2:09
you'll notice here that I'm using WhatsApp the desktop version.
2:12
But of course, you can use it from your phone or your tablet or whatever
2:14
It doesn't really matter. The app you're using to send the WhatsApp messages.
2:19
And there it is. Message received.
2:21
So we've pinned are programmable messaging and we've set up our WhatsApp sandbox here.
2:27
The other thing that's interesting is studio,
2:29
which we pinned, and this is where we're going to build out our application, notice
2:33
It has our recent workflows.
2:36
This is the one I built ahead of time to show you what's going on.
2:39
We could delete it. It opened the logs and in the logs,
2:42
you'll actually see running workflow. So here's somebody who is partially through one of these
2:46
workflow conversations, and you can actually stop it to reset it.
2:51
But what we're gonna do is we'll go create a new one,
2:53
a cloud city one, that will build up through this entire course, so those are
2:57
the three things. Well, two things.
2:59
So we've got our dashboard, but we also need to pin programmable messaging and enable
3:03
our WhatsApp sandbox for our particular account.
3:06
And then we're going to use studio to create these workflows that orchestrate the messages that
3:11
come in from WhatsApp, interact with the various API's and send messages ultimately over to our Flask web app.