What are attributes

Image of an author
Sylwia Kocur
11 min read
updated: Nov 20, 2024

Attributes allow you to assign information to visitors or ongoing chats and pass them to web services. They can also help you personalize your chats.

Check out how attributes work with entities in our video tutorial.
You can also see how easy it is to use them along the bot flow and make your chat more personalized in this video.

Check out how attributes work with entities in our video tutorial.
You can also see how easy it is to use them along the bot flow and make your chat more personalized in this video.

Good to know:

  • There are two attribute types: Custom attributes created to match visitors’ specific needs and ready-to-use Default attributes created by us to cover basic end-user information.

  • Attributes are related to User Entities and System Entities.

  • You can assign attributes at any conversation step using the Set attribute action.

  • Use the Question action to validate the visitor message and collect attributes in a single step.

  • You can use attributes in User input blocks and Bot Responses by typing two curly brackets or using the attribute symbol in a text field. 

  • You can use a maximum of 99 attributes in one interaction.

You can export data saved as attributes with our Zapier and Make integration or webhooks.
You can export data saved as attributes with our Zapier and Make integration or webhooks.

Types of attributesLink icon

Attributes save visitors’ information and allow for its reuse in conversations. In ChatBot, we can distinguish default and custom attributes.

Some of the default attributes are collected when the chat starts, and depending on the integration you use, you need to collect some in the bot flow. 

Check the Visitors section to see which attributes have values from the start and which need to be collected. In a single-visitor view, you can see all the details collected when the chat started in an integration.

Some of the default attributes are collected when the chat starts, and depending on the integration you use, you need to collect some in the bot flow. 

Check the Visitors section to see which attributes have values from the start and which need to be collected. In a single-visitor view, you can see all the details collected when the chat started in an integration.

Default attributes automatically collect and save data about your visitors from integrated apps. You can use these attributes in the bot flow to personalize chats or analyze where most of your visitors are coming from.

See the Attributes with Integrations section to check which attributes are collected in integrations.
See the Attributes with Integrations section to check which attributes are collected in integrations.

Visitors predefine Custom attributes. These attributes are created specifically to meet the visitors’ needs and fulfill the information requirements to resolve the end-user’s case. They can be captured with entities or set manually with the Set attribute action.

If you created your bot automatically by scanning your website, some of the information available on your site (company address, social media links, etc.) will be saved as Custom attributes from the beginning. 
You can check and adjust these details in the Attributes section.

If you created your bot automatically by scanning your website, some of the information available on your site (company address, social media links, etc.) will be saved as Custom attributes from the beginning. 
You can check and adjust these details in the Attributes section.

The list of Default attributesLink icon

Below is a list of all visitor attributes available by default in ChatBot. These attributes can be filled with data automatically (by one of our Integrations) or manually using the Ask Question action. You can also validate the response saved to one of these attributes using Entities.

Attribute name

Parameter name

Description

Name

default_name

visitor's login/name

Email

default_email

visitor's email

Avatar

default_avatar

link to the visitor's avatar

Source

default_source

URL of the page on which the chat started

Language

default_language

configured visitor's language

Timezone

default_timezone

visitor's timezone

IP

default_ip

visitor's IP address

City

default_city

visitor's city

Region

default_region

visitor's region

Country

default_country

visitor's country

Postal code

default_postal_code

visitor location's postal code

Referrer

default_referrer

URL referring to an item leading to this request

Integration

default_integration

integration used in the conversation

Attribute

attribute

your custom attribute

Attributes sectionLink icon

The Attributes section is the main attributes panel. You can edit all your Attributes and Entities there. Go to your bot and choose the Settings icon. Click the Attributes & Entities option to open the section.

See the full list of attributes available to use on the left-side menu:

  1. Your custom attributes are at the top.

  2. You can add more custom attributes with the +Add new option.

  3. The default attributes are at the bottom.

You can enable attributes to be saved in the visitor’s data and remembered when a new chat starts. When this option is disabled, the bot won’t have the information provided in the last chat, even when the user is a returning one.

How to add a custom attribute in the Attributes sectionLink icon

You can also create a custom attribute directly in the bot flow. Check the How to Use Attributes section. 

When you create them in the bot flow, you can check them later in the Attributes section and see all the attributes in one place.

You can also create a custom attribute directly in the bot flow. Check the How to Use Attributes section. 

When you create them in the bot flow, you can check them later in the Attributes section and see all the attributes in one place.

Create attributes that match your needs to ensure all necessary information is gathered and saved during the chat. Go to the Attributes section and click the +Add new option. Then, name the attribute, provide a value if needed, and decide if you want to store the value for future chats or collect the new value each time the visitor comes to chat.

You can rename or delete the custom attribute by clicking on the 3-dot symbol next to the attribute’s name. 

You cannot rename or delete a default attribute.

You can rename or delete the custom attribute by clicking on the 3-dot symbol next to the attribute’s name. 

You cannot rename or delete a default attribute.

How to use attributes in a bot flowLink icon

Before you use any attribute in a Bot response, you must ensure that an attribute has an assigned value. Some default attributes have values assigned to them when the chat starts, but most are empty. You must collect the values before you use them in chats.

