Personalized Email Campaigns and Abandoned Cart Recovery with Mailchimp

This workflow automates email marketing campaigns, managing subscriber signups, welcome emails, abandoned cart recovery, surveys, and promotions via Mailchimp integration. Key nodes include Webhook for campaign triggers, Condition for security and input validation, Set for data sanitization, Switch for campaign type routing, Mailchimp for list management, Email Send for campaign delivery, Google Sheets for analytics, and Webhook Response for output. It ensures CAN-SPAM and GDPR compliance. To set up, download n8n from n8n.io for self-hosting or sign up at cloud.n8n.io. Obtain a Mailchimp API key from mailchimp.com under Account > Extras > API Keys. Get Google Sheets API credentials from console.cloud.google.com under APIs & Services > Credentials (OAuth 2.0 Client ID). Configure SMTP credentials for email (e.g., Gmail SMTP: smtp.gmail.com, port 587) via your email provider’s settings. In n8n, add these under Credentials > Add Credential > Mailchimp API, Google Sheets OAuth2 API, and SMTP. Import the workflow JSON via Workflows > Import. Configure the Webhook node (path: /email-marketing-automation, method: POST) with CORS headers (Access-Control-Allow-Origin: *). Use ngrok for local webhook testing (e.g., ngrok http 5678). Ensure HTTPS in the Condition node for secure transmission. Test by sending a POST request to the webhook with JSON (e.g., {email: 'user@example.com', firstName: 'John', campaignType: 'welcome', leadSource: 'website'}). Include headers (x-api-key, x-marketing-authorization). Validate output in the Set node for devHubConnectMarketingResponse (e.g., success: true, subscriberInformation.email = 'user@example.com'). Handle errors like invalid API keys (401 response with 'MARKETING_SECURITY_VALIDATION_FAILED') or invalid email format (400 response with 'INVALID_MARKETING_INPUT'). For issues, verify HTTPS, Mailchimp list ID, and Google Sheets ID. Deploy by saving and enabling the workflow. Test with a sample subscriber to confirm email delivery, Mailchimp sync, and Google Sheets logging. Check Webhook Response for marketingResults (e.g., emailDelivered: true). If delivery fails, verify node connections, Mailchimp credentials, and email format in n8n’s editor.

$6.99

Workflow steps: 19

Integrated apps: webhook, manualTrigger, if

Personalized Email Campaigns and Abandoned Cart Recovery with Mailchimp  preview