Add Contact to Segment

mautic.add_contact_to_segment
ActionCRM & salesconnection required

Calls the Mautic API with the connection's credentials.

Add one contact to a segment.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Mautic
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
segment_id
The segment to add the contact to.
stringYes——4
contact_id
The contact to add.
stringYes——42

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "contact_id": "42",
  "segment_id": "4"
}

Output

One shape.

result

FieldTypeExample
success
True when Mautic reported the membership change applied.
boolean—
segment_id
The segment id the change was applied to.
number—
contact_id
The contact id the change was applied to.
number—
{
  "contact_id": 0,
  "segment_id": 0,
  "success": false
}

See Add Contact to Segment run in a workflow.

In a technical demo we add the Mautic connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.