Custom Attributes
Custom attributes are tenant-defined fields that can be added to contacts and conversations. Use them to track anything the platform does not model out of the box — customer tier, account number, escalation reason, latest NPS score, lifetime value, and so on.
Two scopes:
- Contact attributes persist on the contact and follow the person across every conversation they have with you.
- Conversation attributes live on a single conversation only. Useful for ticket-style metadata (
escalation_reason,disposition_code,csat_score_followup).
Once defined, attributes appear everywhere relevant: the contact list (as columns and filters), the contact detail page, the inbox sidebar, and the API.
Defining attributes — /settings/custom-attributes
Section titled “Defining attributes — /settings/custom-attributes”Open Settings → Custom Attributes. Two tabs at the top: Contacts and Conversations. Click New Attribute.
Required fields
Section titled “Required fields”| Field | Function |
|---|---|
| Label | What humans see in the picker and column header. Can be edited at any time. |
| Key | A stable identifier used by the API (customer_tier, member_id). Cannot be changed after creation. Lowercase letters, numbers, underscore; max 64 characters; must not start with hs_, intercom_, cw_, or mhd_system_. |
| Display type | Determines the input widget and value semantics. Cannot be changed after creation. |
Display type
Section titled “Display type”| Type | Stored as | Input widget | Notes |
|---|---|---|---|
| Text | string | single-line input | For short labels, IDs |
| Long text | string | multi-line textarea | Notes, comments, descriptions |
| Number | numeric | number input | Quantities, scores |
| Boolean | true/false | toggle | Flags |
| Date | YYYY-MM-DD | date picker | Birthdays, reminders |
| Date & time | ISO 8601 | datetime picker | Last seen, appointments |
| Single choice | option key | dropdown | One of several options (Gold/Silver/Bronze) |
| Multiple choice | array of option keys | chips with an “Add” button | Many of several options (interests, products) |
| URL | string | URL input → displayed as a link | Profile URLs, document links |
| string | email input → mailto link | Secondary email | |
| Phone | string | tel input → tel: link | Secondary phone |
| Currency | {amount, currency} | amount + ISO code | Lifetime value, latest invoice total |
Optional metadata
Section titled “Optional metadata”- Description — shown as a tooltip; explain what the attribute means and when to set it.
- Required — marks the attribute as expected. Currently informational; the backend does not reject contacts that omit it (this lets you add the attribute to existing contacts gradually).
- Unique — only applies to
text/email/url/phone/number. Enabling it schedules a jobCREATE INDEX CONCURRENTLYin the background; from then on, two contacts cannot have the same value (HTTP 409 on collision). - Regex Pattern — only for
text/url/email/phone. PCRE compatible. The regex is validated when the definition is saved. - Regex Hint — short text shown when editing fails the regex (
Format harus ABC-1234). - Default value — applied when a contact is created without setting this attribute. The format depends on its type.
- Show in List — when enabled, the attribute appears as a column in the contact list by default and can be sorted.
- Show in inbox — if enabled, the attribute can be edited in the inbox sidebar.
- Sort order — integer; lower numbers appear first in the picker and panel.
API access (write triplet)
Section titled “API access (write triplet)”Each attribute has three independent flags:
- API writable — can an external HTTP client (public REST API) set this attribute? Enabled by default.
- SDK writable — can the JS or mobile SDK set it via
setCustomAttributes({...})? Disabled by default; enable it for attributes intended to be filled from the user’s device. - Agent writable — can agents edit it from the portal/inbox? Enabled by default. Disable it for attributes that may only be set programmatically (e.g.
tier_calculated_at).
Options (single/multiple choice only)
Section titled “Options (single/multiple choice only)”Add one option per line: Label (which you see) and Value (what is stored — auto-slugged from the label, editable). Color optional. Drag rows to reorder.
When you delete an option, contacts that have that value still keep it (it is just rendered without styling). Better than deleting: open the option editor, edit the label, or Archive the entire attribute and create a new one.
Archive vs delete
Section titled “Archive vs delete”Attributes can be archived but not deleted. Archive when you no longer want operators to use the attribute, but still want existing values to remain stored on the contact.
- The attribute disappears from the picker, the column selector, the filter builder, and the New Attribute dialog.
- Contacts that already have a value still display it (grayed out, with an “archived” badge in the panel).
- Unarchive at any time to restore it.
Using attributes in the /contacts
Section titled “Using attributes in the /contacts”Column selector
Section titled “Column selector”In the top-right corner of the contacts toolbar. Two groups:
- Built-in — Name, Phone number, Email, Tags, Last updated.
- Custom — any non-archived attribute. Check to add/remove. Reset to default restores: defaults + every starred attribute
show_in_list.
Filter builder
Section titled “Filter builder”Popover Filter lets you stack rules (AND only — nested OR is deferred). Each row:
- Pick an attribute (built-in or custom).
- Pick an operator — the list adjusts to the attribute’s display type.
- Provide a value (or not, for
terisi/kosong).
Operators per type:
| Type | Operator |
|---|---|
| text/url/email/phone | equals, not equals, contains, starts with, ends with, is filled, is empty |
| long text | contains, is filled, is empty |
| number/currency | =, not equal, >, greater than or equal, <, less than or equal, between, is filled, is empty |
| boolean | =, is filled, is empty |
| date/datetime | =, before, after, between, in the last N days, is filled, is empty |
| single choice | =, not equals, in, is filled, is empty |
| multiple choice | contains, contains any of, contains all, is filled, is empty |
Saved views
Section titled “Saved views”Once you have a useful combination of columns + filters + sorting, Save view as… will capture it. Views can be:
- Private (default) — only you can see it.
- Shared — admins can enable the toggle when saving; once shared, every team member can load and pin it.
Inline editing
Section titled “Inline editing”Click any custom attribute cell in the table. The cell turns into the corresponding input:
- Text/Number/URL/Email/Phone: inline input. Press Enter to save, Escape to cancel.
- Boolean: toggle.
- Date/Datetime: native date/time picker.
- Single choice: dropdown with options.
- Multiple choice: chips with a button
Tambahbutton to pick from the remaining options. - Currency: currency code dropdown + amount input.
A red border + tooltip appears if the value fails server-side validation (regex, unique, type). The cell reverts to its previous value on failure.
Bulk edit
Section titled “Bulk edit”Check a row checkbox to enter selection mode. The bulk toolbar at the top shows the count and exposes:
- Edit attribute — choose an attribute, set a new value (or click Clear value) and apply it to all selected.
Bulk edit is limited to 1000 contacts per call.
Using attributes in the inbox
Section titled “Using attributes in the inbox”Open any conversation. The right sidebar displays two panels:
- Contact attributes — values follow the person across every conversation. Editing here is the same as editing on the
/contacts/[id]. - Conversation attributes — values are scoped to this conversation only.
Each panel has a menu:
- Show / Hide archived — show archived attributes.
- Manage attributes — quick link to
/settings/custom-attributes.
Importing contacts with custom attributes
Section titled “Importing contacts with custom attributes”Use Contacts → Import (CSV/XLSX). The wizard guides you:
- Upload — file max 10 MB (CSV) or 25 MB (XLSX).
- Match by —
teleponoremail. Determines whether existing contacts are updated based on phone number or email. - Column mapping — for each CSV column, choose the destination:
- Default:
name,phone_number,email,tags(comma inside the cell). - Custom attribute:
ca:<key>. Only non-archived attributes are listed.
- Default:
- Confirm and run — the import task is queued and processed asynchronously.
CSV expectations:
- The first row is the header. Headers are matched against the column mapping.
- Empty cells skip that field (does not overwrite existing values with blank).
- Multi-select values: comma-separated within a cell, or a JSON array (
["gold","silver"]). - Currency value: JSON
{"amount":1000,"currency":"IDR"}or just a number (treated as the primary currency). - Date / datetime: ISO 8601 (
2026-04-25or2026-04-25T10:00:00Z). - Boolean:
true/false/yes/no/1/0.
Best practices
Section titled “Best practices”Troubleshooting
Section titled “Troubleshooting”| Symptoms | Possible cause | Solution |
|---|---|---|
| New attribute does not appear in the column picker | SWR cache; reload the page | Reload, or wait ~60 seconds for revalidation |
| Direct edit does nothing | Attribute agent_writable=false or cell renderer has not loaded yet | Check the attribute API access tab |
| ”Unknown attribute key” during import | CSV columns mapped to ca:foo but there is no attribute with that key foo | Check the key spelling in /settings/custom-attributes |
409 when PATCH /api/contacts/{id} | Collision is_unique — another contact already has this value | Find the duplicate or relax the unique constraint |
| Filter on a custom attribute does not return the expected rows | Values may have inconsistent casing or spacing from old imports | Use mengandung instead of sama dengan, or run bulk_upsert to normalize |
| Sorting on a custom column shows the “Enable Show in list” toast | Attribute does not have an expression index | Enable show_in_list on the attribute; wait ~30 seconds for the index build |