Mailchimp Trigger

Start the workflow when someone subscribes, unsubscribes, or changes a profile, or when a campaign is sent.

v1.0.0Source

Install

Manage Mailchimp audience members, tags, groups, and campaigns, and start a workflow when someone subscribes, unsubscribes, changes a profile, or a campaign is sent. Use it for newsletters and list sync.

Mailchimp@zerodot/mailchimpInstall
  1. Open System, then Nodes.
  2. Find Mailchimp and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

Mailchimp Trigger (trigger.mailchimp) is a trigger node in the Mailchimp package (@zerodot/mailchimp): Start the workflow when someone subscribes, unsubscribes, or changes a profile, or when a campaign is sent.

Starts a run on an event of an audience. Set List ID, the Events, and the Sources:

  • Events: Subscribe, Unsubscribe, Profile Updated, Cleaned, Email Address Changed, Campaign Sent
  • Sources: By a Subscriber, By an Admin, By the API

When the workflow is published, the trigger makes the webhook at Mailchimp (POST /lists/{id}/webhooks). When the workflow stops, the trigger removes the webhook. You do not set anything in Mailchimp. The address of the trigger must be reachable from the internet.

Mailchimp sends a form with bracket keys, such as data[merges][FNAME]. The trigger changes it to nested JSON. The output is { type, firedAt, data }, and data depends on the event. For example, a subscribe event has data.email and data.merges.FNAME.

Mailchimp has no signature for webhooks. The address of the trigger has a secret token, so keep the address private. The trigger ignores events for other audiences. Mailchimp checks a new webhook with a GET request, and the trigger answers it with status 200.

Logins it can use

Mailchimp API key (mailchimp.apiKey): apiKey from Profile > Extras > API keys. The key is secret. The end of the key is the data center (for example -us21), and the node uses it to find the API host. The Test button calls GET /ping. OAuth2 is not supported.

Guides and related hubs