Create a Databot

You can create a databot chatbot flow and publish it. You need to know the intent of the databot chatbot, questions to collect the end user's information, and set the callback.

To create a databot chatbot, perform the following steps:

  1. On the Chatbot page, in the Databot section, click Create New.

The Databot's Create page appears.

  1. In the Setup Databot section, perform the following steps:

    1. In the Chatbot Name field, enter the chatbot name you want to provide to the databot. Only alphabet, numbers, spaces, hyphens, and underscores are allowed.
    2. Click the arrow in the Sender Number field and a list of WhatsApp sender numbers appears. Select the sender number from the dropdown field. This is the number that you would like to connect to databot. For more information about how to add a sender number, see Adding WhatsApp Number.
    3. In the Welcome Message field, enter the welcome message that you want to trigger when an end user sends the first message of a chatbot session to the configured sender number. You need to enter a minimum of 3 characters and a maximum of 3000 characters welcome message.
    4. In the Goodbye Message field, enter the goodbye message that will be sent before ending the session. You need to enter a minimum of 3 characters and a maximum of 3000 characters goodbye message. The session gets expired if you or the end user do not communicate for 300 seconds. The session gets expired if you or the end user do not communicate for 300 seconds.
    5. In the Error Message field, enter the error message you want to send if the end user's questions do not match any of the questions listed for that chatbot. You need to enter a minimum of 3 characters and a maximum of 3000 characters error message.
  2. In the Intent section, perform the following steps:

    1. In the Intent field, enter the intent for your chatbot.
    2. In the Questions field, enter the expected questions you want to add that could be sent by the end user. You have the option to edit the questions as well as update new questions. To add more questions click + Add Questions, and enter your questions.
    3. In the Answer field, enter the answer for the questions that you have entered in the questions field.

📘

Notes:

  • You can add more than one intent in a datatbot.
  • If you add more than one intent then the chatbot will try to match the end user's questions with one of the intents (through Kaleyra's AI-based automated system) and answer accordingly.
  1. Click Save.
    The Setup your Questions section appears.
  1. In the Setup your Questions section, perform the following steps:
    1. In the Question 1 field, enter the question that you want your end users to answer through the chatbot. For example, questions related to the refund process for a product include product name, Purchase Date, product pick-up address, and location.
    2. In the Variable 1 field, define the variable to collect the information. For example, product_name, purchase_date, and many more.

📘

Notes:

  • You have to define the variable for every question in the Setup your Questions section.
  • If you want to add a new question, defining the variable is mandatory. To add a new question, after defining the variable parameter, click + Add Question.
  1. Click Next.
    The Callback Settings page appears.
  1. In the Callback Settings section, perform the following steps:
    1. Click the arrow in the Callback ID and a list of callback IDs appears. Select the callback id from the dropdown list through which you want to initiate the callback. For more information on how to create a callback see Callback Profiles.
    2. In the Success Message field, enter the success message you want to display when the callback is successful.
    3. In the Failure Message field, enter the failure message you want to display when the callback failed.
  2. Click on Publish to make your changes go live. If you want to save your changes and publish them later, click on Finish and Save.