Table of Contents

Ask a Question block

Dilyara Updated by Dilyara

The Ask a question block is an essential part of your chatbot flow when you need to gather open-ended input from users in a flexible, free-form format.

This feature is perfect for engaging your users in a more personalized way and capturing data that might not fit into a preset list. Whether you're collecting short inputs or open-ended feedback, this is the simplest way to capture exactly what your users want to tell you 💬

This feature works across all Landbot channels — Web, WhatsApp, and Messenger.

➡ How to add Ask a question block

To add the Ask a question block in the Builder:

  1. Click the green arrow icon to create a new connection from any block in your flow.
  2. In the search menu that opens, type “Ask a question”, and select the block from the list.

You can link this block from the Starting Point (which defines the beginning of the conversation) or from any block in the middle of your flow.

⚙️ How to set it up

Once you've added the Ask a question block, you can customize it further by adjusting the following settings:

Question text

Here you can write the message you want your bot to send:

This block supports a variety of text formatting options to help you engage your users more effectively, including rich text, emojis, hyperlinks, and HTML 🤩

Save user answer in the field

To capture and store a user’s response, you’ll need to assign a field in the Ask a question block.

Fields act as smart labels for user input — like user_name, company, or feedback — making your chatbot more dynamic and responsive. They tell your bot where to store the input so it can be reused later - whether that’s to personalize a message, apply conditional logic, or send data to your CRM, email, or spreadsheet 🎯

To assign a field and capture the user's answer:

  • Type a new field name and create it, or
  • Choose from the list of existing ones.
Learn more about fields in this article 👀
Settings (optional)

Click on the toggle to customize the following settings:

  1. Size of text area
  • Short – Best for quick answers. Users can press Enter to submit their response.
  • Long – Better for detailed input. Users need to click the Send button to submit.

This setting is only available for Web bots.

Short size example:

  1. Input Length
    Set minimum and/or maximum character limits to guide how much users can write. For example, if you're collecting email addresses, you might set a minimum of 5 characters to avoid empty or invalid responses.
  1. Input Validation
    If you need the answer to follow a specific format, use Regex (regular expressions) to validate the input. This is helpful when expecting structured input — like order numbers, email formats, or codes.
If you're new to Regex, no worries - you can find some examples explained here 👀
  1. Validation Error Message

If you’re using input length settings or regex validation, don’t forget to customize the error message that will appear when a user submits an invalid answer. This helps guide them to properly answer the question and continue smoothly.

📌 FAQs & Troubleshooting

Why isn’t the user’s answer being saved?

Most likely, a field hasn’t been assigned to the block. Make sure you’ve either created a new field or selected an existing one. Without it, the input won’t be stored or accessible later in the flow.

How can I let users submit their answer by pressing Enter?

To enable submission with Enter, set the input size to short in the block’s settings. If you use the long input type, users will need to click the Send button instead.

How do I change the text of the Send button?

Go to your bot’s Settings > Custom System Messages section. Under the Buttons category, you will find the Send button text to customize.

Can I require a specific format (e.g., email or numbers)?

Yes — use the Regex setting to validate the input, and don’t forget to customize the error message to guide the user.

Was this article helpful?

Ask for an Email block

Question: Phone block

Contact