How to execute actions?

In this article, you will learn about the most commonly used actions in Botmaker: Question, Go to intent, Send e-mail, Mute Chatbot, Search on Website, Question (to ask location from a user), Render Template.

Estimated Reading Time: 10 minutes

1) - Action: Question

The Question action allows you to ask questions to users and save their answers as values in variables. These variables are then stored as part of the user profile such as name, age, social security number, date of birth, and more.

Below, you will see some screens illustrating the features of this action:

  • How to create a question : See the image below on how to create an answer with the Question Action.

imagen1 Creation of Questions with alternatives: For references onhow to create an intent using the Question Action format through multiple-choice input options, see the images below:

imagen2

imagen3

imagen4

Request images from users:

It is possible to request images from the customers. Once the files are uploaded, they will be saved as a link within the variable.

imagen5
2) - Action: Go to (intent)

The Go to (intent) action allows you to transfer a conversation flow to an intent defined by you.

  • How to create a Go intent Action – See the screen below for an example.

Note: Remember that you need to click on " publish" for the changes to impact your conversational flow.

imagen6
imagen7

  • Example of _ Go-To _ Action in the webchat channel: - See the image below for an example

imagen8

3) - Action: Send E-mail

The Send E-mail action enables you to automatically send an e-mail to you or your users through the bot. As the other responses used by the action, you can set it up in any way you want. See the images below and remember to publish the changes once done.

imagen9 
imagen10

imagen11 
imagen12

imagen13

Note : Free emailing is limited to 10 e-mails per day. In case you want to send more than this limit, please contact our support team at servicio@botmaker.com for more information about our e-mailing plans.

4) - Action: Mute Chatbot

The Mute action stops the bot from responding to users. Once you configure the Mute action as part of a response inside an intent, the bot will stop responding to messages from that user.

imagen14

imagen15
Action: Search on website

It is an action that allows you to search for products within an indexed website (*).

For example, you can write "Music Store AB" and you can search for vinyl records. The system will then bring you all the vinyl records available.

(*) Indexed Website = a website with a product catalog.

imagen16

To set up this action:

  1. In the field "result mode", you can provide links (page links) or a carousel.
  2. The variable that has the value with which you are going to search within that page (you get it from a query).
  3. A message to show the results with 2 pointers, one for when there are no results and another for when there are more than 10.
  4. In "Result var name", you can save the results.

Action: Question (to ask location from a user)

To set up this action:

  1. Add the "Question" action.
  2. Create a variable "address" to store the latitude and longitude received from the user.
  3. Select "Addresses" as a valid answer option and display the "Send location button". It is necessary to place this action to claim the location to the user. When the Bot receives it, it will store it in the variable "address" as longitude and latitude.
  4. Complete the address component as follows to set up the Google address search more precisely for a specific area or region. I.e.: for Argentina, the country is AR and the locality BSAS : country: AR|locality: Buenos Aires. For the Autonomous City of Buenos Aires: country: AR|administrative_area_level_1:Buenos Aires

imagen17

Action: Render Template

It allows you to generate images and pdfs from an html template that you fill in with the variables of the conversation. In the desired intent, click on Action>Others>Render template and fill in the requested data.

imagen18

imagen19

Remember to visit our Help Center for further information

Written by: Botmaker Team

Updated: 02/09/2022