基于 GPT-4o-mini、Outlook 邮件和 Twilio SMS 的 AI 网页表单回复器
这是一个Lead Nurturing、Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 Wait、Twilio、FormTrigger、Agent、MicrosoftOutlook 等节点。 集成 GPT-4o-mini、Outlook 邮件和 Twilio SMS 的 AI 网页表单自动回复系统
- •OpenAI API Key
{
"meta": {
"instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "98b71061-984e-4aa5-b8eb-cb25278179bc",
"name": "AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-80,
0
],
"parameters": {
"text": "=Name: {{ $json.Name }}\nQuestion: {{ $json.Question }}",
"options": {
"systemMessage": "You are an AI assistant helping Robert respond to web form submissions. Each submission includes a name and a question from the user. Your job is to generate:\n\nA professional email response from Robert, and\n\nA short SMS/text message to be sent as a follow-up.\n\nThe email should:\n\nGreet the person by name.\n\nReference the submitted question.\n\nAsk at least one clarifying or engaging question.\n\nLet them know Robert will be in contact very soon.\n\nAsk how urgent the request is so it can be prioritized.\n\nBe signed “Robert”.\n\nThe text message should:\n\nBe casual and friendly.\n\nConfirm that the message was received.\n\nMention that I will follow up shortly.\n\nAsk how urgent the request is.\n\nOutput format: \n\n{\n\t\"email\": \"response\",\n\t\"text\": \"response\"\n}"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2
},
{
"id": "bae6fafa-1bbc-40f2-b14e-84a6ea017cee",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-160,
240
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "ghJTvay8CvwXDsXz",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "4fbc1c0a-e526-443c-a034-b07b4139be7a",
"name": "多表:您可以连接多个表以实现有组织的数据结构",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
140,
220
],
"parameters": {
"jsonSchemaExample": "{\n\t\"email\": \"response\",\n\t\"text\": \"response\"\n}"
},
"typeVersion": 1.2
},
{
"id": "16ef7a3a-fd6c-4a14-a907-29ebe50d4bc1",
"name": "要嵌入网站的表单",
"type": "n8n-nodes-base.formTrigger",
"position": [
-320,
-180
],
"webhookId": "14ee4231-917c-472f-9eda-388fc8b9809c",
"parameters": {
"options": {},
"formTitle": "Web Contact Form",
"formFields": {
"values": [
{
"fieldLabel": "Name"
},
{
"fieldLabel": "Email"
},
{
"fieldLabel": "Question"
},
{
"fieldLabel": "Phone",
"placeholder": "+1 111-111-1111"
}
]
},
"formDescription": "Web Contact Form"
},
"typeVersion": 2.2
},
{
"id": "0fa3ed52-79d5-44eb-a4c7-6fca623d9fc0",
"name": "等待一段时间以撰写邮件回复",
"type": "n8n-nodes-base.wait",
"position": [
480,
-260
],
"webhookId": "b65146d1-6e25-4e80-b9e6-2204535b90f1",
"parameters": {
"unit": "minutes",
"amount": 1
},
"typeVersion": 1.1
},
{
"id": "41a5b7a0-356d-406a-9e1a-1a8e7c05d207",
"name": "等待一段时间以撰写短信回复",
"type": "n8n-nodes-base.wait",
"position": [
420,
360
],
"webhookId": "bc729dce-5255-4612-b30d-d461a1b9a725",
"parameters": {
"amount": 1
},
"typeVersion": 1.1
},
{
"id": "ab4bf90b-a9c5-4854-81eb-62ebd770d6f0",
"name": "向提交者发送邮件",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
760,
-280
],
"webhookId": "28a19664-44fe-4523-b750-cd49beb76ee3",
"parameters": {
"subject": "Web form - How can we help?",
"bodyContent": "={{ $json.output.email }}",
"toRecipients": "={{ $('Form to be embedded on website').item.json.Email }}",
"additionalFields": {}
},
"credentials": {
"microsoftOutlookOAuth2Api": {
"id": "VmTDwKgAl78H8pek",
"name": "Microsoft Outlook account"
}
},
"typeVersion": 2
},
{
"id": "8468ef5a-ad4e-43b4-b737-afba226e92e8",
"name": "向提交者发送短信",
"type": "n8n-nodes-base.twilio",
"position": [
720,
360
],
"parameters": {
"to": "={{ $('Form to be embedded on website').item.json.Phone }}",
"from": "your twillio number here",
"message": "={{ $json.output.text }}",
"options": {}
},
"credentials": {
"twilioApi": {
"id": "wiGQkqdtj51l0DId",
"name": "Twilio account"
}
},
"typeVersion": 1
},
{
"id": "74b1609d-d766-4146-98d6-3f228567ccf7",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-460,
-400
],
"parameters": {
"width": 1460,
"height": 1080,
"content": "### 网页表单自动回复器:即时邮件 + 短信跟进"
},
"typeVersion": 1
},
{
"id": "4f1d375a-2eb9-4a48-bb6d-36b0ae154ce9",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1300,
-400
],
"parameters": {
"color": 5,
"width": 800,
"height": 1080,
"content": "### 网页表单自动回复器:即时邮件 + 短信跟进"
},
"typeVersion": 1
}
],
"pinData": {
"Form to be embedded on website": [
{
"Name": "Robert Breen",
"Email": "Robert.j.breen@gmail.com",
"Phone": "18148821293",
"Question": "I'm looking for information about using n8n for my marketing team. I need an expert developer to help",
"formMode": "test",
"submittedAt": "2025-07-30T19:25:10.065-04:00"
}
]
},
"connections": {
"AI Agent": {
"main": [
[
{
"node": "Wait some time to write the text response",
"type": "main",
"index": 0
},
{
"node": "Wait some time to write the email response",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Form to be embedded on website": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Wait some time to write the text response": {
"main": [
[
{
"node": "Send text to the submitter",
"type": "main",
"index": 0
}
]
]
},
"Wait some time to write the email response": {
"main": [
[
{
"node": "Send email to the submitter",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于Lead Nurturing、Multimodal AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Robert Breen
@rbreenProfessional 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.
分享此工作流