Guide FloatChat

Floatchat- User Guid

Attributes

Attributes are a feature used in FloatChat to store data entered by the user during a conversation, which can later be transferred or utilized in various use-cases. User attributes serve as variables to store data relevant to the execution of a specific path. For instance, they can store information like the user’s email or username, items ordered, quantity, and delivery address for a pizza ordering bot, and so on.

Let’s consider an example to understand how attributes work in FloatChat:

Assume we have an attribute called “Name” to store the names of our users.

  • User A enters “John”
  • User B enters “Juliet”
  • User C enters “Phil”

Attribute: Name

User A: John

         Age: 21

User B: Juliet

         Age: 32

User C: Phil

         Age: 19

These user-specific attributes ensure that the information is stored separately for each user, preventing any mixing of data. By using identifiers, we can map the attributes to their respective users.

In FloatChat, you can incorporate the attribute feature through various methods, such as Date Input Nodes (Request User Data, Form, and Identity node), Set Attribute Node, Send Message With Options node, JSON and Script nodes, and Website scripts.

FloatChat offers two types of attributes: #

 

  1. System Defined Attributes: These attributes are pre-created in FloatChat to capture specific data. For example, the attribute “user_name” is automatically populated by channels like Facebook, which provide the user’s name. The structure for a system-defined attribute is {{user.<attribute name>}}. For instance, the attribute for full name would be {{user.user_name}}.
  1. Custom Attributes: Users can create their own attributes based on their specific use-case requirements. It is recommended not to create an attribute with the same name as a system-defined attribute, as it overrides the default functionality and turns it into a custom attribute that no longer captures values automatically.

To view and use attribute values, you can call an attribute within the relevant node using the ‘{‘ (curly brace) notation, which will display the list of existing attributes. In the script node, you can use the ‘#’ symbol, and a dropdown menu will appear with the list of attributes to choose from.

APIs can be utilized to filter users or conversations based on attribute names and their corresponding values. The Users page provides access to attributes and their values stored for each user.

It’s important to note that attributes have size limitations for performance reasons. The standard limits are up to 25K characters for in-flow usage and up to 1000 characters for persisting information in the database for reporting and segmentation purposes. For double-byte characters, these limits may be halved. To handle larger data, it is recommended to split the data or use paginated responses.

If you encounter any issues, feel free to reach out to support@floatchat.com for assistance.

What are your feelings
Scroll to Top