Table of Contents

Collect Intent block

Jonathan Goodfellow Updated by Jonathan Goodfellow

The Collect Intent block (former User Input block) is a super useful tool that we can use to capture and use your user's input with your bot! πŸ€– This can be a really useful way to start your flow since it can capture the first user's interaction!

This is the first block that will show when you start to build your bot for WhatsApp, Facebook Messenger, and APIchat channels! πŸ™‚

For WhatsApp:

Block anatomy

Your user's first input to the bot will be saved by default in the Variable @user_input, a string! You can change the name of this Variable if you like!

Note: Currently, the Collect Intent block cannot recognize if the input is a sticker or a contact in WhatsApp bots.


It is not possible to delete, duplicate or change the first Collect Intent block! It will always be the first block in your bot flow (except Web bots).


With a Conditions Block

You can use it to redirect the user accordingly depending on his first message. This message is stored in the variable, and you can use it inside the bot flow with theΒ ConditionsΒ block, for example:

IF @user_input CONTAINS β€œorder”, you can point to a specific path in the bot. ➑️

It would look like this:

With the Keyword Jump Block

You can also use the Keyword Jump block to point to several different paths of the bot if the variable contains one of the keywords provided. 🎯

It would look like this:

With a Goodbye Block

A common issue in WhatsApp bots goes like this:

The flow ends with a Goodbye Block

The User then writes a goodbye message like "Bye" or "Chao" or "Goodbye"

This causes the bot to trigger again from the start as it is understood as the first input of a new session! 😭

The User Input Block can prevent this nightmare! πŸ§Ÿβ€β™‚οΈ

By capturing the user input and then using a Conditions Block to direct the flow based on this input, we can direct these friendly users who want to say goodbye to the Close Chat block, preventing the flow from starting again! Magic! πŸ§™πŸΌβ€β™‚οΈ

It would look like this:

Tip: You can even use a Natural Language Processing integration like Dialogflow to interpret that first message and respond to it!

For Facebook Messenger

The block works in exactly the same way for Facebook Messenger bots.

For APIchat

The block works in exactly the same way for APIchat bots.

How did we do?

List Buttons Block (WhatsApp)