Chatwoot fazer.ai icon

Chatwoot fazer.ai

Interact with the Chatwoot API

Actions134

Contact → Set Custom Attribute

AI-generated

Summary

Set custom attribute on a contact

Inputs

  • accountId (required) — Select the account to use.
  • contactId (required) — Select the contact to use.
  • specifyCustomAttributes — Choose how to provide custom attributes (definition, keypair, or JSON).
  • customAttributesDefinition — Add custom attribute definitions (used when specifyCustomAttributes is set to definition).
  • customAttributesParameters — Add custom attribute parameters (used when specifyCustomAttributes is set to keypair).
  • customAttributesJson — Provide custom attributes as a JSON string (used when specifyCustomAttributes is set to json).

Output shape

a Contact object with the updated custom attributes

Returns the modified contact; errors are propagated as execution failures.

Examples

Example 1: Add a predefined attribute 'subscription_type' with value 'premium'

accountId (list), contactId (list), specifyCustomAttributes=definition, customAttributesDefinition[0].key=subscription_type, customAttributesDefinition[0].value=premium

Example 2: Set a custom attribute using a key/value pair

accountId (list), contactId (list), specifyCustomAttributes=keypair, customAttributesParameters[0].name=subscription_type, customAttributesParameters[0].value=premium

Example 3: Set multiple custom attributes via JSON

accountId (list), contactId (list), specifyCustomAttributes=json, customAttributesJson={"subscription_type":"premium","region":"EU"}

Links

Discussion