Bots: service with menus and questions
A robô (bot) answers the conversations of a funnel on WhatsApp on its own, following the steps you build: it sends menus, asks questions, stores the answers, queries a company system and hands the conversation to the team when needed. It does not use AI: it says exactly what was written, in the order designed. For replies written by the AI, see the AI Team.
Bots live in Config. CRM › Robôs, for account administrators only. Building a bot changes nothing in the service: it only starts answering once it is published and chosen in a funnel.
Creating a bot
Novo robô (new bot) asks for the Nome (name) and, optionally, a Descrição (description), and Criar e editar (create and edit) opens the editor. The bot is born with a welcome, a menu with "Falar com a equipe" (talk to the team) and the handoff to the team, ready to be adjusted.
The list shows each bot with its Situação (status: Nunca publicado, never published; Versão N publicada, version N published; or Versão N, com alterações, version N with changes, when the draft changed after publishing), the funnels it Responde em (answers in), how many steps it has and whether it is ready to publish. Under Ações (actions) you can duplicate and archive. A bot that still answers in a funnel cannot be archived: change the Quem responde (who replies) of those funnels first.
The steps
In the editor, the Passos (steps) tab lists the bot in sections, and + Novo passo (new step) picks the type. Each step says where the conversation goes next. The Mapa (map) tab shows the whole design, and Versões (versions) keeps each publication.
| Step | What it does |
|---|---|
| Enviar mensagem (send message) | sends the person a text or a file, or leaves an internal note for the team |
| Menu | offers up to 10 options, each leading to a step |
| Pergunta (question) | asks for an answer and checks whether it is text, a number, an e-mail, a phone, a CPF, a date or a custom format |
| Esperar arquivo (wait for a file) | waits for an image, a document, an audio, a video or a text, with a path for each |
| Chamar sistema externo (call an external system) | queries or sends data to a company system and goes on by the result |
| Condição (condition) | picks the path by the value of a variable |
| Horário de atendimento (support hours) | splits inside and outside a funnel's hours |
| Aguardar (wait) | waits a few seconds before going on |
| Transferir (transfer) | hands the conversation to a funnel, a stage and an owner |
| Etiqueta, Gravar campo, Mover card, Atribuir responsável, Abrir ou atualizar card (label, save field, move card, assign owner, open or update card) | change the contact and the case, as the team would |
| Notificar equipe (notify the team) | sends a notice to chosen people |
| Gerar código (generate code) | generates a promo code that is unique in the campaign, such as the entry number of a prize draw |
| Encerrar (close) | closes the case with a reason, with a last message if you want |
| Sair do robô (leave the bot) | the bot leaves and the conversation stays with the team |
What the person answers can be stored in a variable and used in the texts as
{{name}}, with Inserir variável (insert variable). There are also system
ones, such as {{contato.nome}} and {{caso.numero}}.
Menus, questions and file waits wait for the answer for 3 hours by default, and up to 24 hours. With no answer in time, or after the attempts with answers that don't fit, the conversation follows the path you chose. "Voltar" (back) and "Menu principal" (main menu) show in the menus and questions after the first one, and the person can also type voltar or menu at any time.
On the Official API, the menu goes out as buttons or as a WhatsApp list; on a QR Code connection, it goes out numbered, as text.
Promo code
The Gerar código (generate code) step gives each person a code that does not repeat in the campaign: the entry number of a prize draw, a discount coupon. It asks for:
- Campanha (campaign): the name that groups the codes. Within it, no code repeats, and each person gets only one: whoever goes through the bot again gets the same code.
- Formato do código (code format): the code's mask.
#is a digit,@is a letter,*is a letter or a digit, and everything else comes out as is:PROMO-@@##generates codes such asPROMO-KX47. Below the field you see an example and how many codes the mask generates. The letters I, L and O are left out, and*doesn't use 0 or 1 either, because they get mixed up when read. - Guardar o código em (store the code in): the variable that gets the code,
to use in the following texts, such as
{{codigo}}, or to save in a card field with Gravar campo (save field).
The step has two exits: Depois de gerar, vai para (after generating, go to) and Se não conseguir gerar, vai para (if it can't generate, go to), which applies when the mask has no free code left.
With fewer than 1,000 possible codes, or without the campaign name, the bot doesn't publish; with fewer than 10,000, publishing warns that a large campaign may run out of codes.
Testing and publishing
The draft saves on its own. Testar (test) opens a mock conversation beside the editor: you write as the person would and see what the bot answers, without sending anything to anyone. What it would do in the CRM, such as transferring or saving a field, shows as "(simulado)" (simulated). In Como o teste responde (how the test answers) you can simulate being outside hours and choose whether calls to systems succeed or fail. With a Gerar código step in the bot, O bloco "Gerar código" (the "Gerar código" block) picks whether the test generates a new code, returns the one the person already has, or can't generate one. The test shows a sample code and doesn't use up any of the campaign's codes.
The problems panel shows what prevents publishing, such as a step with no destination or a menu with no options, and the warnings, with Ver o passo (see the step) on each. Publicar (publish) is only available with no blocking problems. New conversations use the published version; the ones already with the bot stay on the version they started with.
Turning the bot on in a funnel
In Flows, in the funnel, the Quem responde (who replies) tab chooses who answers the conversations of that funnel on their own:
- Nenhum (none): the team serves, and the AI Team can still organize the board.
- Agente de IA (AI agent): the AI answers, through the triage's automatic mode and the AI Team's assignments.
- Robô (bot): the bot chosen in Robô que responde (bot that answers) serves. Only published bots show.
In segments with their own rules on professional councils, confidentiality or sensitive data, such as law firms, clinics and notary offices, the tab warns when the AI answers: in those segments, the AI's automatic reply to the client should not be turned on. The screen does not prevent it; if the company turns it on, the messages the AI sends are its responsibility, as the AI Terms say.
While no one chooses, the funnel stays as it is today, and the screen says what that behavior is. Only one answers at a time: in a funnel with a bot, the AI sends no messages, and the welcome and away messages don't go out in the cases the bot handles. In the triage, choosing Robô turns the automatic mode off.
The bot starts when a message arrives in an open case of that funnel, in a direct conversation. It does not start in a case where someone on the team has already replied. The exception is a case that an entry rule brought from another funnel by its keyword: there the person has just asked, and the new funnel's bot starts from scratch.
In the conversation
While the bot is serving, a bar above the conversation says which step it is on, with Pausar robô (pause bot) and O que o robô fez (what the bot did), which lists the steps it took. Anyone on the team who can open the case uses these buttons.
When someone on the team replies, from the CRM, the phone or WhatsApp Business, the bot pauses on its own and the conversation stays with the team. Retomar robô (resume bot) continues where it stopped, and Iniciar robô (start bot) starts it in a case it was not in yet. Each pause, resume and start is left as an internal note in the conversation.
The bot also stops when the case is closed, when the team moves the card to another funnel, and when the Official API's 24-hour window closes. If it gets stuck on an error, it hands the conversation to the team with the handoff message, which is set in the editor, under Menu principal, navegação e transbordo (main menu, navigation and handoff).
Connections to company systems
The Chamar sistema externo step can use a conexão (connection), registered in Conexões (connections), on the bots screen: the base address (https only, on a public address), the header name and the token. The token is stored encrypted and does not show again after it is saved. Testar conexão (test connection) makes a real call and shows only the names of the response's fields.
Without a connection, the step can call a public address, without a token, only to query: sending data without authentication blocks publishing.
Limits worth knowing
- The bot serves on WhatsApp, by QR Code and on the Official API, in direct conversations. It does not serve on Instagram or in groups.
- Each bot has up to 300 steps, and each menu, up to 10 options.
- An external system has 10 seconds to answer, and the answer, up to 1 MB.
- A question that asks for a CPF must say what the data will be used for (LGPD, Brazil's data protection law). An answer marked as personal data leaves the bot's memory when the conversation with it ends.
- Setting up and publishing bots is for account administrators only.