To get the data, you can use system entities or user entities.

Check the Visitors section to see which attributes have values from the start and which need to be collected. In a single-user view, you can see all the details collected when the chat started in an integration.
Check the Visitors section to see which attributes have values from the start and which need to be collected. In a single-user view, you can see all the details collected when the chat started in an integration.

Collect attributes with a Question actionLink icon

The Question action allows you to ask for the information and save the response in a single step. If you ask the visitor for details in the Question action, you can use that information in your bot responses later in the chat. You can use the action to collect values of default and custom attributes.

Collect attributes with a User InputLink icon

Open the bot flow and add a new User Input block. In the User Says section, type two curly brackets or click the attributes symbol. Select the validation parameter you’d like to use, and choose the attribute you’d like to save the value to from the list. Click Done.

The bot will accept any message as the correct value if you use the Any validation type. This might cause the chat to loop and return to where you chose the Any validation. To prevent looping, use the Backtracking feature after the block with the attribute.
The bot will accept any message as the correct value if you use the Any validation type. This might cause the chat to loop and return to where you chose the Any validation. To prevent looping, use the Backtracking feature after the block with the attribute.

Your bot will now save any message the visitor sends to the Name default attribute. You can use this attribute later in the chat and the bot will display the content of the saved message.

You can check the values of all attributes collected during the chat in the Archives. You can see them on the right side of the screen. 
You can also check the values and collected attributes in the Visitors section, in the single-user view.

You can check the values of all attributes collected during the chat in the Archives. You can see them on the right side of the screen. 
You can also check the values and collected attributes in the Visitors section, in the single-user view.

Use Default attributes in a bot flowLink icon

Add the Bot response block after the User input block. Open the added Bot response and add a new response. Attributes can be added to all bot responses, including titles and buttons. To select an attribute, click on the attribute symbol available in all text fields or type in two brackets — the attribute’s configurator will be displayed.

You need to collect the attributes’ values to use them in the chat. The best way to do it is with the Question action. Use this action before you use the attribute in the chat.
You need to collect the attributes’ values to use them in the chat. The best way to do it is with the Question action. Use this action before you use the attribute in the chat.

The attribute is ready. The bot will use the information it collected beforehand in the chat or pull the information from the integration and display the visitor name instead of the attribute.

Use Custom attributes in a bot flowLink icon

You can create custom attributes beforehand in the Attributes section. This way, they will be available on the attribute list when you want to include them in the bot response.
You can create custom attributes beforehand in the Attributes section. This way, they will be available on the attribute list when you want to include them in the bot response.

You can create custom attributes if you need to collect visitor data that isn’t listed in the default attributes list. Type in two curly brackets or click on the attributes symbol to open the attribute configurator. Then, click on the + Add custom attribute field.

Name your custom attribute. Then, click Add attribute to save it.

Test the bot using the Testing Tool and see whether it works as intended.
Test the bot using the Testing Tool and see whether it works as intended.

Use Advanced button actions to save attributesLink icon

Advanced button actions allow you to add special events triggered when clicked. You can save an action the visitor made as an attribute. Advanced button actions are invisible to end-users.
Click on the button, select Actions, and then Set custom attribute. Now, SET custom attribute TO the value from the button.

Use the Set attribute actionLink icon

You can save attributes at any point in your chatbot by dragging the Set attribute block from the Actions menu. Click on the block to edit it and choose an attribute. SET the attribute TO your chosen value.

You can check every attribute collected during a chat and its values in the Archives. Attributes are displayed on the right side of the screen.
You can also see all attributes associated with a single visitor in the Users section after selecting the visitor from the list.

You can check every attribute collected during a chat and its values in the Archives. Attributes are displayed on the right side of the screen.
You can also see all attributes associated with a single visitor in the Users section after selecting the visitor from the list.

Attributes with integrationsLink icon

ChatBot’s integrations automatically save data about visitors and ongoing chats. You can easily reuse collected information to personalize your conversations.

Some integrations get different data than others. Before using attributes in your interactions, check the list below to verify what data your integration collects.

Attribute name

ChatWidget

LiveChat

HelpDesk

Facebook

Slack

Freshdesk

Zendesk

Shopify

Name

yes

yes

yes

yes

yes

yes

yes

yes

Email

-

yes

yes

-

yes

yes

yes

-

Avatar

-

-

-

yes

yes

-

-

-

Source

yes

yes

yes

yes

-

yes

yes

yes

Language 

-

-

-

yes

-

-

-

-

Timezone

yes

yes

yes

yes

yes

yes

yes

yes

ID

yes

yes

-

-

-

-

-

-

IP

yes

yes

yes

-

-

yes

yes

yes

City 

yes

yes

yes

-

-

yes

yes

yes

Region

yes

yes

yes

-

-

yes

yes

yes

Country

yes

yes

yes

-

-

yes

yes

yes

Postal code

yes

-

yes

-

-

yes

yes

yes

Referrer

-

yes

-

-

-

-

-

-

Real name

-

-

-

-

yes

-

-

-

Integration

yes

yes

yes

yes

yes

yes

yes

yes

Custom attribute

yes

yes

yes

yes

yes

yes

yes

yes

Follow these articles to see the integration processes:

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