MEGA icon

MEGA

Manage conversations, contacts, WhatsApp, Kanban CRM and Captain AI in MEGA

Actions417

Conversation → Add Custom Attributes

AI-generated

Summary

Add custom attributes to an existing conversation within a specified account and inbox.

Inputs

  • Account (required) — Select the account to use for the operation, either from a searchable list or by specifying the account ID.
  • Inbox (required) — Select the inbox to use, either from a searchable list or by specifying the inbox ID.
  • Conversation (required) — Select the conversation to which custom attributes will be added, either from a searchable list or by specifying the conversation ID.
  • Specify Custom Attributes (required) — Choose how to specify the custom attributes to add: from pre-defined conversation attributes, using key-value pairs, or by JSON.
  • Custom Attributes (from Definitions) — If choosing 'From Definitions', add one or multiple attributes by selecting from pre-defined conversation custom attribute keys with corresponding values.
  • Custom Attributes (Using Fields Below) — If choosing 'Using Fields Below', add one or multiple custom attributes by specifying attribute names and values as key-value pairs.
  • Custom Attributes (JSON) — If choosing 'JSON', provide a JSON object defining the custom attributes and their values to add.

Output shape

a single object representing the updated conversation's custom attributes.

The operation adds the specified custom attributes to the targeted conversation without removing existing attributes unless overwritten. Inputs require selection of Account, Inbox, and Conversation. Custom attributes can be provided via pre-defined definitions, manual key-value pairs, or JSON object.

Examples

Example 1: Add custom attributes by selecting pre-defined keys and values

Select account, inbox, and conversation; choose 'From Definitions'; add desired attributes and values.

Example 2: Add custom attributes using manual key-value pairs

Select account, inbox, and conversation; choose 'Using Fields Below'; specify attribute names and values.

Example 3: Add custom attributes using a JSON object

Select account, inbox, and conversation; choose 'JSON'; provide a JSON object with attribute keys and values.

Links

Discussion