Use a Question step to gather information from your customers using text input.
Required Editions
| View supported editions. |
| User Permissions Needed | |
|---|---|
| To build and manage Einstein Bots: |
Customize Application OR Modify Metadata OR Manage Bots |
Capturing text from your customer is a great way to hear exactly what they need. To gather information from your customer, your bot must know which entity to search for in the customer input to find the information (for example, date, location, and money). The bot also must know which variable to use to store it.
To act on this data, the bot must save only the relevant data, and not the rest of the unstructured text within the full message. To gather this input correctly, bots use Named Entity Recognition (NER) to extract only the relevant data that is expected, and save that to a specified variable. If the bot has trouble recognizing that expected entity, use Conversation Repair to provide extra context or information to help your customer clarify their input.
- From the Dialog Component Library, drag the Static Question step onto the canvas.
-
In the Step Properties panel, enter the question from your bot to the customer in the
Question to Ask field.

Note You can call standard fields in standard objects using the {!FieldName} format found in Object Manager. For custom fields, use the Field Name and include __c at the end: {!CustomField__c}. To call a specific record, use {!Record.Field}.To call an item in a list variable, use FieldName[X], with X referring to the location of the item in the list. Einstein Bots uses a zero-based index with list variables, you can call the first item of the list using FieldName[0].
- Skip the Choices to Display section. When you set up a question with text responses, the Bot Builder ignores any selection in the Choices to Display section.
-
Under Response Storage, select or create an entity that matches the information you want to
gather and a variable to store the answer.

-
Tell the bot what to do if the variable already contains a value. Conversations that use
the same dialog multiple times can retain the value and skip the question (for example, asking
for the customer’s name). Or, the bot can ask the question and override the value (for example,
looking up multiple orders).

-
Optionally, if you capture structured data and want to help the customer understand the
format the bot requires, you can add Conversation Repair to the Question dialog step. Under
Repairing Misunderstandings, include one or two repair attempts, and add details to help your
customer follow your regex or other pattern.
After the bot makes these attempts, the bot must know how to resolve the issue. Define whether the bot asks the customer the repair attempts until they provide the information in the right format, or move on to the next dialog step. Moving on to the next dialog step after the initial attempts leaves the variable empty.
- Save the dialog.