Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Build a Chatbot with Twilio Studio


Chatbots are a great way to help your users accomplish simple tasks in a friendly, conversational manner. Let's look at how to build a simple Flow that responds to incoming text messages and chats with your users to help them order a coffee.


Prerequisites

prerequisites page anchor

To complete this tutorial, you will need to complete the following prerequisites. You can skip ahead to Create your Flow if you've already completed these tasks.

(warning)

Warning

This demo tutorial is best suited for use with a single Twilio Phone number. To scale this Flow with Twilio Messaging Services, please reach out to discuss your use case(link takes you to an external page).


You'll create a Twilio Studio Flow from Twilio's starter template in this tutorial. By the end, you'll understand how to construct a chatbot with minimal building blocks in place. You can also use the Messaging Chatbot template to begin with most of the pieces already in place.

  1. Log into your Twilio account and navigate to the Studio Dashboard(link takes you to an external page) .
  2. Click Create a flow .
  3. A modal will display where you can name your flow — this tutorial will use "Barista Bot."
  4. Select Next .
  5. The modal will load several template options. Each template provides a different foundation of building blocks.
  6. Select Start from scratch to follow along with the rest of this tutorial. You can also select Messaging Chatbot to start with most of the pieces already on your Canvas and connected to one another.
Barista Bot Flow.order_prompt
  • In the Widget's Message Body , add a friendly response that will be sent to the customer once your Flow is triggered — see the sample text below.
  • You can leave the remaining Widget fields empty or set to their default values and click Save .
  • Sample Message Body text:


    _10
    Welcome to our automated ordering system. Please reply with one of the following: latte, cappuccino, americano, cortado, or cold brew.

    Twilio Studio Tutorial Baristabot order_prompt Widget shown with configuration.Rate this page:

    Need some help?

    Terms of service

    Copyright © 2024 Twilio Inc.