Inbox
Custom attributes
Keep order details on a conversation and customer details on the contact profile.
Custom attributes show details such as a customer’s membership tier or an order’s shipping status in the support dashboard. Define the attribute in Settings, then send a value for a specific contact or conversation through your site, the API channel, or a custom action.
Choose where to store the attribute
| Scope | When to use it | Examples |
|---|---|---|
| Contact | The information belongs to the customer and is useful across conversations. | Membership tier, company, preferred language |
| Conversation | The information belongs to one request and may differ in the next conversation. | Order ID, shipping status, return follow-up date |
If a customer opens two conversations about two orders, teammates can look up the same membership tier on the contact profile. Each conversation keeps its own order ID.
Define the attribute in Settings
- Open your agent’s Settings, choose Custom attributes, and select New attribute.
- Choose Conversation or Contact. The scope stays fixed after creation.
- Enter Order ID as the display name and
order_idas the key. Teammates see the display name. Each key must be unique within its scope and can contain English letters, digits and underscores. - Choose Text to preserve leading zeros. Optionally add a description such as “The order number printed on the receipt.” Select Create.

Value types
| Type | Example |
|---|---|
| Text | An order ID such as 00124. Enable regex validation and add a hint if the ID follows a specific pattern. |
| Number | Item count |
| Link | Tracking URL |
| Date | Delivery date |
| Currency | Order total |
| Percent | Discount percentage |
| List | Shipping status. Enter one option per line, with 1–100 distinct options. |
| Checkbox | Whether the order has been paid |
Send contact data
To show a membership tier, create a Contact attribute named Membership tier with type Text and key membership_tier. Use that same key when sending a value through either channel below.
Website widget with setUser
When a customer signs in, your server can include their tier in the widget identity token. Put the stable account ID in user_id and the contact attributes in custom_attributes:
{
"user_id": "customer-42",
"custom_attributes": { "membership_tier": "gold" }
}Sign the token on the server with this widget’s identity secret. After the widget installation code runs, pass the signed token to window.$muchat.setUser(userJwt) in the browser. When the tier changes, sign a fresh token with the new value and call the method again. Signing and validating contact attributes
API channel
In a send-message request, place the customer ID in contact.identifier and the tier in contact.custom_attributes. This is the contact portion of the request body. Send-message parameters
{
"contact": {
"identifier": "customer-42",
"custom_attributes": { "membership_tier": "gold" }
}
}Save an action result automatically
An order lookup action can save the shipping status returned by your store on the conversation.
- Create a Conversation text attribute named Shipping status with the key
shipping_status. - Open Advanced settings in the custom action. Under the output field mappings, add a mapping.
- For a response such as
{"order":{"status":"In transit"}}, selectorder.statusas the output field andshipping_statusas the destination. Save the changes.
After a successful run, the conversation holds the returned status. For results that belong to the customer, such as a membership tier, select a contact attribute as the destination.

View recorded values
On the contact profile, open the customer in Contacts. Contact attributes lists recorded values such as membership tier. Empty attributes are omitted.

In the inbox, open the conversation and expand Conversation attributes in its details panel to see the order ID, total or status recorded for that request.

Edit or delete an attribute
Return to Custom attributes, select the scope, and use the pencil beside the attribute to edit its display name or description. Select Save changes. Deleting an attribute permanently removes its definition. Previously recorded values are retained.