Back

How to create a chatbot structure?

To create a chatbot, it does not matter whether ordering a bot from developers or creating a independently on the bot designer, necessary to understand the entire structure of the future bot. Of course, if the development of the bot is commissioned, then the creation of the structure, or block diagram of the bot, can become part of the project, which will be carried out by the bot developers. But, for a better understanding of the needs and the correct formulation of the task, in any case, it will not be superfluous to understand what the structure of the bot is.

The structure of the bot is a block diagram of all the logic of the bot, on the basis of which a chatbot is created, and which is a technical task for creating a chatbot or configuring a bot on the designer .

The structure can be arbitrary and developed in any program in which it is possible to draw a diagram, or in special online services that help make it much easier.

Examples of services for creating a bot scheme:


Actually, there are many similar services, and everyone can choose the one that is more convenient for them. We will consider the development of the scheme using the miro.com service. It has a fairly convenient and understandable interface, so we will not consider the capabilities of the service, but will tell you exactly how to create a chatbot structure.


Registration on the service.

In order to start using the miro.com service, you need to create an account.

After registration, in the office, you need to click “New board”. 

After creating a new scheme, you can choose a template or leave it blank. For now, you can leave it blank and use the left object control panel to create a new scheme.

 

Don't have your own bot yet? Do you think that creating a chatbot is difficult?

Sign up now at Gerabot chatbot constructors, and create your own chatbot in 15 minutes!

 

Creation of the scheme of the start scenario.

The work of any bot begins with the user's subscription to the bot. This is considered the start script, and is denoted as the /start block. A startup script, like any other, can contain:

  • text content;
  • keyboard;
  • files;
  • location.

Let's try to make a startup script with text content behind a keyboard with five buttons.

Important!!! Shapes that denote certain chatbot objects are arbitrary, but we will use generally accepted shapes to define objects in the bot.


Now we have one bot script on the diagram, and we understand that when subscribing to the chatbot, the user should see text and a five-button keyboard. Next, you need to indicate in the diagram what should happen when the user uses any of the buttons. Let's make different options for actions on different buttons.


Extensive structure of scripts with textual content.

The simplest scheme branching option is to move from the button to the next script with text content and a new keyboard. In this case, we make a similar scheme for the next scenario as for the starting one, adding the necessary connection between Button 1 and the content of the next scenario. 

Next, the structure can branch again from each subsequent script button.


A script with a condition.

In the case when, before showing the user the next content after his action, it is necessary to check for the fulfillment of the condition (for example, whether the user has already left his phone number), the diagram shows blocks that reflect that the next user scenario may vary depending on whether the condition is met.


A script with the collection of data from the user.

In the event that the structure of the chatbot assumes that the user must answer a certain number of questions consecutively, blocks of questions and consecutive options of answers are added to the structure, or steps are indicated , where the user must enter data in a text input field.


Script with API functionality.

A script that involves synchronizing data with external services (API) must contain blocks in the structure in those places where synchronization is provided. Next, depending on the response received by the bot via the API, the scheme must indicate the actions that will be performed with a particular response.


Scenario with operator connection.

Another option of actions that the bot's scheme of work can provide is the ability to connect the operator to the chat, if the functionality the bot assumes this. In this case, it is necessary to specify exactly where in the structure this functionality should be implemented.

This is 80% of the possible functionality elements commonly used in chatbots. Of course, there are more complex solutions that require additional elements, but they are quite individual. If you need help in creating the structure of your bot, the Gerabot company is always happy to advise and help you implement the structure and the chatbot itself for your business.

Do you want to know about all Gerabot updates?
Subscribe to our Telegram channel - https://t.me/gerabotua- https://t.me/gerabotua
4.8 5 12
Keep browsing gerabot.com, You acknowledge that you have read Terms of Use website and agree to use cookies
Get information
about special offers