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