Flow's Attributes

Attributes are a fundamental piece of bot automation.

You can use attributes to store temporary information in your flows.

Attributes play a pivotal role in enhancing the capabilities and functionality of your chatbot within conversational flows. These essential pieces of data serve as the building blocks of personalized and context-aware interactions, enabling your chatbot to understand, remember, and respond to user input effectively. Whether it's storing user data, tracking order histories, or maintaining session context, attributes empower your chatbot to provide a seamless and tailored user experience. In this section, we'll delve into the significance of attributes and how they can be harnessed to create dynamic, intelligent, and user-centric chatbot interactions.



In the bot studio, you have the following attribute categories:

  1. User defined attributes
  2. Most used attributes
  3. System defined attributes
  4. Uploaded documents attributes
  5. Uploaded image attributes
  6. Lead attributes attributes

User-defined attributes

User-defined attributes are really important when you want to get user data or get data from external web services (i.e., Web Requests, AI Tasks, etc).

You can define a user attribute simply by opening the {} button available in every place where the use of an attribute is necessary. You can, for example, create a Reply Action and click on the {} symbol on the lower right corner of the text box:

The attributes selector opens.

Press the " + Add cutom attribute" button and choose a name for your attribute in the popup

Now the attribute is available in the User-defined section, on top of the Attributes selector popup

Simply click on your attribute, and it will appear in your text flow


Now, whenever an attribute is available in the flow, it will be rendered in place of the one in double curly brackets in your Reply text.


Most used attributes

The most used category is special attributes, often used inside a conversation.

Attribute nameTypeDescription
lastUserTextStringThe last text the user typed. This is overwritten on each user reply
user_countryStringThe user Country as decoded by the bot studio
user_cityStringThe user City as decoded by the bot studio
user_languageStringThe user language decoded on channel

System-defined attributes

Attribute nameTypeDescription
department_nameStringThe name of the department where this chatbot is activated
department_idStringThe ID of the department where this chatbot is activated
project_idStringThe name of the project where this chatbot belongs to
last_message_idStringThe unique ID of the last message sent
conversation_idStringThis conversation's unique ID
chatbot_idstringThis is the bot ID
chatbot_nameStringThis chatbot name
chatbot_tokenStringYou can use this token to invoke the bot studio APIs. This token is renewed continuously in the flow, and each token will expire in 4 hours from the time you got it in the flow
user_idStringThe user's unique ID inside the bot studio database
chatChannelStringThe channel where this conversation belongs to. i.e., "web", "wab", "messenger", "instagram"
flowErrorStringThe last error generated in the flow

Uploaded documents attributes

Attribute nameTypeDescription
lastUserDocumentAsAttachmentChannelStringDocument channel
lastUserDocumentIdentifierStringDocument Identifier
lastUserDocumentIdStringDocument ID
lastUserDocumentNameStringThe name of the document uploaded by the user. It's empty if no document is uploaded
lastUserDocumentTypeStringThe type of the document uploaded by the user. It's empty if no document is uploaded

Uploaded Image Attributes

Attribute nameTypeDescription
lastUserImageChannelStringImage channel
lastUserImageIdentifierStringImage Identifier
lastUserImageIdStringImage ID
lastUserImageNameStringThe name of the image uploaded by the user. It's empty if no image is uploaded
lastUserImageTypeStringThe type of the image uploaded by the user. It's empty if no image is uploaded
lastUserImageHeightStringThe height in pixels of the image uploaded by the user. It's empty if no image is uploaded
lastUserImageWidthStringThe wdth in pixels of the image uploaded by the user. It's empty if no image is uploaded

Lead Info Attributes

Attribute nameTypeDescription
currentPhoneNumberStringThe user phone used in the current conversation (i.e., coming from Whatsapp / SMS channels)
userEmailStringThe user email in the Contacts module
userLeadIdStringThe user contact Id in the Contacts module
userCompanyStringThe user Company name in the Contacts module
userFullnameStringThe user Fullname in the Contacts module

Dynamic Attributes


Attribute nameTypeDescription
timestampNumberThe current timestamp in millis (Number format)
nowISO dateThe current date in the ISODate format. Ex. 2024-09-25T10:14:41.638Z (String format)
UUIDStringA dynamic generated UUID obtained from a UUIDv4, removing the dashes
UUIDv4StringA dynamic standard UUIDv4