表单输入网站数据提取(Gemini 2.5 flash + Gmail)
中级
这是一个AI Summarization, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Html, Gmail, FormTrigger, HttpRequest, ChainLlm 等节点。 通过表单输入、Gemini 2.5 flash和Gmail提取特定网站数据
前置要求
- •Google 账号和 Gmail API 凭证
- •可能需要目标 API 的认证凭证
- •Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "d1786ab0d745a7498abf13a9c2cdabb1374c006e889b79eef64ce0386b8f8a41",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "6d85bf32-59a5-4644-b5b0-d31aaf677bda",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
640,
200
],
"parameters": {
"jsonSchemaExample": "{\n \"result\": \"extracted value(s)\"\n}"
},
"typeVersion": 1.2
},
{
"id": "d011794a-d4bf-4750-9ad1-3cb0df662aff",
"name": "从源 URL 获取 HTML",
"type": "n8n-nodes-base.httpRequest",
"position": [
40,
0
],
"parameters": {
"url": "={{ $json['Source URL'] }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "389ac2ce-39d8-4bc9-a1af-7ea3dba0240d",
"name": "数据提取器 LLM 链",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
460,
0
],
"parameters": {
"text": "=Your task is to extract the exact information specified by the user.\n\nUser’s extraction request:\n\"{{ $('Web Scraper form submission').item.json['Data to extract'] }}\"\n\nRules:\n1. Extract ONLY the requested information.\n2. If multiple matches exist, combine them into a single string separated by commas.\n3. Do NOT add explanations or extra text—output only the extracted data.\n4. Maintain the original values unless formatting is requested.\n5. If no matches are found, return: { \"result\": \"No data found\" }.\n6. Always return the response in this format:\n{\n \"result\": \"extracted value(s)\"\n}\n\nHere is the source data:\n{{ $json.body }}\n",
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.6
},
{
"id": "a73e7657-4a79-4b50-973f-e27d406f0278",
"name": "Gmail - 发送结果",
"type": "n8n-nodes-base.gmail",
"position": [
880,
0
],
"webhookId": "fa29cdcc-e8e9-449a-a6a4-88a874e2a0c5",
"parameters": {
"sendTo": " template_data_extactor_replace_me@yopmail.com",
"message": "=Your web scraping task has been completed.\n\nSource URL:\n{{ $('Web Scraper form submission').item.json['Source URL'] }}\n\nData Requested:\n{{ $('Web Scraper form submission').item.json['Data to extract'] }}\n\nExtracted Result:\n{{ $json.output.result }}\n\nThank you for using our web scraping automation.",
"options": {
"appendAttribution": false
},
"subject": "=✅ Web Scraping Result for {{ $('Web Scraper form submission').item.json['Source URL'] }}",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "CeBpTZBQSAMKVKJY",
"name": "Gmail account (Billy Email 2)"
}
},
"typeVersion": 2.1
},
{
"id": "ec13f750-6015-4c17-b062-9036b0ae8697",
"name": "网页抓取器表单提交",
"type": "n8n-nodes-base.formTrigger",
"position": [
-160,
0
],
"webhookId": "a757a352-5ab2-4fa7-a8ee-08bb5d3448cc",
"parameters": {
"options": {},
"formTitle": "Web Scraper Form",
"formFields": {
"values": [
{
"fieldLabel": "Source URL"
},
{
"fieldLabel": "Data to extract"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "1ed56fc9-5124-454c-8b4d-ee2c9e72076c",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1100,
-260
],
"parameters": {
"color": 4,
"width": 380,
"height": 760,
"content": "# 👋 你好,我是 Billy!"
},
"typeVersion": 1
},
{
"id": "4b1b75f3-95fa-4a42-8180-cb47ef7c3a02",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-760,
-80
],
"parameters": {
"color": 4,
"width": 500,
"height": 360,
"content": "## 需要设置"
},
"typeVersion": 1
},
{
"id": "35116b5c-c3ab-4c47-9914-c6cecdf3e3b4",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-860,
420
],
"parameters": {
"color": 4,
"width": 600,
"height": 400,
"content": "## 🔍 使用表单输入、Gemini 2.5 flash 和 Gmail 投递提取特定网站数据"
},
"typeVersion": 1
},
{
"id": "b1526d24-29c6-4552-8964-84953933494b",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
420
],
"parameters": {
"color": 4,
"width": 1000,
"height": 300,
"content": "## 📋 工作流流程概览"
},
"typeVersion": 1
},
{
"id": "461e0675-1755-41eb-b445-20fd0d733d8c",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
-180
],
"parameters": {
"color": 4,
"width": 400,
"height": 560,
"content": "## 数据提取器 LLM 链"
},
"typeVersion": 1
},
{
"id": "e147282c-51f0-4f76-8416-bfeb00a47f64",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
-160
],
"parameters": {
"color": 4,
"width": 260,
"height": 340,
"content": "## Gmail - 发送结果"
},
"typeVersion": 1
},
{
"id": "adb7c780-8210-4dab-ad4f-9e7fc366cd16",
"name": "Google Gemini 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
440,
200
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-flash"
},
"credentials": {
"googlePalmApi": {
"id": "gdaO8lU3HwsldifM",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "25e49c2a-9018-4503-8ce1-a95699e9941c",
"name": "HTML 提取器",
"type": "n8n-nodes-base.html",
"position": [
220,
0
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "body",
"cssSelector": "body"
}
]
}
},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"HTML Extractor": {
"main": [
[
{
"node": "Data Extractor LLM Chain",
"type": "main",
"index": 0
}
]
]
},
"Data Extractor LLM Chain": {
"main": [
[
{
"node": "Gmail - Send Result",
"type": "main",
"index": 0
}
]
]
},
"Get HTML from source url": {
"main": [
[
{
"node": "HTML Extractor",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Data Extractor LLM Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Data Extractor LLM Chain",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Web Scraper form submission": {
"main": [
[
{
"node": "Get HTML from source url",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 摘要总结, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-5 Mini、Jira和表单界面自动化敏捷项目设置
使用GPT-5 Mini、Jira和表单界面自动化敏捷项目设置
Set
Jira
Gmail
+15
42 节点Billy Christi
多模态 AI
每日Jira工单摘要生成器(GPT-5 + Jira API)
使用GPT-5和Jira API的每日Jira工单摘要生成器
Set
Code
Jira
+11
24 节点Billy Christi
AI 摘要总结
使用GPT-5和表单的ClickUp任务层级敏捷项目生成器
使用GPT-5和表单的ClickUp任务层级敏捷项目生成器
Set
Gmail
Limit
+13
28 节点Billy Christi
多模态 AI
基于AI的潜在客户资格评定与个性化触达(使用Relevance AI)
基于AI的潜在客户资格评定与个性化触达:使用Relevance AI
Set
Code
Gmail
+11
34 节点Diptamoy Barman
内容创作
使用Airtop、GPT-4 Mini和Gmail分析网站UX和SEO质量
使用Airtop、GPT-4 Mini和Gmail分析网站UX和SEO质量
Set
Code
Html
+10
33 节点LukaszB
内容创作
我的工作流5
基于 Gemini AI、网络搜索和 PDF 交付的全面研究报告生成器
Set
Code
Html
+14
102 节点Hichul
内容创作
工作流信息
难度等级
中级
节点数量13
分类2
节点类型8
作者
Billy Christi
@billyI build scalable automation systems with n8n to help businesses save time and cut costs. 💼 n8n expert available for new projects 📩 billychartanto@gmail.com
外部链接
在 n8n.io 查看 →
分享此工作流