Skip to main content
Automations are currently in private alpha and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.10.0-preview-workflows.3
Contact us if you’re interested in testing this feature.
This step adds the current contact to a specified Segment when reached in the Automation flow. Common use cases:
  • Cohorts — Add contacts to a cohort segment after a specific event.
  • Lifecycle — Segment contacts as they progress through onboarding.
  • Engagement — Group contacts who completed a specific action.

Adding to a segment step

Define a Add to segment step and select the segment from the dropdown.Automation Add to Segment

Configuration

config.segment_id
string
required
The ID of the segment to add the contact to.
Example
{
  "ref": "add_to_vip",
  "type": "add_to_segment",
  "config": {
    "segment_id": "83a1e324-26dc-47eb-9b28-ba8b6d1fe808"
  }
}