Skip to content

Mautic: Create Segment

Plugin ID: mautic_eca_create_segment

Create a new segment in the selected Mautic instance.

Creates a new segment in Mautic with the provided JSON data. Segments are used to group contacts based on specific criteria.

Fields

Mautic connection — config key: mautic_connection

Select the Mautic connection to use for this action.

Type: select · Required: yes · Default: empty string

Name of token — config key: token_name

Provide the name of a token where the value should be stored. Please provide the token name only, without brackets.

Type: textfield · Required: no · Default: empty string

JSON Data — config key: json_data

Enter the JSON data to create the segment in Mautic. This field must contain valid JSON and can contain tokens.

Type: textarea · Required: yes · Default: empty string

Example json data

Basic Segment

1
2
3
4
{
  "name": "Newsletter Subscribers",
  "description": "Users who have subscribed to our newsletter"
}

Segment with Filters

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{
  "name": "High Value Customers",
  "description": "Customers with high engagement scores",
  "filters": [
    {
      "glue": "and",
      "field": "points",
      "object": "lead",
      "type": "number",
      "filter": "gte",
      "display": null,
      "operator": "gte",
      "value": "100"
    }
  ]
}