Question action

Image of an author
Sylwia Kocur
3 min read
updated: Jan 3, 2024

The Question action is helpful when you need specific information from your customer to proceed with their request. It can help you verify a username before completing the order, validate the email address provided by the user on chat, and much more.

This action asks for information and saves it in a single step. You can ask for multiple details in a single action. You can see this information later in the User section, send it to an external system, or see it in the Archives. You can use it later in the bot, user’s responses summary, or Filters.
This action asks for information and saves it in a single step. You can ask for multiple details in a single action. You can see this information later in the User section, send it to an external system, or see it in the Archives. You can use it later in the bot, user’s responses summary, or Filters.

To make it work, you need to set up an attribute. You can use one of our default attributes or create your own attribute. It all depends on what you need.

To save an attribute, you need validation to check that the provided information is correct. You can use our default validation types or create your own format.

The Question action elementsLink icon

You can decide what is happening each step of the way while setting the Question action - fill in several fields to make sure the information you need is being saved correctly.

The fields you need to adjust are:

  • Question variants - provide your question. You can use multiple ways to ask for the same information.

  • Validate response with entity β€” select an entity with which you want to validate the response. If you do not want to use our default Entities, create your own Entity before configuring this action.

  • Save response to attribute β€” name your attribute. You can create your custom attribute if you do not want to use our default ones.

  • Action of failure input β€” choose what should happen when the user fails to provide the answer in the correct format. You can go to the Failure block, or skip this question and proceed to the next one by choosing the Success block.

    Remember to configure your bot structure according to this choice - you must place Bot response blocks in the correct place to ensure the chat goes smoothly.

  • Ask until […] β€” decide the number of times the bot should repeat the question if the answer is incorrect.

    The Action on failure will be executed if the bot reaches the number. If the information is necessary, choose the “until fulfilled” option. If you can recognize the user without it, choose a concrete number.

How to use the Question actionLink icon

To successfully use this action, you will need to customize it based on your needs.

  1. Drag the action to the bot structure. It will be placed with the Success and Failure blocks.

  2. Configure the question. We will start by asking about the order ID.

  3. Choose the validation type. The order ID is only numbers, so we will choose the Number entity.

  4. Name your attribute. We need to create an attribute to save the order ID. Choose the +Add custom attribute option. Provide the name. Confirm.

  5. Choose what will happen when the input is incorrect.

  6. Pick the number of times the bot asks the question again.

  7. Add and configure Bot Response blocks after Success/Failure blocks, based on your decision in the 5th configuration step.

  8. Configure another question. The questions will be asked one right after another.

Read more:

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products