Summary: ◀▼
You can connect action flows to Mailchimp to automate managing contacts and tags. Use actions to create, update, look up, search, and delete contacts, as well as add, remove, or create tags. Connecting with a dedicated service account is recommended for security. These integrations help streamline audience management and improve collaboration across platforms through automated workflows.
Connecting Mailchimp to action builder
Before you can include external actions in your action flows, you must connect the action builder to the external system.
- All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it's a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
- All integrations request access to necessary scopes. However, it's important that you review and validate the scopes before authorizing the connection to the external system.
- When managing credentials for API key-based tools, such as OpenAI, it's best to store keys in a secure vault or credential manager.
- In Admin Center, click
Apps and integrations in the sidebar, then select Actions > Action
flows. - Create or edit an action flow.
- Open the step sidebar.
- Under External actions, click Mailchimp.
- Click Connect.
- Follow Mailchimp's prompts to authenticate and complete the
connection.
The Mailchimp connection uses OAuth 2.0 with the authorization code grant type. When you authorize the connection, you'll be redirected to Mailchimp to grant permissions to your Zendesk account.
Note: All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it is a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
After you've connected to the system, you'll see an indicator that it's connected and details about the instance you're connected to, as well as the actions available for Mailchimp.
Using Mailchimp actions in action flows
Mailchimp action steps can be used to manage contacts and tags.
Creating contacts
Use the Create contact action to add a new contact to an audience.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience, Email
address, StatusStatus options include Subscribed, Pending, or Transactional. Optional: |
| Output | Contact details, including ID, email address, unique email ID, contact ID, full name, status, email type, VIP status, language, member rating, last changed timestamp, opt-in timestamp, signup timestamp, list ID, merge fields, stats, tags, and tags count. |
Updating contacts
Use the Update contact action to update an existing contact's information.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience, Email
addressOptional: Status options include Subscribed, Unsubscribed, Pending, Cleaned, or Transactional. |
| Output | Updated contact details, including ID, email address, unique email ID, contact ID, full name, status, email type, VIP status, language, member rating, last changed timestamp, opt-in timestamp, signup timestamp, list ID, merge fields, stats, tags, and tags count. |
Looking up contacts
Use the Lookup contact action to retrieve information about a contact using their email address.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience, Email
address
|
| Output | Contact details, including ID, email address, status, unique email ID, contact ID, full name, email type, VIP status, language, member rating, last changed timestamp, opt-in timestamp, signup timestamp, list ID, merge fields, stats, tags, and tags count. |
Searching for contacts
Use the Search contacts action to find contacts in an audience based on various criteria.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: AudienceOptional:
|
| Output | An array of contacts with ID, email address, unique email ID, contact ID, full name, status, email type, VIP status, language, member rating, last changed timestamp, opt-in timestamp, signup timestamp, merge fields, stats, tags, tags count, and list ID. Also includes total items count. |
Adding a tag to a contact
Use the Add tag action to add a tag to an existing contact.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience, Email
address, Tag
|
| Output | Success status |
Removing a tag from a contact
Use the Remove tag action to remove a tag from an existing contact.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience, Email
address, Tag
|
| Output | Success status |
Creating a tag
Use the Create tag action to create a new tag in an audience.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience,
Tag
|
| Output | Tag details, including ID, name, member count, type, creation timestamp, update timestamp, and list ID. |
Deleting a contact
Use the Delete contact action to permanently delete a contact from an audience.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | Required: Audience, Email
address
|
| Output | Success status |