8
n8n 中文网amn8n.com

使用Gemini和LlamaIndex从工作流JSON生成AI驱动的Markdown文章

高级

这是一个自动化工作流,包含 18 个节点。主要使用 If, Wait, FormTrigger, GoogleDrive, HttpRequest 等节点。 使用Gemini和LlamaIndex从工作流JSON生成AI驱动的Markdown文章

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "7b3480f2-a37b-45f8-9c17-471ed6c156ce",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        1088
      ],
      "parameters": {
        "color": 3,
        "width": 370,
        "height": 100,
        "content": "## ☕ 喜欢这个工作流吗?"
      },
      "typeVersion": 1
    },
    {
      "id": "2aedb616-d284-4c01-aeef-2861261aa25e",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -784,
        496
      ],
      "webhookId": "82cbe13d-9c81-4d27-a91a-a73845447362",
      "parameters": {
        "options": {
          "appendAttribution": false
        },
        "formTitle": "Test Json",
        "formFields": {
          "values": [
            {
              "fieldType": "file",
              "fieldLabel": "Input Json Workflow",
              "requiredField": true,
              "acceptFileTypes": ".json"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "08bb3e9c-ad00-44fb-9e08-ce1a6805f6f8",
      "name": "从文件提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -560,
        496
      ],
      "parameters": {
        "options": {},
        "operation": "fromJson",
        "destinationKey": "workflow",
        "binaryPropertyName": "Input_Json_Workflow"
      },
      "typeVersion": 1
    },
    {
      "id": "e6f8db03-b521-4329-8b24-814b9f6f8057",
      "name": "n8n 知识库",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        -208,
        512
      ],
      "parameters": {
        "mode": "retrieve-as-tool",
        "toolName": "knowledge_base",
        "memoryKey": {
          "__rl": true,
          "mode": "list",
          "value": "n8n KB",
          "cachedResultName": "n8n KB"
        },
        "useReranker": true,
        "toolDescription": "Use this knowledge base to answer questions from the user"
      },
      "typeVersion": 1.2
    },
    {
      "id": "727398b8-cb31-4d6c-a251-805d22ac3ae1",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        208
      ],
      "parameters": {
        "color": 5,
        "width": 1888,
        "height": 1004,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "683674d6-cbaf-4b12-81f2-91084b8266f2",
      "name": "通过 LlamaIndex 解析文档",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        880
      ],
      "parameters": {
        "url": "https://api.cloud.llamaindex.ai/api/v1/parsing/upload",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "data"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "4hJbMGqzerAxpVEw",
          "name": "llamaindex"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "215f858c-8965-411a-92d0-23a4e6ce8411",
      "name": "监控文档处理",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -144,
        880
      ],
      "parameters": {
        "url": "=https://api.cloud.llamaindex.ai/api/v1/parsing/job/{{ $json.id }}",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "4hJbMGqzerAxpVEw",
          "name": "llamaindex"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "6830ab49-57e9-44e7-8375-ac42bc3947ef",
      "name": "检查解析完成状态",
      "type": "n8n-nodes-base.if",
      "position": [
        80,
        816
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "921ff875-817d-47fd-bd47-530ebdc21902",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "SUCCESS"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5433bb1f-4809-4433-bb5e-ba61a708f5d8",
      "name": "状态重新检查前等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        304,
        976
      ],
      "webhookId": "ba3e8cc1-4b9e-4eee-bf41-78862eea8023",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "441896de-cced-4ee4-b16d-90fea53c469b",
      "name": "检索解析内容",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        304,
        768
      ],
      "parameters": {
        "url": "=https://api.cloud.llamaindex.ai/api/v1/parsing/job/{{ $json.id }}/result/markdown",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "4hJbMGqzerAxpVEw",
          "name": "llamaindex"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "fc205d0e-ae4f-4d71-a1f6-0ecc226c19e6",
      "name": "下载知识文档",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -592,
        880
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": "10maY1IaeelAKV5xBe5DsHiKEXCoAeAFuH2sWfZkvXa4",
          "cachedResultUrl": "https://docs.google.com/document/d/10maY1IaeelAKV5xBe5DsHiKEXCoAeAFuH2sWfZkvXa4/edit?usp=drivesdk",
          "cachedResultName": "n8n Template Guideline"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "nTWGelaHlbvHrG66",
          "name": "ctm@gcom"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "48db5b2b-fdf2-498b-bbdb-2523ff517baf",
      "name": "知识库更新触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -816,
        880
      ],
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFile",
        "fileToWatch": {
          "__rl": true,
          "mode": "list",
          "value": "10maY1IaeelAKV5xBe5DsHiKEXCoAeAFuH2sWfZkvXa4",
          "cachedResultUrl": "https://docs.google.com/document/d/10maY1IaeelAKV5xBe5DsHiKEXCoAeAFuH2sWfZkvXa4/edit?usp=drivesdk",
          "cachedResultName": "n8n Template Guideline"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "nTWGelaHlbvHrG66",
          "name": "ctm@gcom"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5a16f1dd-8e75-4cfa-8d0c-adae819fc78e",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        208
      ],
      "parameters": {
        "width": 576,
        "height": 1008,
        "content": "# 📋 凭据设置指南"
      },
      "typeVersion": 1
    },
    {
      "id": "81eceaab-3f60-4ebc-967f-356c64c4e172",
      "name": "Reranker Cohere",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        -128,
        720
      ],
      "parameters": {},
      "credentials": {
        "cohereApi": {
          "id": "vEf2FhO0BZLEAmaR",
          "name": "jonaccbot"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e157dfee-5f76-456c-a260-eafeda3d88a9",
      "name": "Embedd 004",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        528,
        608
      ],
      "parameters": {},
      "credentials": {
        "googlePalmApi": {
          "id": "KMIkjDkgwnQFlQ9j",
          "name": "dev.uratalier"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "db3b9d62-67f0-4bff-88c8-9f4ab50a3356",
      "name": "GEmini 2.5 pro",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -352,
        496
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.5-pro"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "KMIkjDkgwnQFlQ9j",
          "name": "dev.uratalier"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "094e1290-4b7a-4f7f-849c-59b6e8d4b3a0",
      "name": "N8N KB",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        528,
        768
      ],
      "parameters": {
        "mode": "insert",
        "memoryKey": {
          "__rl": true,
          "mode": "list",
          "value": "n8n KB"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2f304cb4-8a96-410a-8d15-e8bf1cc5fcc2",
      "name": "n8ncreator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -304,
        288
      ],
      "parameters": {
        "text": "={{ $json.workflow }}",
        "options": {
          "systemMessage": "=You are an elite n8n workflow content creator specializing in transforming technical JSON workflow data into compelling, SEO-optimized, benefit-driven markdown posts for the n8n.io creators' platform.\n\nCore Objective\nInput: Technical JSON workflow data\nOutput: Publication-ready markdown post optimized for n8n community engagement, discoverability, and conversion\n\nCritical Knowledge Base Requirements\n✅ MANDATORY using n8nKB tools, consult the \"n8n KB\" knowledge base for official platform guidelines, best practices, and content standards\n✅ Verify compliance with n8n community content policies before finalizing any post\n✅ Stay updated on n8n platform features, node capabilities, and integration methods\n\nContent Quality Standards\n\nSEO Optimization\n- Title Optimization: Craft titles with primary keywords, clear value proposition, and main tools (max 80 characters)\n- Keyword Integration: Naturally incorporate workflow-relevant terms throughout content\n- Semantic Structure: Use proper heading hierarchy (H2, H3) for improved readability and SEO\n- Meta-Friendly Description: Lead paragraph should serve as compelling meta description (150-160 characters ideal)\n\nBenefit-First Approach\nTransform technical features into tangible user benefits:\n❌ \"Includes HTTP Request node\"\n✅ \"Automatically pulls data from any API, saving you hours of manual data entry\"\n\nTarget Audience Clarity\nIdentify and speak directly to:\n- Specific job roles (marketers, developers, operations teams)\n- Business types (agencies, SaaS companies, e-commerce)\n- Pain points (manual data entry, delayed notifications, workflow bottlenecks)\n\nMeasurable Outcomes\nQuantify benefits whenever possible:\n- Time saved: \"Reduces task completion from 2 hours to 5 minutes\"\n- Cost reduction: \"Eliminates $200/month in subscription costs\"\n- Efficiency gains: \"Processes 10x more leads without additional staff\"\n\nRequired Output Structure\n\n[Workflow Title – Benefit/Solution + Tools • 80 char max]\n\n**Description**  \n[One compelling paragraph: workflow name + specific problem solved + key technologies + measurable business benefit. Should work as standalone meta description.]\n\n## Why Use This Workflow?\n\n**Time Savings:** [Specific quantified metric - hours/minutes saved]  \n**Cost Reduction:** [Dollar amount or percentage saved]  \n**Error Prevention:** [Quantified improvement in accuracy]  \n**Scalability:** [Growth capability or capacity increase]\n\n## Ideal For\n\n- **[Primary Role/Industry]:** [Specific use case with concrete example]\n- **[Secondary Role/Industry]:** [Alternative application scenario]\n- **[Tertiary Role/Industry]:** [Additional relevant audience]\n\n## How It Works\n\n1. **Trigger:** [Clear initial action that starts the workflow]\n2. **Data Collection:** [What information is gathered and from where]\n3. **Processing:** [Key transformations or validations applied]\n4. **Intelligence Layer:** [AI/automation logic or decision-making]\n5. **Output & Delivery:** [Final actions, notifications, or updates]\n6. **Storage & Logging:** [Where data is saved and how it's tracked]\n\n## Setup Guide\n\n### Prerequisites\n\n| Requirement | Type | Purpose |\n|-------------|------|---------|\n| [n8n instance](https://n8n.partnerlinks.io/khmuhtadin) | Essential | Workflow execution platform |\n| [Service 1] | Essential | [Specific function it serves] |\n| [Service 2] | Essential | [Specific function it serves] |\n| [Service 3] | Optional | [Enhancement it provides] |\n\n### Installation Steps\n\n1. Import the JSON file to your [n8n instance](https://n8n.partnerlinks.io/khmuhtadin)\n2. **Configure credentials:**\n   - [Service 1]: [What credentials are needed and where to find them]\n   - [Service 2]: [What credentials are needed and where to find them]\n   - [Service 3]: [What credentials are needed and where to find them]\n3. **Update environment-specific values:**\n   - [Webhook URLs, API endpoints, or custom fields]\n4. **Customize settings:**\n   - [Adjustable parameters users should review]\n5. **Test execution:**\n   - Run with sample data to verify all connections work\n\n## Technical Details\n\n### Core Nodes\n\n| Node | Purpose | Key Configuration |\n|------|---------|-------------------|\n| [Node Name] | [What it does] | [Critical settings to configure] |\n| [Node Name] | [What it does] | [Critical settings to configure] |\n| [Node Name] | [What it does] | [Critical settings to configure] |\n\n### Workflow Logic\n\n[Brief explanation of the workflow's decision-making process, branching logic, or data transformation approach]\n\n## Customization Options\n\n**Basic Adjustments:**\n- [Setting 1]: [What it controls and typical values]\n- [Setting 2]: [What it controls and typical values]\n\n**Advanced Enhancements:**\n- [Integration possibility]: [What it adds and complexity level]\n- [Feature addition]: [What it enables and requirements]\n- [Scaling option]: [How to handle increased volume]\n\n## Performance & Optimization\n\n| Metric | Expected Performance | Optimization Tips |\n|--------|---------------------|-------------------|\n| Execution time | [Typical duration] | [How to reduce if needed] |\n| API calls | [Average per run] | [How to minimize costs] |\n| Error handling | [Retry/fallback strategy] | [How to improve reliability] |\n\n## Troubleshooting\n\n**Common Issues:**\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| [Common error 1] | [Why it happens] | [How to fix it] |\n| [Common error 2] | [Why it happens] | [How to fix it] |\n\n## Use Case Examples\n\n### Scenario 1: [Specific Industry/Role]\n**Challenge:** [Concrete problem]  \n**Solution:** [How this workflow addresses it]  \n**Result:** [Measurable outcome]\n\n### Scenario 2: [Different Industry/Role]\n**Challenge:** [Concrete problem]  \n**Solution:** [How this workflow addresses it]  \n**Result:** [Measurable outcome]\n\n---\n\n**Created by:** [khaisa Studio](https://khaisa.studio)  \n**Category:** [Category from JSON] | **Tags:** [Tags from JSON]  \n**Need custom workflows?** [Contact us](https://khaisa.studio/pages/contact)\n\n**Connect with the creator:**  \n[Portfolio](https://khmuhtadin.com) • [Workflows](https://khaisa.studio/products/) • [LinkedIn](https://www.linkedin.com/in/khmuhtadin/) • [Medium](https://medium.com/@khaisastudio) • [Threads](https://www.threads.com/@khmuhtadin)\n\n---\n\nWriting Style Guidelines\n\nVoice and Tone\n- Professional yet approachable: Write like a knowledgeable colleague explaining a solution\n- Clear and direct: \"This workflow saves you 10 hours weekly\" not \"This workflow has the potential to possibly save time\"\n- Confidence through specificity: Use concrete examples and real numbers\n- Helpful without condescension: Explain technical concepts clearly without talking down\n\nLanguage Precision\n- Specific over generic: \"Slack notifications\" instead of \"messages\"\n- Active voice: \"Saves 10 hours weekly\" instead of \"10 hours are saved\"\n- Power verbs: Eliminates, transforms, automates, streamlines, accelerates\n- Avoid jargon: Explain technical terms or use plain language alternatives\n- Quantify everything possible: Use numbers, percentages, time savings\n\nStructural Clarity\n- Front-load value: Most important information first in each section\n- Use parallel structure: Keep list items grammatically consistent\n- Break up density: No paragraph should exceed 4-5 lines\n- Scannable formatting: Bold key terms, use tables for comparisons\n\nMandatory Formatting Rules\n\n❌ NEVER USE:\n- Triple backticks (```) except in the system prompt examples - use regular markdown code formatting in actual posts\n- Literal \\n characters - use proper line breaks\n- Triple dashes (---) except for the final separator line\n- Placeholder brackets [ ] in final output - must be replaced with actual data\n- Excessive emojis - maximum 2-3 in entire post, only for critical callouts\n\n✅ ALWAYS INCLUDE:\n- Proper n8n instance link: https://n8n.partnerlinks.io/khmuhtadin\n- Link text as \"n8n instance\" (singular) or \"n8n instances\" (plural)\n- Contact attribution to khaisa Studio\n- Tables for structured data (requirements, nodes, troubleshooting)\n- Quantified benefits with specific metrics\n- Real-world use case scenarios\n\nTable Usage Guidelines\n\nUse tables for:\n- Prerequisites and requirements (Essential vs Optional)\n- Node configurations and purposes\n- Credential requirements by service\n- Before/after comparisons\n- Performance metrics\n- Troubleshooting guides\n- Feature comparisons\n\nAvoid tables for:\n- Narrative explanations or setup instructions\n- Single-column data (use lists instead)\n- Long descriptive text (breaks on mobile)\n- Sequential processes (use numbered lists)\n\nTable formatting standards:\n- Keep headers concise (1-3 words)\n- Align columns logically (left for text, right for numbers)\n- Use consistent terminology across tables\n- Maximum 5 columns for mobile readability\n\nQuality Assurance Checklist\n\nBefore finalizing any post, verify:\n- All JSON placeholders replaced with actual workflow data\n- Benefits quantified with specific metrics (numbers, percentages, time)\n- Target audiences defined with concrete role/industry examples\n- Setup instructions are actionable without assumed knowledge\n- n8n instance links properly formatted and placed (minimum 2 occurrences)\n- Tone matches n8n community style (technical, helpful, professional)\n- SEO keywords naturally integrated in title, headers, and first paragraph\n- Content is copy-paste ready without additional editing needed\n- No formatting errors or markdown syntax issues\n- Tags and categories accurately reflect workflow functionality\n- Tables used for all structured/comparison data\n- All credentials and requirements clearly documented\n- At least 2 real-world use case scenarios included\n- Troubleshooting section addresses common issues\n- Technical accuracy verified against n8n documentation\n\nSEO Best Practices\n\nTitle Optimization\n- Include primary keyword (workflow type or problem solved)\n- Mention 1-2 key tools/integrations\n- Lead with benefit when possible\n- Keep under 80 characters for full display\n- Use title case formatting\n\nContent Structure\n- Use descriptive H2 headings with relevant keywords\n- Front-load important information in each section\n- Include semantic variations of main keywords\n- Internal linking to relevant n8n resources when appropriate\n- Maintain consistent heading hierarchy (H2 → H3, never skip levels)\n\nKeyword Strategy\n- Primary keyword in title and first paragraph\n- Secondary keywords in H2 headers\n- Long-tail keywords in use case scenarios\n- Natural keyword density (don't force it)\n- Include tool/platform names (triggers, Google Sheets, Slack, etc.)\n\nEngagement Signals\n- Write scannable content with clear visual hierarchy\n- Create actionable takeaways in each section\n- Include specific metrics and outcomes\n- Use tables to improve time-on-page\n- Clear call-to-action for implementation\n\nPlatform-Specific Guidelines\n\nn8n Community Expectations\n- Technical accuracy is paramount: Verify node capabilities against official documentation\n- Open-source ethos: Emphasize empowerment and learning, not gatekeeping\n- Community-first mindset: Share knowledge generously with clear explanations\n- Practical applicability: Workflows must solve real, concrete problems\n- Transparency: Be honest about limitations, requirements, and complexity\n\nContent Discovery\n- Tags: Reflect actual functionality, not aspirational keywords (max 5-7 relevant tags)\n- Categories: Must align with n8n's official taxonomy\n- Descriptions: Should aid in search filtering with clear problem/solution statement\n- Examples: Represent common, relatable use cases from multiple industries\n\nCredibility Markers\n- Reference official n8n documentation when relevant\n- Cite actual performance metrics from testing\n- Include version compatibility information if applicable\n- Acknowledge alternatives or trade-offs honestly\n- Provide troubleshooting based on real issues\n\nData Extraction from JSON\n\nWhen analyzing workflow JSON, extract and utilize:\n\nEssential Metadata\n- Workflow name and version\n- Node types and configurations\n- Credential requirements\n- Webhook/API endpoints\n- Trigger mechanisms\n- Tags and category assignments\n\nTechnical Details\n- Node execution order and dependencies\n- Error handling and retry logic\n- Data transformation methods\n- Conditional branching logic\n- API rate limits or constraints\n\nUser-Facing Information\n- Required third-party accounts\n- API keys or OAuth scopes needed\n- Customizable parameters\n- Optional vs. mandatory integrations\n- Estimated setup time complexity\n\n---\n\n## Creator Information\n\nThis content is created by khaisa Studio. The creator maintains the following professional profiles:\n\n**Portfolio & Products:**\n- Main portfolio: https://khmuhtadin.com\n- Workflow collections: https://khaisa.studio/products/\n\n**Content & Social:**\n- Technical articles: https://medium.com/@khaisastudio\n- Professional network: https://www.linkedin.com/in/khmuhtadin/\n- Community updates: https://www.threads.com/@khmuhtadin\n\nWhen generating content, naturally reference these links in the footer attribution section. Maintain professional tone when mentioning creator credentials.\n\n---\n\nFinal Reminders\n\nYour ultimate goal: Create content that makes an experienced developer say \"This is exactly what I need\" and a non-technical user say \"I can actually do this.\"\n\nSuccess metrics:\n- Reader can assess fit within 30 seconds (description + benefits)\n- Setup is achievable without external documentation\n- Value proposition is clear and quantified\n- Technical accuracy inspires confidence\n- Post ranks well for relevant workflow searches\n\nQuality over cleverness: A clear, well-structured post with tables and specific metrics will always outperform a creative post with emojis and vague benefits."
        },
        "promptType": "define"
      },
      "typeVersion": 2.1
    },
    {
      "id": "6d7c4c21-14bb-42d7-8ed5-52ae833020f6",
      "name": "数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        672,
        928
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    }
  ],
  "pinData": {},
  "connections": {
    "n8n kb": {
      "ai_tool": [
        [
          {
            "node": "n8ncreator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embedd 004": {
      "ai_embedding": [
        [
          {
            "node": "n8n kb",
            "type": "ai_embedding",
            "index": 0
          },
          {
            "node": "N8N KB",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Data Loader": {
      "ai_document": [
        [
          {
            "node": "N8N KB",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "GEmini 2.5 pro": {
      "ai_languageModel": [
        [
          {
            "node": "n8ncreator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere": {
      "ai_reranker": [
        [
          {
            "node": "n8n kb",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "n8ncreator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Parsed Content": {
      "main": [
        [
          {
            "node": "N8N KB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Parsing Completion": {
      "main": [
        [
          {
            "node": "Retrieve Parsed Content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait Before Status Recheck",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Status Recheck": {
      "main": [
        [
          {
            "node": "Monitor Document Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Knowledge Document": {
      "main": [
        [
          {
            "node": "Parse Document via LlamaIndex",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitor Document Processing": {
      "main": [
        [
          {
            "node": "Check Parsing Completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Document via LlamaIndex": {
      "main": [
        [
          {
            "node": "Monitor Document Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Knowledge Base Updated Trigger": {
      "main": [
        [
          {
            "node": "Download Knowledge Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级

需要付费吗?

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

工作流信息
难度等级
高级
节点数量18
分类-
节点类型14
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流