MailchimpとGmailを使ってウェルカムメールと割引コードの送信を自動化する

中級

これはSocial Media, Multimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にGmail, Webhook, Mailchimpなどのノードを使用。 MailchimpとGmailを使ってウェルカムメールと割引コードを自動送信

前提条件
  • Googleアカウント + Gmail API認証情報
  • HTTP Webhookエンドポイント(n8nが自動生成)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "cbbe3d07d282d90d2165a7ab7800571be416166e6eb660e7a28cfe9b84473f49",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "1363ffcf-aa23-436a-8c53-0a3fbc096cfa",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -352,
        -32
      ],
      "webhookId": "b3d366be-bffc-4d2d-a465-db487976ada0",
      "parameters": {
        "path": "b3d366be-bffc-4d2d-a465-db487976ada0",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "lastNode"
      },
      "typeVersion": 2.1
    },
    {
      "id": "36da0cb5-4135-4289-bfd9-2ceb81aea84a",
      "name": "メンバー作成",
      "type": "n8n-nodes-base.mailchimp",
      "onError": "continueRegularOutput",
      "position": [
        -128,
        -32
      ],
      "parameters": {
        "list": "YOUR_MAILCHIMP_LIST_ID ",
        "email": "={{ $json.body.email }}",
        "status": "subscribed",
        "options": {},
        "mergeFieldsUi": {
          "mergeFieldsValues": [
            {
              "name": "FNAME",
              "value": "={{ $json.body.name }}"
            }
          ]
        }
      },
      "credentials": {
        "mailchimpApi": {
          "id": "t9AnVp15cqDkacCi",
          "name": "Mailchimp account"
        }
      },
      "retryOnFail": false,
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "6370189c-3288-4e4a-8c91-cfe831fc96b1",
      "name": "メッセージ送信",
      "type": "n8n-nodes-base.gmail",
      "position": [
        96,
        -32
      ],
      "webhookId": "c28c4c93-f099-407e-aec7-dcb7ca5c7fb7",
      "parameters": {
        "sendTo": "={{ $('Webhook').item.json.body.email }}",
        "message": "=<!DOCTYPE html> <html> <body style=\"font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto;\">     <div style=\"background-color: #f8f9fa; padding: 20px; text-align: center;\">         <h1 style=\"color: #333;\">Welcome to [Your Business Name]!</h1>                  <p style=\"font-size: 18px; color: #666;\">             Hi {{ $node[\"Webhook\"].json[\"name\"] || \"there\" }},         </p>                  <p style=\"font-size: 16px; color: #666; line-height: 1.6;\">             Thank you for joining our community! We're excited to have you on board.         </p>                  <div style=\"background-color: #007bff; color: white; padding: 20px; margin: 20px 0; border-radius: 8px;\">             <h2 style=\"margin: 0;\">Your Welcome Gift!</h2>             <p style=\"font-size: 24px; font-weight: bold; margin: 10px 0;\">                 WELCOME15             </p>             <p style=\"margin: 0;\">Use this code for 15% off your first order</p>         </div>                  <a href=\"https://your-website.com/shop\"             style=\"background-color: #28a745; color: white; padding: 15px 30px;                    text-decoration: none; border-radius: 5px; display: inline-block;                    margin: 20px 0;\">             Start Shopping         </a>                  <p style=\"font-size: 14px; color: #999; margin-top: 30px;\">             Follow us on social media for the latest updates and offers!         </p>                  <div style=\"margin-top: 20px;\">             <a href=\"https://facebook.com/yourpage\" style=\"margin: 0 10px;\">Facebook</a>             <a href=\"https://instagram.com/yourpage\" style=\"margin: 0 10px;\">Instagram</a>             <a href=\"https://twitter.com/yourpage\" style=\"margin: 0 10px;\">Twitter</a>         </div>     </div> </body> </html>",
        "options": {},
        "subject": "Welcome to Berley! Here's your 15% discount 🎉"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "VI8hpbWunRMMvR6a",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "36131d9d-d138-4955-ae74-40b765851aef",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        -240
      ],
      "parameters": {
        "width": 304,
        "height": 1136,
        "content": "## 📧 Automated Welcome Email with Discount Code\n\n### 🎯 What This Does\nAutomatically nurtures new subscribers with personalized welcome emails and discount codes:\n  - **Instant response** to website signup forms via webhook\n  - **Mailchimp integration** adds contacts to your email list\n  - **Branded welcome email** with personalized discount code\n  - **Error handling** ensures emails send even if list addition fails\n\n### ⚡ How It Works\n  1. Website form submits data to webhook endpoint\n  2. Contact automatically added to Mailchimp audience\n  3. Personalized welcome email sent via Gmail\n  4. Subscriber gets immediate value with discount code\n\n### 🛠️ Setup Required\n**Before using this workflow:**\n  1. Replace YOUR_MAILCHIMP_LIST_ID with your actual Mailchimp list ID\n  2. Update email template with your business name and branding\n  3. Change discount code and shop URL to your own\n  4. Add your website form endpoint to trigger the webhook\n  5. Configure Mailchimp and Gmail credentials\n\n### 💡 Perfect For\n  - E-commerce businesses building customer lists\n  - SaaS companies onboarding trial users\n  - Course creators nurturing leads\n  - Service providers automating client intake"
      },
      "typeVersion": 1
    },
    {
      "id": "244bd91b-1dc0-4b0c-8771-4c7da2ebf0f9",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -192
      ],
      "parameters": {
        "color": 6,
        "height": 336,
        "content": "#### Step 1: Receive Signup Data\n\nWebhook receives form submissions from your website."
      },
      "typeVersion": 1
    },
    {
      "id": "6768e505-ed3e-4462-8fc3-2825580d9cbc",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -192
      ],
      "parameters": {
        "color": 3,
        "height": 336,
        "content": "#### Step 2: Add to Email List\n\nAutomatically adds subscriber to your Mailchimp audience."
      },
      "typeVersion": 1
    },
    {
      "id": "de85be05-732e-4ab9-b12f-5c35dee75a96",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        -192
      ],
      "parameters": {
        "color": 4,
        "height": 336,
        "content": "#### Step 3: Send Welcome Email\n\nSends branded welcome email with personalized discount code."
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Webhook": [
      {
        "body": {
          "name": "Bideen",
          "email": "abideen.datascienceofficial@gmail.com",
          "source": "website",
          "timestamp": "2025-08-23T20:12:07.935Z"
        },
        "query": {},
        "params": {},
        "headers": {
          "host": "primary-production-a4a8.up.railway.app",
          "accept": "*/*",
          "origin": "https://a7b923f7-55b0-4612-98a3-bec7fe294375.sandbox.lovable.dev",
          "referer": "https://a7b923f7-55b0-4612-98a3-bec7fe294375.sandbox.lovable.dev/",
          "priority": "u=1, i",
          "sec-ch-ua": "\"Not;A=Brand\";v=\"99\", \"Microsoft Edge\";v=\"139\", \"Chromium\";v=\"139\"",
          "x-real-ip": "102.88.52.28",
          "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0",
          "content-type": "application/json",
          "content-length": "123",
          "sec-fetch-dest": "empty",
          "sec-fetch-mode": "cors",
          "sec-fetch-site": "cross-site",
          "x-railway-edge": "railway/europe-west4-drams3a",
          "accept-encoding": "gzip, deflate, br, zstd",
          "accept-language": "en-US,en;q=0.9,en-GB;q=0.8",
          "x-forwarded-for": "102.88.52.28",
          "x-request-start": "1755979928499",
          "sec-ch-ua-mobile": "?0",
          "x-forwarded-host": "primary-production-a4a8.up.railway.app",
          "x-forwarded-proto": "https",
          "sec-ch-ua-platform": "\"Windows\"",
          "x-railway-request-id": "NJw37UqQQF-nnduU5nX1uw"
        },
        "webhookUrl": "https://primary-production-a4a8.up.railway.app/webhook-test/b3d366be-bffc-4d2d-a465-db487976ada0",
        "executionMode": "test"
      }
    ]
  },
  "connections": {
    "1363ffcf-aa23-436a-8c53-0a3fbc096cfa": {
      "main": [
        [
          {
            "node": "36da0cb5-4135-4289-bfd9-2ceb81aea84a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "36da0cb5-4135-4289-bfd9-2ceb81aea84a": {
      "main": [
        [
          {
            "node": "6370189c-3288-4e4a-8c91-cfe831fc96b1",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - ソーシャルメディア, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

受信頼入り口管理エージェント
GPT-5 分類を使用して Gmail メッセージに自動のにラベルを付ける
Gmail
Gmail Trigger
Lm Chat Open Ai
+
Gmail
Gmail Trigger
Lm Chat Open Ai
8 ノードAbideen Bello
AI要約
Claude、GPT-4o、OpenAI TTSを使用してニュース記事を音声ニュースリ持续上涨
ニュース記事を音声ニュースレターや音声要約に変換するためにClaude、GPT-4o、およびOpenAI TTSを使用
Gmail
Split Out
Aggregate
+
Gmail
Split Out
Aggregate
18 ノードAbideen Bello
コンテンツ作成
HubSpot 連絡先と SharePoint に AI 生成のニュースリリースと素材を生成
GPT-4o、AI画像・動画を使ってHubSpotとSharePointでバイリンガル・プレスリリースを作成
If
Set
Code
+
If
Set
Code
49 ノードplemeo
ソーシャルメディア
ソーシャルコメントエージェント
Claude Sonnet と Trigify を基にした AI によるソーシャルメディア思想リーダーシップシステム
If
Set
Slack
+
If
Set
Slack
14 ノードMax Mitcham
ソーシャルメディア
動画と画像の投稿 - 新しい Blotato ノード
Blotato と Airtable を使って 9 つのソーシャルプラットフォームにコンテンツを自動投稿する
Set
Code
Wait
+
Set
Code
Wait
51 ノードMax aka Mosheh
ソーシャルメディア
電子商取引での誕生日割引自動化
Google SheetとGmailを使用してECサイトの誕生日割引メールを自動化
If
Gmail
Function
+
If
Gmail
Function
7 ノードMarth
ソーシャルメディア
ワークフロー情報
難易度
中級
ノード数7
カテゴリー2
ノードタイプ4
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Abideen Bello

Abideen Bello

@bideen

Data/Automation consultant with experience helping Sales & Marketing teams to streamline their processes. Use my link to book an initial consultation for custom n8n work.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34