8
n8n 中文网amn8n.com

使用GPT-4和Outlook为Calendly预约发送个性化跟进邮件

中级

这是一个Lead Nurturing, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 Set, Agent, CalendlyTrigger, MicrosoftOutlook, LmChatOpenAi 等节点。 使用GPT-4和Outlook为Calendly预约发送个性化跟进邮件

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "2393eb8d-1891-4241-a10a-a57fd98c55f3",
      "name": "编辑字段1",
      "type": "n8n-nodes-base.set",
      "position": [
        336,
        624
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "57d266ad-fa73-4e7a-8630-200e6bdc0da0",
              "name": "payload.email",
              "type": "string",
              "value": "={{ $json.payload.email }}"
            },
            {
              "id": "01b92620-7ee3-4805-bee8-ac8a3e9971fd",
              "name": "payload.questions_and_answers[0].answer",
              "type": "string",
              "value": "={{ $json.payload.questions_and_answers[0].answer }}"
            },
            {
              "id": "3742a6c0-d214-4020-bab3-cdae2c7a297c",
              "name": "payload.name",
              "type": "string",
              "value": "={{ $json.payload.name }}"
            },
            {
              "id": "a195c86d-8f23-4787-8a44-15d9e15d2396",
              "name": "payload.scheduled_event.start_time",
              "type": "string",
              "value": "={{ $json.payload.scheduled_event.start_time }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fb75bd8b-aa90-4819-87de-283fc81ab718",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        544,
        624
      ],
      "parameters": {
        "text": "=Name:  {{ $json.payload.name }} About:  {{ $json.payload.questions_and_answers[0].answer }} Start Time: {{ $json.payload.scheduled_event.start_time }}",
        "options": {
          "systemMessage": "You are a helpful assistant. Write an email to the user. Elaborate on how we can help them with their topic and give my fake phone number for now 111-111-1111. Write the email in html. also put the meeting date in there. \n\n\noutput like this. \n\n{\n\t\"email\": \"html email\"\n}"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "2c4476e4-5e1e-4b8c-af27-7a9f793ec018",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        496,
        864
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4l6TDfLZVFS24g3X",
          "name": "OpenAi account 4"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b554a77a-3886-4f1b-96ef-5a96a75824c0",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        720,
        832
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"email\": \"html email\",\n\t\"slack\": \"Slack Message\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "5c846301-8318-471a-b4c1-8554ce97d760",
      "name": "发送消息2",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        912,
        560
      ],
      "webhookId": "2f801cc8-4cdf-4f29-a6af-a872d46cb7d7",
      "parameters": {
        "subject": "Calendly Details",
        "bodyContent": "={{ $json.output.email }}",
        "toRecipients": "={{ $('Edit Fields1').item.json.payload.email }}",
        "additionalFields": {
          "bodyContentType": "html"
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "id": "9z1nG9ReKLXU309r",
          "name": "Microsoft Outlook account 4"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1f87bd9f-9127-4436-b6fe-1104dd47844c",
      "name": "便签16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -320
      ],
      "parameters": {
        "width": 1680,
        "content": "## 📬 需要帮助或想要自定义此工作流?"
      },
      "typeVersion": 1
    },
    {
      "id": "75ddecca-3f1a-4e68-b1b4-c6d0b1a9288c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -128
      ],
      "parameters": {
        "color": 4,
        "width": 1680,
        "height": 1168,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "af63afc3-8917-4399-a349-696a0477796d",
      "name": "Calendly 事件",
      "type": "n8n-nodes-base.calendlyTrigger",
      "position": [
        32,
        624
      ],
      "webhookId": "30861dd4-1d11-4fe7-b7a5-764ed90390f7",
      "parameters": {
        "events": [
          "invitee.created"
        ]
      },
      "credentials": {
        "calendlyApi": {
          "id": "CbZOvOQZrfqMlaAV",
          "name": "Calendly account"
        }
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Calendly Event": [
      {
        "event": "invitee.created",
        "payload": {
          "uri": "https://api.calendly.com/scheduled_events/f283c53d-8fce-462d-8a51-6f15d4a1e7c0/invitees/7960259a-dd08-4d47-bedc-89158719358f",
          "name": "Robert Breen",
          "email": "robert.j.breen@gmail.com",
          "event": "https://api.calendly.com/scheduled_events/f283c53d-8fce-462d-8a51-6f15d4a1e7c0",
          "status": "active",
          "no_show": null,
          "payment": null,
          "timezone": "America/New_York",
          "tracking": {
            "utm_term": null,
            "utm_medium": null,
            "utm_source": null,
            "utm_content": null,
            "utm_campaign": null,
            "salesforce_uuid": null
          },
          "last_name": null,
          "cancel_url": "https://calendly.com/cancellations/7960259a-dd08-4d47-bedc-89158719358f",
          "created_at": "2025-08-11T14:20:12.656697Z",
          "first_name": null,
          "updated_at": "2025-08-11T14:20:12.656697Z",
          "new_invitee": null,
          "old_invitee": null,
          "rescheduled": false,
          "reconfirmation": null,
          "reschedule_url": "https://calendly.com/reschedulings/7960259a-dd08-4d47-bedc-89158719358f",
          "scheduled_event": {
            "uri": "https://api.calendly.com/scheduled_events/f283c53d-8fce-462d-8a51-6f15d4a1e7c0",
            "name": "30 Minute Meeting",
            "status": "active",
            "end_time": "2025-08-11T19:30:00.000000Z",
            "location": {
              "data": {
                "id": 81095279315,
                "extra": {
                  "intl_numbers_url": null
                },
                "password": "754637",
                "settings": {
                  "global_dial_in_numbers": [
                    {
                      "type": "toll",
                      "number": "+1 305 224 1968",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 309 205 3325",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "city": "Chicago",
                      "type": "toll",
                      "number": "+1 312 626 6799",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "city": "New York",
                      "type": "toll",
                      "number": "+1 646 558 8656",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 646 931 3860",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "city": "Washington DC",
                      "type": "toll",
                      "number": "+1 301 715 8592",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 507 473 4847",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 564 217 2000",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 669 444 9171",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 689 278 1000",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 719 359 4580",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "city": "Denver",
                      "type": "toll",
                      "number": "+1 720 707 2699",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 253 205 0468",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "city": "Tacoma",
                      "type": "toll",
                      "number": "+1 253 215 8782",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "city": "Houston",
                      "type": "toll",
                      "number": "+1 346 248 7799",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 360 209 5623",
                      "country": "US",
                      "country_name": "US"
                    },
                    {
                      "type": "toll",
                      "number": "+1 386 347 5053",
                      "country": "US",
                      "country_name": "US"
                    }
                  ]
                }
              },
              "type": "zoom",
              "status": "pushed",
              "join_url": "https://us06web.zoom.us/j/81095279315?pwd=N4jKKlN0EF27yJHa9faMUk11I4Y8a8.1"
            },
            "created_at": "2025-08-11T14:20:12.635731Z",
            "event_type": "https://api.calendly.com/event_types/442b1bfd-6d30-41cc-8504-5586d5a61f84",
            "start_time": "2025-08-11T19:00:00.000000Z",
            "updated_at": "2025-08-11T14:20:12.635731Z",
            "event_guests": [],
            "invitees_counter": {
              "limit": 1,
              "total": 1,
              "active": 1
            },
            "event_memberships": [
              {
                "user": "https://api.calendly.com/users/9ee956f4-bad6-4cc9-b024-4d60580a8ce6",
                "user_name": "Robert Breen",
                "user_email": "rbreen@ynteractive.com"
              }
            ],
            "meeting_notes_html": null,
            "meeting_notes_plain": null
          },
          "scheduling_method": null,
          "invitee_scheduled_by": "https://api.calendly.com/users/9ee956f4-bad6-4cc9-b024-4d60580a8ce6",
          "text_reminder_number": null,
          "questions_and_answers": [
            {
              "answer": "need help with n8n",
              "position": 0,
              "question": "Please share anything that will help prepare for our meeting."
            }
          ],
          "routing_form_submission": null
        },
        "created_at": "2025-08-11T14:20:19.000000Z",
        "created_by": "https://api.calendly.com/users/9ee956f4-bad6-4cc9-b024-4d60580a8ce6"
      }
    ]
  },
  "connections": {
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Send a message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calendly Event": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 客户培育, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量8
分类2
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

外部链接
在 n8n.io 查看

分享此工作流