How Can We Help You?
< All Topics

Custom Field and Get User Data

Custom fields in BotBuilders act like variables to store the user information like email, phone number, preference, and a lot more based on your requirement and bot building process.

Custom field data can be stored in different formats like,

  • Text,
  • Number,
  • Date, 
  • Date & Time,
  • True/False

Create a Custom Field

To top

You can create the custom field on the flow section.

Go to Menu > Flows > Custom Fields

Click the “Add” button if you want to add a Custom Field. In the image below, you can fill the name and type as per your need, and don’t forget to fill in the details about the custom field on the description field. Even though the “description” is optional, this information will help you when you have multiple custom fields in the future.

In the image below, you can fill the name and type as per your need, and don’t forget to fill in the details about the custom field on the description field. Even though the “description” is optional, this information will help you when you have multiple custom fields in the future.

Now you will see how we can use this custom field on the chat flow to store the user information on the flow automatically.

Using Custom Field on the Chat Flow

To top

If you already created the custom field to save the user input (information), it’s fine. Or you also can create custom field while building chat flow also.

Select the flow where you want to use this custom field feature.

On the flow, utilize “Get User Data” to gather input from your subscribers (similar to the image below).

Then click on the “Edit” button to configure the custom field wizard. 

Now, choose the custom field if you had created it already or you can create a new custom field here in the wizard itself.

When any subscriber on this flow provides the input on this user input, it will get stored on the custom field named “preferred color – laptop bags”.

This is how it will reflect on your subscribers.

This is how the chat flow is constructed,

And this user input will be stored on the respective custom field as we said before. You can see those custom field information on the individual audience details.

You can see the Green color which the user gives was stored on the respective custom field.