ManyChat icon

ManyChat

Consume issues from the ManyChat API

Subscriber → Set Custom Fields

AI-generated

Summary

Set multiple custom fields for a subscriber in ManyChat.

Inputs

  • subscriber_id — The ManyChat subscriber ID to update. Defaults to 0 if omitted.
  • fields — An array of up to 20 custom field definitions. Each entry specifies field_name or field_id along with a required field_value. Use fieldName for name-based fields or field_id for ID-based fields.
  • authentication — Credentials for the ManyChat API. Defaults to accessToken.

Output shape

API response from ManyChat confirming the custom fields update.

The operation sends a POST request to /fb/subscriber/setCustomFields. The API returns a confirmation of the update, typically including the subscriber's updated custom field values.

Examples

Example 1: Set a single custom field by name

subscriber_id: 12345, fields: [{ fieldName: 'loyalty_points', fieldValue: '150' }]

Example 2: Set multiple custom fields by ID in one request

subscriber_id: 12345, fields: [{ fieldId: 101, fieldValue: 'gold' }, { fieldId: 102, fieldValue: '2024-01-01' }]

Links

Discussion