Modules are the main building blocks when you design your chatbot’s conversation flow. There are two different types of modules: Collector Modules and Statement Modules. We will focus on Collector Modules in this article, addressing the following topics:
- Introduction to Collector Modules
- Bot Error Messages of Collector Modules
- Types of Collector Modules
Introduction to Collector Modules
This smart type of bot response can be created by either:
- right-clicking your mouse, selecting Collector, and choosing the desired type; or
- by going to the right sidebar menu, selecting Collector, and choosing the desired type.
Collector Modules are great tools if you need to check or verify the end user's input. Often, Collector Modules are used to ask the end user for a certain type of information such as their email, order number, or telephone number. Once the end user has provided the requested information, the bot validates whether the user input matches the format selected.
Bot Error Messages of Collector Modules
The Bot Error Message of a Collector Module is an important feature that helps collect the required information in a human-like manner. Assuming that the end user´s input cannot be verified, the bot can ask the end user again for the required information.
If the end user still does not provide the required information, another Bot Error Message, as defined by you, will be shown. You can insert as many Bot Error Messages as you think would be adequate in order to simulate a human conversational flow. Please note that the error messages are randomly displayed, not in order.
It is important to keep in mind that all Bot Error Message(s) you set up will be shown as options for use in any Collector Modules you are using. Select the appropriate Bot Error Message(s) for each module by ticking the checkbox for each message accordingly (you can see this in the example Multiple Choice Module image later in this article).
By default, the chatbot will allow for 3 wrong insertions of data before redirecting to fallback.
This number can be changed in the Bot Settings:
Types of Collector Modules
You can set up the Collector Module in accordance with the information you're requesting from the user. In this section, you can read more about each of the following Module types:
Multiple Choice Module
Multiple Choice Collector Modules are similar to Statement Modules, as both module types can accept freely written text from a user, and both of them can have clickable answer options. Generally speaking, Multiple Choice Modules can be considered traditional bot messages, since these follow a keyword-based logic.
The difference between Multiple Choice Modules and Statement Modules
The difference between Statement Modules and Multiple Choice Modules is that Multiple Choice Modules have the Bot Error Messages feature built-in. This means if the end user sends information that cannot be understood by the bot, a predefined error message will be sent.
It is important to note that when using Multiple Choice Modules, the conversation cannot continue without any end user input, whereas this is possible when using Statement Modules.
How to set up a Multiple Choice Module
Using Multiple Choice Modules, a certain type of end user input needs to be verified. This can be done by either adding Suggested replies or Connection options. If the end user's input does not match the Suggested replies or Connection options, the bot error message will be shown. If no error message is defined, the designated fallback message is shown.
The difference between Suggested replies and Connection options is that Suggested Replies are persistent.
The use case for Multiple Choice Modules
The most frequent use case for Multiple Choice Modules is if you require a predefined end user input in order to continue the conversational flow.
In a very simplified example, if a bot only consists of conversational flows for product recommendations, product clarifications, and product suggestions, it is necessary to know which of the three options the end user would like to learn more about. The end user has simply no other options to choose from. Thus, if the end user were not to click on any of the suggested responses as illustrated below, the conversation would end very quickly.
You can take a look at this example below:
The Email Collector Module is especially helpful if you would like to create leads during your conversational flows. You can use it to verify the email address of an end user, which is extremely valuable if the email address is the only contact detail you are collecting from your visitor.
Difference between verification of and collection of the email address
Using the Email Module, the email address will not be collected automatically. As described above, it is a tool to check the format of the email provided by the end user. If you would like to store the email address, go to the Connections tab of that Module and set a Custom Variable as for example User_email.
Read more on this topic in our article Storing the end user reply in a Custom Variable.
This example can help you understand the setup of Email Modules:
URL Modules are very helpful to refer to, for example, support tickets on other platforms. As with all Collector Modules, the main benefit of their use lies in the ability to check the format of the end user input. In this type, for instance, the module would verify if the end user actually provided a URL.
In many use cases, number rows serve as identifiers to understand the customer case better. A Number Module supports you in verifying unique, number-based IDs such as an order number, so you can ensure a valuable service experience for your customers.
As previously explained in the section on the Email Module, the Number Module does not store any information automatically, but only verifies whether the user input is comprised of numbers.
Learn more about storing number rows in Storing the end user reply in a Custom Variable.
You are able to define how many numbers the row must contain. You can do so by typing in the desired restriction in the text box Number length. Take a look at the example below, where the user can only respond with a number row consisting of exactly 10 numbers.
Phone Number Module
The Phone Number Module has a comparable setup to the Number Module. It reads the end user information and checks if the format provided by the users matches the format of a phone number. Again, the phone number will not be stored automatically when applying a Phone Number Module. Go to the Connections tab of that Module to set a Custom Variable as, for example, User_phone.
Read more about how to store phone numbers in Storing the end user reply in a Custom Variable.
Time & Date Module
The Time & Date Module validates whether or not your customer has input a date. Please note that the names of weekdays must be written out. To provide an example, "Wed" for "Wednesday" would not be understood by the bot.
We recommend specifying which date format you use in the Message for this module (dd-mm-yyyy). For example, a question for the customer could be phrased as follows: "When would you like to book a table at our restaurant? Please write the date (dd-mm-yyyy) and time (hh:mm am/pm)."