我的工作流
这是一个Product, AI, Marketing领域的自动化工作流,包含 14 个节点。主要使用 Code, Webhook, HttpRequest, RespondToWebhook, ChainLlm 等节点,结合人工智能技术实现智能自动化。 使用 Google Gemini 抓取 ProductHunt
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •Google Gemini API Key
使用的节点 (14)
{
"id": "PjmORR4QITmw1TSm",
"meta": {
"instanceId": "57d3ba707284c18c36b0508d0a86fd8cd64b5e08ec224bc67c06b6dcc4799603"
},
"name": "我的工作流",
"tags": [],
"nodes": [
{
"id": "267d0887-c2ce-4302-9040-a3c5b6fea051",
"name": "接收产品请求",
"type": "n8n-nodes-base.webhook",
"position": [
1700,
-180
],
"webhookId": "a6d424b5-41ab-4eb1-96c5-ea7c3f6b4c60",
"parameters": {},
"typeVersion": 2
},
{
"id": "d13a1845-ee24-4007-9acb-3a414bddadf5",
"name": "获取产品HTML",
"type": "n8n-nodes-base.httpRequest",
"position": [
2160,
-180
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a3714478-636b-49b5-a5c5-b7f51df13f22",
"name": "提取内联脚本",
"type": "n8n-nodes-base.code",
"position": [
2580,
-180
],
"parameters": {},
"typeVersion": 2
},
{
"id": "6fa0c53a-c4bb-4867-b0ca-077367012186",
"name": "使用LLM处理脚本",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
3000,
-180
],
"parameters": {},
"typeVersion": 1.5
},
{
"id": "f7503b98-698c-4bb7-bffb-b17974e19ee4",
"name": "使用Google Gemini分析脚本",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
2800,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "58e1ef40-b62e-4cec-b396-25edab562993",
"name": "将产品数据格式化为JSON",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
3360,
240
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "a7c09c95-2927-4a93-9384-78ddcacc6ca7",
"name": "向客户端发送JSON响应",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
3620,
-180
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "a2ccfa5e-1aed-45ac-add6-871ef837efcb",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1600,
-360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a672d2cd-7cf6-43fc-8eb8-6049f73d652e",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2060,
-360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "55a0a3bd-c10a-47ab-9ad7-d6be98261de5",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
-360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7a413f72-247c-41fe-94ea-d3f934b382d2",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2980,
-360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "55f657cb-a1aa-490d-99bf-51337b2f5e5f",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2700,
40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "fb9effbd-e8c4-4373-a547-9646a9596703",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
3240,
40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "effc8669-3f88-40a7-a4e5-b2439d699e85",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
3520,
-380
],
"parameters": {},
"typeVersion": 1
}
],
"active": true,
"pinData": {
"Receive Product Request": [
{
"json": {
"body": {},
"query": {
"product": "epigram"
},
"params": {},
"headers": {
"host": "n8n-latest-relk.onrender.com",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"cf-ray": "8fd0c49934462c8d-DFW",
"cookie": "rl_session=RudderEncrypt%3AU2FsdGVkX19e%2B7qMt4i3Ys4JYvbiUSZzs3kfatMTxfXlHcY2jq0R%2FlAkeFucX11ECA0%2BJK291YI7SwsdUqDdXsFhm2EcWoZQTYDN6xrDixBlWinQXhtgDRByRQoOduoIz1KisUo7kltVadbY67EVzQ%3D%3D; rl_anonymous_id=RudderEncrypt%3AU2FsdGVkX1%2BnfZPwuqv64YjXtcgD5g9QKBmx4Ed82o6o6EV%2BFVIZ6Bg%2F2uYfVH63qSKXHvCwAD5KLZ1iI350WA%3D%3D; rl_page_init_referrer=RudderEncrypt%3AU2FsdGVkX1%2BcYyRPr4iLz7Qco%2F00vcUkm49RXcBE%2B98%3D; rl_page_init_referring_domain=RudderEncrypt%3AU2FsdGVkX18ytsjeLZPyGfwEvHwx6KQEuWAQwaP0dWk%3D; n8n-auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ4ODNhZDg1LWI4YzktNGE2Ni1hYjk1LTE0NzBlNTc1OGJlMiIsImhhc2giOiJuNVBZTklQVUZJIiwiYnJvd3NlcklkIjoiei9IQ3RlUlBUbFYrU3pnOWVEVWdzNWh3ZzdWb2VONWZ3OXVwcC9mcHVybz0iLCJpYXQiOjE3MzYwMjUwMjEsImV4cCI6MTczNjYyOTgyMX0.8v7TNTB9HcZLzfUzljRHn_iPFd5uN9EL2bMiT_XkjXw; rl_user_id=RudderEncrypt%3AU2FsdGVkX19dnySkXTyiYf7TzD74z2btLpIegLXThFjqWAShe2NInMjDvKyI2DlmihteoasBtDnNg0I83P6j1N0WF16d4pP7qCNu75PmlDTOvmGlrcEbEndhgHl%2FKyX6KqpNqOT1A9u9JDgpqfCLBMiZl6ZTVQuS9tGAUxSOOIc%3D; rl_trait=RudderEncrypt%3AU2FsdGVkX1%2FTaQJzTQ0vinRDH%2FaIP%2FkqXVTpuXOFRWP63Qd911tZH4a3YeLYGWOeZlO30qwdaf7YDcixieTy9klJKxY%2BT2cr3efxgB%2BuXCKxlKroxuZc%2FUSIm1mMasUbhXSiUSu9MU%2F7TgoT8bBB2g%3D%3D; ph_phc_4URIAm1uYfJO7j8kWSe0J8lc8IqnstRLS7Jx8NcakHo_posthog=%7B%22distinct_id%22%3A%2257d3ba707284c18c36b0508d0a86fd8cd64b5e08ec224bc67c06b6dcc4799603%23d883ad85-b8c9-4a66-ab95-1470e5758be2%22%2C%22%24sesid%22%3A%5Bnull%2Cnull%2Cnull%5D%2C%22%24epp%22%3Atrue%2C%22%24initial_person_info%22%3A%7B%22r%22%3A%22%24direct%22%2C%22u%22%3A%22https%3A%2F%2Fn8n-latest-relk.onrender.com%2Fsignin%3Fredirect%3D%25252Fsettings%25252Fusage%25253Fkey%25253D4da2272c-b404-49f5-ae7b-90285457f9bb%22%7D%7D",
"rndr-id": "2f3929bc-7cfb-4d52",
"cdn-loop": "cloudflare; loops=1; subreqs=1",
"priority": "u=0, i",
"cf-ew-via": "15",
"cf-worker": "onrender.com",
"cf-visitor": "{\"scheme\":\"https\"}",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0",
"cf-ipcountry": "MX",
"if-none-match": "W/\"8ef-YlXbmqYipwLEtdHARcVNMvja5S8\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"true-client-ip": "177.232.86.248",
"accept-encoding": "gzip, br",
"accept-language": "es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3",
"x-forwarded-for": "177.232.86.248, 108.162.246.57, 10.223.123.4",
"x-request-start": "1736051792891982",
"cf-connecting-ip": "177.232.86.248",
"render-proxy-ttl": "4",
"x-forwarded-proto": "https",
"upgrade-insecure-requests": "1"
},
"webhookUrl": "https://n8n-latest-relk.onrender.com/webhook/a6d424b5-41ab-4eb1-96c5-ea7c3f6b4c60",
"executionMode": "production"
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "bcbebb70-59e4-4e80-ac6e-6f13f1fa9cf1",
"connections": {
"Fetch Product HTML": {
"main": [
[
{
"node": "Extract Inline Scripts",
"type": "main",
"index": 0
}
]
]
},
"Extract Inline Scripts": {
"main": [
[
{
"node": "Process Script with LLM",
"type": "main",
"index": 0
}
]
]
},
"Process Script with LLM": {
"main": [
[
{
"node": "Send JSON Response to Client",
"type": "main",
"index": 0
}
]
]
},
"Receive Product Request": {
"main": [
[
{
"node": "Fetch Product HTML",
"type": "main",
"index": 0
}
]
]
},
"Format Product Data to JSON": {
"ai_outputParser": [
[
{
"node": "Process Script with LLM",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Analyze Script with Google Gemini": {
"ai_languageModel": [
[
{
"node": "Process Script with LLM",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 产品, 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Mauricio Perera
@rckflrAutomation consultant with over 10 years of experience specializing in AI, no-code, and workflow optimization. I’ve delivered tailored AI and NLP solutions across real estate, healthcare, and more, enhancing efficiency and customer experiences. Proficient in tools like Make, Airtable, and Zapier, I also integrate GPT models to create scalable, innovative automations. Contact me to discuss custom n8n workflows or advanced automations to streamline your processes.
分享此工作流