I'm seding custom attributes using the update function from react-use-intercom
But I'm having problems using those custom attributes in the text and messages on the intercom painel
After reseach a lot, I found those 3 options, but I couldn't find any oficial documentation about it
// {{custom_token}}
// {{prop.custom_token}}
// {{custom_attributes.custom_token}}
could someone confirm to me, how is the correct syntax is to use the custom attributes as placeholders in my texts
Page 1 / 1
Hey @danilolima Jacques here from Intercom Support. I hope all is well today!
Using custom attributes in your messages really depends on how you’re sending them, there’s a few ways you can do this.
First way is with Workflow. If you’re sending these messages as part of a workflow, you can use the attribute picker in a message block:
So the video above explains how to send pre written messages to your users with dynamic variables.
If you didn’t want to setup a Workflow, you could use our Macros feature. They let you write pre-written messages that you can then use at anytime in your Conversations with your Users in the Intercom Inbox.
If you wanted to just access these attributes when typing out a message to your Users manually in the inbox, we wouldn’t have a built in way to dynamically reference the attribute this way. You would need to open the User’s profile and look at the value of their attribute.
Hope this helps!
You should use the {{custom_attributes.custom_token}} format. Intercom only recognizes custom attributes when referenced with the custom_attributes namespace (Read More). Make sure the attribute is being sent correctly with update() and that it exists on the user’s profile in Intercom before trying to use it in message placeholders.