Flow's Attributes

Attributes are a fundamental piece of your automations.

You can use attributes to store temporary information into 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 Tiledesk you have the following attributes 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, GPT Tasks etc.)

You can define a user attribute simply 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 will be available in the flow it will rendered in place of the one in double curly brackets in your Reply text.

 

Most used attributes

 

Most used catogory are special attributes often used inside a conversation.

lastUserText 

The last text the user typed. This is overwritten on each user reply

user_country

The user Country as decoded by Tiledesk

user_city

The user City as decoded by Tiledesk

user_language

The user language decoded on channel

transcript

All the conversation messages exchanged with this chatbot during the chat

 

System defined attributes

 

department_name

The name of the department where this chatbot is activated

department_id

The ID of the department where this chatbot is activated

project_id

The name of the project where this chatbot belongs to

last_message_id

The unique ID of the last message sent

conversation_id

This conversation unique ID

chatbot_name

This chatbot name

user_id

The user unique ID inside Tiledesk database

user_agent

The web user agent where this conversation initiated

chatChannel

The channel where this conversation belongs to. Ex. "web", "whatsapp", "facebook", "telegram"

user_source_page

The page where this conversations is runinng. Only available on channel "web"

chat_url

The url of the Chat to send to a colleague to chat with this user. Use "Invite human" action to invite the human to this chat.

user_ip_address

The user IP address, when available

ticketId

The ticketId automatically assigned to each conversation

 

Uploaded documents attributes

 

lastUserDocumentURL

The public URL to access the document uploaded by the user. It's empy if no document is uploaded

lastUserDocumentName

The name of the document uploaded by the user. It's empy if no document is uploaded

lastUserDocumentType

The type of the document uploaded by the user. It's empy if no document is uploaded

 

Uploaded Image Attributes  
 

lastUserImageURL

The public URL to access the image uploaded by the user. It's empy if no image is uploaded

lastUserImageName

The name of the image uploaded by the user. It's empy if no image is uploaded

lastUserImageType

The type of the image uploaded by the user. It's empy if no image is uploaded

lastUserImageHeight

The height in pixel of the image uploaded by the user. It's empy if no image is uploaded

lastUserImageWidth

The wdth in pixel of the image uploaded by the user. It's empy if no image is uploaded

 

Lead info Attributes

 

currentPhoneNumber

The user phone used in the current conversation (i.e. coming from Whatsapp / SMS channels)

userPhone

The user phone in Tiledesk Contacts

userEmail

The user email in Tiledesk Contacts

userLeadId

The user contact Id in Tiledesk Contacts

userCompany

The user Company name in Tiledesk Contacts

userFullname

The user Fullname in Tiledesk Contacts