17 Jul 2017

Intercom Live Chat: Pass custom attributes

Communication 0 Comment

Overview: Intercom lets you send custom attributes about your customers. This means that you can filter your user list and send messages when users meet criteria specific to your business.

You send custom attributes by adding it to your intercomSettings code snippet as additional key/value pairs. Make sure to double check that your custom attribute keys always have a JSON-valid value; this means double quotes around strings and sending null as a value when there isn’t a value for that user. It’s also important to note that:

1. Field names must not contain Periods (‘.’) or Dollar (‘$’) characters
2. Field values must be JSON Strings, Numbers or Booleans – Objects and Arrays will be rejected.
3. Keys cannot contain characters such as ~`!@#%^&*'{}|\'” or the NULL character.
4. Keys are case-sensitive.
5. Values cannot be nested hashes or arrays.
6. We only allow custom data attributes of string type to have up to 255 characters.

Here are some custom attribute examples:

Here are some screen shots for seeing the custom attributes in intercom.