AutomationTasks

Enroll in Campaign

Enroll a contact into a native GTM Sending campaign.

Task type: Enroll in Campaign

Use Enroll in Campaign to add a contact to a native GTM Sending campaign from a workflow.

Run behavior

  • Side effects: This task is read-only or computation-only by default. It returns data for later steps rather than directly writing records or sending messages.
  • Credit usage: This task is not classified as credit-billed by the workflow task registry.

When to use this task

  • Enroll a qualified contact into a GTM Sending campaign after scoring or review.
  • Drip a contact into a nurture campaign a set number of days after another step.
  • Move contacts between native campaigns based on workflow logic.

Setup tips

  • Select the native (GTM Sending) campaign to enroll into.
  • Leave the contact id as the workflow input contact unless mapping a specific record.
  • Enrollment is processed asynchronously; downstream steps should not assume immediate sends.

Examples

Nurture after no-reply

Wait 30 days, then enroll the contact into a long-term nurture campaign.

Outputs

  • The target campaign id, contact id, and enrollment status.

Common pitfalls

  • Targeting an Instantly campaign instead of a native GTM Sending campaign.
  • Passing an unresolved contact id template.
  • Re-enrolling a contact already active in the campaign.

Reference details

These details are generated from the workflow task registry and match the fields available in the builder.

Required fields

  • campaignId
  • contactId

Variable-aware fields

Fields that accept variable references ({{ inputs.x }}, {{ steps.N.y }}) from the workflow's variable graph:

  • contactId

Liquid template fields

Fields that are rendered through Liquid (variables plus filters and control flow):

  • contactId

Builder guidance

When the Workflow Builder Genie configures this task, it follows this guidance:

Pick the native campaign to enroll into and confirm the contact id resolves (defaults to the workflow input contact).

Default configuration

New instances of this task start with the following configuration:

{
  "name": "Enroll in Campaign",
  "outputKey": "campaign_enrollment",
  "taskType": "Enroll in Campaign",
  "description": "",
  "campaignId": "",
  "contactId": "{{inputs.contact_id}}"
}

On this page