Python-powered chat apps with Twilio and SendGrid Transcripts
Chapter: Welcome to the course
Lecture: What will we build?

Login or purchase this course to watch this video and the rest of the course contents.
0:00 We have a really fantastic application put together that we're going to build during this course
0:06 It's going to bring together, so many interesting things, a lot of cool stuff from Twilio and Send Grid,
0:11 but also a ton of cool Python and Flask and SQLAlchemy that we're going to write. So, let's talk through what this is going to be real quick,
0:18 and then we'll go into it much deeper as we get started later in the course, customers are going to be able to order cake from the bakery
0:24 and the way they do that is they send our official WhatsApp phone number. A message says, Hey, I want some cake.
0:31 There's gonna be a back and forth exchange, as you can see here, like what kind of cake do you want?
0:35 What kind of topping? like, lemon frosting and maybe some bacon topping, on their outrageous right
0:40 And then we're going to need to determine how much that cake they've asked for costs. So in this part here, where it says your cake cost,
0:48 23 gold coins, are twilio workflow has actually gone out to an external API that will
0:53 price our cake and come back and said, What they've asked for is 23 gold coins
0:57 and then we're able to work that into the conversation with our chat application.
1:03 We agreed to it, so we need to gather a few more pieces of information And after we get their email address,
1:08 we're going to send all that information we've gathered through WhatsApp over to our Flask application. Our Flask app is going to accept it.
1:16 Save it to the database using SQLAlchemy. And it's going to take that id generated by the database and return it back and
1:23 we'll say, Great, your cake orders accepted. We're getting started on baking it. Here's the order ID, will send you a message when it's ready.
1:31 Super cool, right? So this is the WhatsApp experience that the user will have. Then they're going to go and open up their email.
1:38 And as they placed that order, they're also going to receive a message from us. Look how beautiful this message looks.
1:45 We've got a nice little banner picture. We've got a cool HTML formatted table and some bolding, And what not to highlight the important things,
1:54 and you can't really notice it that well. But there's this attachment. There's even a PDF invoice receipt that we've generated live, out
2:02 of our Flask application attached to this email right here. Super cool. So, I don't get this great professional looking email right when they order it.
2:11 At the same time, our admin backend that we're going to build in Flask has received that order and is now available for our bakers to pull up and say,
2:20 Oh, look, a new order came in. Let's expand it, go see what they've ordered and go bake it.
2:25 Once the baking is done, and the cake is in the cooling rack, they're going to press this fulfill button right here.
2:30 That's going to shoot another WhatsApp message back to that same conversation and see at the
2:36 very bottom your cakes Order Status code is ready for pickup,
2:39 so they've received a notification right on the phone where they started this order process that now their cake is baked. They should come in,
2:46 give us their credit card at the cash register and hand them their cake. Hopefully, it's exactly what they wanted.
2:52 They were going to be a loyal customer because it's so much easier to order from us
2:55 than some random other bakery, we got a call or fill out a webform or whatever.

Talk Python's Mastodon Michael Kennedy's Mastodon