Set Attribute

These message parts enable you to set and unset an ‘invisible attribute’ without the need for any user input. It works in the same way as when you save a user attribute on a quick reply, button or Q&A part. The user will not see anything; if they’ve hit the message in the flow, the attribute is set quietly.

 

For example, if I have built an onboarding flow, I can track when users have finished certain tasks or read compulsory documents. The user won't see the message part, but it will be triggered when they reach a certain message in the flow journey.

 

How it works

1) Go to message and choose "Set attribute" message part

In the message builder, you will see a part in the message list called ‘Set attribute’. Click on it to add it to your message (anywhere in the message is fine):

 

2) Configure your settings

Then click on the part in the message where it says ‘click to configure’. You will see a modal with 2 fields, one for the attribute name and one for the attribute value:

 

3) Add your attribute and value

Give your attribute a name eg. ‘Document 1’. Set a value like ‘read’ for the user attribute value field:

You can add multiple attributes at this point by hitting the ‘+’ on the left hand side. This will then set multiple attributes at once when a message is triggered. 

 

4) Save the attribute set up

Save your settings by clicking "Save". Note that the "Save" button will not appear until both fields are populated. The message part will have changed to show a summary headed 'Set User Attribute’ with the values you added for the name and value respectively:

This attribute will now be set to the user when they trigger the message it is in.

 

Clearing attributes

If you are creating a flow that the user will go through multiple times, you may need to reset your attributes to clear whatever was saved from the last journey. For example, you may send out a monthly survey to check if a user has read important documents. It would be good practice to clear the attributes from the previous survey, so the users are saving this month's attributes to a blank slate, and not carrying through old data.

You can do this by using the "Clear user attribute" message part:

 

In the "Clear user attribute" settings, choose the attribute you want to clear and hit save. If you want to clear multiple attributes, hit the ‘+’ icon to add another attribute to be cleared:

 

You’ll then see a clear attribute part with your settings configured:

The flow user will not see this. Any values set in this message part will then clear when a user triggers that message.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.