Updated: 7/8/2024

How to execute actions?



In this article, you will learn about the most common actions used in Botmaker: Ask, Go to (intent), Send email, Mute Chatbot, Search on website, Ask (to request user location), and Render template.


Estimated reading time: 10 minutes


  1. Action: Ask

The Ask action allows you to ask users questions and store their responses as values in variables. These variables are then stored as part of the user's profile, such as name, age, social security number, date of birth, and more. Below you can see some screens illustrating the features of this action.

  • How to create a question: See the image below to create a response using the Ask action.


imagen1


Creating questions with alternatives: For references on how to create an intention using the Ask action format through multiple-choice options, see the following images:



imagen2


imagen3


imagen4


Requesting images from users

It is possible to request images from users. When they upload the files, they will be stored as a link within the variable.


imagen5


  1. Action: Go to (intent)

The Go to (intent) action allows you to transfer a conversational flow to an intention that you have defined.

  • How to create a Go to (intent) action - See the example below.

Note: Remember to click "publish" for the changes to impact your conversational flow.


imagen6

imagen7


  • Example of the Go to (intent) action in the webchat channel: See the image below.


imagen8


  1. Action: Send email

The Send email action allows you to automatically send an email to your users via the bot. Like in other responses where you use actions, you can schedule it in the way that suits you best. See the following images and remember to publish the changes when you finish the configuration.


imagen9


imagen10
 

imagen11 


imagen12

imagen13

Note: Sending messages at no cost is limited to 10 emails per day. If you wish to exceed this limit, please contact our support team at servicio@botmaker.com for more information about our email sending plans.



  1. Action: Mute Chatbot

The Mute Chatbot action causes the bot to stop responding to the user. Once you configure the Mute Chatbot action as part of a response within an intention, the bot will stop responding to messages from that user.



imagen14

imagen15



  1. Action: Search on website

This action allows you to search for products on an indexed website. () For example, you can type "Music Store AB" and search for vinyl records. The system will then show you all available vinyl records. () Indexed website = a website with a product catalog.


imagen16


To configure this action:

1. In the "result mode" field, you can provide links (page links) or a carousel.

2. The variable that holds the value to search within that page (obtained from a query).

3. A message to display results with 2 indicators, 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.


  1. Action: Ask (to request user location)


To configure this action:

  1. Add the "Ask" action.
  2. Create a "location" variable to store the latitude and longitude received from the user.
  3. Select "Addresses" as a valid response option and display the "Send location" button. This action is necessary to request the user's location. When the Bot receives it, it will store it in the "location" variable as latitude and longitude.
  4. Complete the address component as follows to configure Google address search with greater accuracy for a specific area or region. For example, for Argentina, the country is AR and the locality is BSAS: country: AR | locality: Buenos Aires. For the Autonomous City of Buenos Aires: country: AR | administrative_area_level_1: Buenos Aires.



imagen17


  1. Action: Render template

Allows generating images and PDFs from an HTML template that fills in with conversation variables. In the intention you want, click on Action> Other> Render template and complete with the requested data.


imagen18

imagen19



Remember to visit our Help Center for more information.




Written By: Botmaker Team

Updated: 07/08/2024