What are Attributes
ChatBot.com ChatBot.com

dariusz zabrzenski

luiza jurczyk

Last update:

Attributes allow you to assign information to a user or an ongoing chat and reuse them. Furthermore, you can pass these attributes to your web services using webhooks. Use them to personalize the conversation and adjust it for each user.

Quick Overview

  • There are two types of attributes: user attributes defined by you and ready to use default attributes
  • Mosy of the attributes are strictly related to entities
  • Some attributes aren’t related to entities, e.g., default attributes, attributes passed by webhooks, etc.
  • Use Ask a Question action to validate user input and get attributes.
  • You can use maximum 99 attributes in one interaction

Attributes structure

Entities always add attributes by default. It means that you can always call them when you’re using entities.

We have an entity called coffee, which stores types of coffee. When we select this entity using , the system automatically fills the attribute, giving it the same name as the name of the entity.

  • coffee - this is your entity. Don’t change its name!
  • type - this is your attribute. Give it any name you want to know what values this attribute stores.

As you may see, adding attributes to interactions is automatic and doesn’t require any actions. Giving attributes names is a good practice that can help you to identify and use them in your story,

Types of Attributes

Default Attributes automatically collect information regarding users, such as name, surname, avatar, gender, type of integration or source from which the conversation started. Default attributes can be used only for bot responses.

User Attributes allow you to collect any data related to entities (user and system entities). They can be used in bot responses, and the user says sections.

Go to next article arrow_forward