Chatbot - Saving numeric response as text type
Imagine that you have a chatbot and want to save the lead's answer in a custom field. However, the answer value you want to save is of type text, but what the lead will reply in the message will be a numeric value.
See below how to carry out this strategy:
The first step is to create a lead custom field of multiple value type, containing the value of the existing options.
Go to system settings, click on Custom Fields - Leads, and click +New
Add: Name.
Type: Selector.
Add the options by clicking New Option, and type them.
Click Save and Close.
The second step is to create the chatbot with the fields that will perform the action of saving the answer as text type
Go to Chatbot
Enter the name, and click Open Builder
In the builder, add the following blocks:

Action: "Send a question." Type the message that will be sent to the lead, choose the response type as text and choose "Save lead's answer in a custom field", indicate the custom field created earlier.
Condition: add Answer value. Select the previous question, and click New condition to add the options in numeric value.
Action: for each answer, add the action "Modify lead data", choosing the custom field created earlier and the answer value that will relate to the numeric options.
Click Apply, and Save and Close.
Last updated
Was this helpful?