8
n8n 中文网amn8n.com

使用 GPT-4o 和 GoHighLevel SMS 创建自动化客户支持助手

高级

这是一个Support, AI领域的自动化工作流,包含 43 个节点。主要使用 If, Set, Xml, Html, Wait 等节点,结合人工智能技术实现智能自动化。 使用 GPT-4o 和 GoHighLevel SMS 创建自动化客户支持助手

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
  • Redis 服务器连接信息
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "4e6be3a68285934388a854ac0ffdc5e5500688d5cdb88d0ec2d734e85f097355"
  },
  "nodes": [
    {
      "id": "11fb91ab-7dc6-4cc9-ad1d-d6f10b8b94cc",
      "name": "HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        -2120,
        -40
      ],
      "parameters": {
        "options": {},
        "operation": "extractHtmlContent",
        "dataPropertyName": "body",
        "extractionValues": {
          "values": [
            {
              "key": "raw_text",
              "cssSelector": "body"
            },
            {
              "key": "links",
              "attribute": "href",
              "cssSelector": "a",
              "returnArray": true,
              "returnValue": "attribute"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3f207160-f88c-499a-b7a6-2d46fca4ca08",
      "name": "简单向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        -640,
        -640
      ],
      "parameters": {
        "mode": "insert",
        "memoryKey": "vector_db",
        "clearStore": true
      },
      "typeVersion": 1
    },
    {
      "id": "1e9f2063-8d90-4550-854a-b4b44d030440",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -600,
        -420
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "3wONK02jjm23nMHf",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "30f62b01-9ca9-4ba2-beb5-3475ddb7f728",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        -480,
        -420
      ],
      "parameters": {
        "options": {},
        "jsonData": "={{ $json.raw_text }}",
        "jsonMode": "expressionData"
      },
      "typeVersion": 1
    },
    {
      "id": "fa91d999-2caf-47e5-8bb3-1d25ea7cabe5",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        -440,
        -300
      ],
      "parameters": {
        "options": {},
        "chunkSize": 300
      },
      "typeVersion": 1
    },
    {
      "id": "392f3e86-e3df-418d-824d-d34e42194609",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2080,
        1200
      ],
      "parameters": {
        "text": "={{ $('Webhook from GHL - SMS Reply Trigger').item.body.body }}",
        "options": {
          "systemMessage": "=You are a helpful chatbot for {{ $json.website_url }}. Your goal is to assist website visitors by answering their questions based on the information available on the website.\n\nKnowledgebase: \n\nAlways run the 'website_knowledgebase' tool when the user inquires anything about the company."
        },
        "promptType": "define"
      },
      "typeVersion": 1.8
    },
    {
      "id": "6bf869cc-f9b0-411a-abe9-f47798785128",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2140,
        1420
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "3wONK02jjm23nMHf",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "cf57c3ed-735b-4406-9ea1-933e29ff1e76",
      "name": "Simple Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        -1900,
        1420
      ],
      "parameters": {
        "mode": "retrieve-as-tool",
        "toolName": "vector_db",
        "memoryKey": "english_center_nl",
        "toolDescription": "Call this tool to get information about the company and it’s products."
      },
      "typeVersion": 1
    },
    {
      "id": "e66e902d-015e-4ac7-83c3-0440fd8c2976",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -1780,
        1580
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "3wONK02jjm23nMHf",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ba793e78-c740-43f9-8e12-089897f2b38e",
      "name": "分离输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1580,
        500
      ],
      "parameters": {
        "options": {
          "destinationFieldName": "link"
        },
        "fieldToSplitOut": "links"
      },
      "typeVersion": 1
    },
    {
      "id": "0446402d-cfd3-4e14-a40c-55432c39afdf",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1400,
        500
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "af7bf238-6414-4479-a322-4f0283efa628",
              "operator": {
                "type": "string",
                "operation": "startsWith"
              },
              "leftValue": "={{ $json.link }}",
              "rightValue": "/"
            },
            {
              "id": "34cae489-cb26-4162-b487-ce915f83367f",
              "operator": {
                "type": "string",
                "operation": "startsWith"
              },
              "leftValue": "={{ $json.link }}",
              "rightValue": "={{ $('Set Website URL').item.json.website_url }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "6edec18d-b589-4394-93e5-48b42b90bb17",
      "name": "HTML1",
      "type": "n8n-nodes-base.html",
      "position": [
        360,
        560
      ],
      "parameters": {
        "options": {},
        "operation": "extractHtmlContent",
        "extractionValues": {
          "values": [
            {
              "key": "raw_text",
              "cssSelector": "body"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5f777051-9643-4656-9030-c78efcf2d07a",
      "name": "Redis 聊天记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "position": [
        -2020,
        1420
      ],
      "parameters": {
        "sessionKey": "={{ $item(\"0\").$node[\"Webhook from GHL - SMS Reply Trigger\"].json[\"body\"][\"contactId\"] }}",
        "sessionIdType": "customKey",
        "contextWindowLength": 2
      },
      "typeVersion": 1.4
    },
    {
      "id": "ba32dc25-b25a-4694-9b38-85b2d51968cc",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -3200,
        -40
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "daysInterval": 4,
              "triggerAtHour": "={{ 12 }}"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e96c0daf-52c6-42f2-94b9-96794b0e29da",
      "name": "BrightData",
      "type": "n8n-nodes-brightdata.brightData",
      "position": [
        -2320,
        -40
      ],
      "parameters": {
        "url": "={{ $json.website_url }}",
        "zone": {
          "__rl": true,
          "mode": "list",
          "value": "web_unlocker1"
        },
        "format": "json",
        "country": {
          "__rl": true,
          "mode": "list",
          "value": "us"
        },
        "requestOptions": {}
      },
      "credentials": {
        "brightdataApi": {
          "id": "DQaiy0yJ0lNutzIl",
          "name": "BrightData account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a0ae9df5-d272-4e63-a7ff-a829b3273672",
      "name": "设置网站 URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -2760,
        -40
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "74c8c4d8-5676-4de7-bd75-954d518eab67",
              "name": "website_url",
              "type": "string",
              "value": "https://yourwebsite.com"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "702aa89b-97ba-48df-a1af-4e6757ac120a",
      "name": "BrightData1",
      "type": "n8n-nodes-brightdata.brightData",
      "position": [
        180,
        560
      ],
      "parameters": {
        "url": "={{ $json.link }}",
        "zone": {
          "__rl": true,
          "mode": "list",
          "value": "web_unlocker1"
        },
        "format": "json",
        "country": {
          "__rl": true,
          "mode": "list",
          "value": "us"
        },
        "requestOptions": {}
      },
      "credentials": {
        "brightdataApi": {
          "id": "DQaiy0yJ0lNutzIl",
          "name": "BrightData account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "20e30736-6407-4a80-a773-7a82ed85ccbe",
      "name": "Send SMS via GHL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1640,
        1200
      ],
      "parameters": {
        "url": "https://services.leadconnectorhq.com/conversations/messages",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "type",
              "value": "SMS"
            },
            {
              "name": "contactId",
              "value": "={{ $('Webhook from GHL - SMS Reply Trigger').item.json.body.contactId }}"
            },
            {
              "name": "message",
              "value": "={{ $json.output }}"
            },
            {
              "name": "toNumber",
              "value": "={{ $('Look Up GHL Contact by ID').item.json.phone }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            },
            {
              "name": "Version",
              "value": "2021-04-15"
            }
          ]
        },
        "nodeCredentialType": "highLevelOAuth2Api"
      },
      "credentials": {
        "highLevelOAuth2Api": {
          "id": "8K28KN5X0kOOaAU9",
          "name": "HighLevel account"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "c45c8576-2ad5-494b-9f02-f8fcd70890b7",
      "name": "Webhook from GHL - SMS Reply Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2960,
        1220
      ],
      "webhookId": "54259c33-52c0-4a19-97fe-3414a153f4d6",
      "parameters": {
        "path": "54259c33-52c0-4a19-97fe-3414a153f4d6",
        "options": {},
        "httpMethod": [
          "POST"
        ],
        "multipleMethods": true
      },
      "typeVersion": 2
    },
    {
      "id": "b635091f-ec49-43f0-9630-33dff88d5ecf",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        860,
        780
      ],
      "webhookId": "1d1ea2c2-c407-4ab9-be52-5987c7426def",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c5038c4d-6527-48f3-bdf0-afc64affc7aa",
      "name": "简单向量存储2",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        540,
        560
      ],
      "parameters": {
        "mode": "insert",
        "memoryKey": "vector_db",
        "clearStore": true
      },
      "typeVersion": 1
    },
    {
      "id": "70926e4b-6f62-4f8f-9460-1a506270ce86",
      "name": "Set Website URL1",
      "type": "n8n-nodes-base.set",
      "position": [
        -2280,
        1200
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "74c8c4d8-5676-4de7-bd75-954d518eab67",
              "name": "website_url",
              "type": "string",
              "value": "https://yourwebsite.com"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f3e71cf8-06ec-4ae9-8678-5c9d23d8e13d",
      "name": "Look Up GHL Contact by ID",
      "type": "n8n-nodes-base.highLevel",
      "position": [
        -2560,
        1200
      ],
      "parameters": {
        "contactId": "={{ $json.body.contactId }}",
        "operation": "get",
        "requestOptions": {}
      },
      "credentials": {
        "highLevelOAuth2Api": {
          "id": "8K28KN5X0kOOaAU9",
          "name": "HighLevel account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "f8db6542-0032-45f1-8e86-981e95ab1c83",
      "name": "Direct API access via HTTP",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2320,
        160
      ],
      "parameters": {
        "url": "https://api.brightdata.com/request",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "zone",
              "value": "web_unlocker1"
            },
            {
              "name": "url",
              "value": "={{ $json.website_url }}"
            },
            {
              "name": "format",
              "value": "json"
            },
            {
              "name": "method",
              "value": "api"
            },
            {
              "name": "product",
              "value": "unlocker"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth",
        "headerParameters": {
          "parameters": [
            {}
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "MR4HBU5dH9phpxNO",
          "name": "Bright Data API Key"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "3fa901bf-f2cf-4b69-89c5-55715940f062",
      "name": "Direct API access via HTTP1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        180,
        760
      ],
      "parameters": {
        "url": "https://api.brightdata.com/request",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "zone",
              "value": "web_unlocker1"
            },
            {
              "name": "url",
              "value": "={{ $json.website_url }}"
            },
            {
              "name": "format",
              "value": "json"
            },
            {
              "name": "method",
              "value": "api"
            },
            {
              "name": "product",
              "value": "unlocker"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth",
        "headerParameters": {
          "parameters": [
            {}
          ]
        }
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "MR4HBU5dH9phpxNO",
          "name": "Bright Data API Key"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "4af4ebd0-3d39-4e12-a063-2ce74731f769",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -2780,
        1220
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "09156710-3e82-42ed-a7a2-045711f92017",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.body.type }}",
              "rightValue": "InboundMessage"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "6ad6a06c-2512-40cc-9be6-00b5c873ac6a",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3020,
        1040
      ],
      "parameters": {
        "color": 5,
        "width": 640,
        "height": 400,
        "content": "## Webhook from GoHighlevel \n\nSet the webhook events from your GoHighLevel Marketplace app, copy the webhook the node, then paste it in app's setting in the GHL app. To learn more about setting up GHL Marketplace app, please refer to this Loom video: https://www.loom.com/share/f32384758de74a4dbb647e0b7962c4ea"
      },
      "typeVersion": 1
    },
    {
      "id": "19685364-38c7-4a43-bdeb-4bf6283d4e42",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2420,
        -180
      ],
      "parameters": {
        "width": 500,
        "height": 540,
        "content": "## Scrape the home page\n\nIf you are using N8N cloud version, you may replace Bright Data node with the HTTP request node and rewire it."
      },
      "typeVersion": 1
    },
    {
      "id": "10d3250e-39e4-4a48-a206-3473f23036f2",
      "name": "获取 XML 文件",
      "type": "n8n-nodes-base.xml",
      "position": [
        -1420,
        80
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "84246cd0-53e5-40aa-9b1d-98c35971258a",
      "name": "分离链接",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1280,
        80
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "urlset.url"
      },
      "typeVersion": 1
    },
    {
      "id": "818840f8-2c73-4fb4-86b3-3288c0b5cb70",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2880,
        -180
      ],
      "parameters": {
        "width": 380,
        "height": 540,
        "content": "## Set the website URL"
      },
      "typeVersion": 1
    },
    {
      "id": "e0df1684-9775-4283-8736-0d6f7eac6c6f",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -780
      ],
      "parameters": {
        "width": 600,
        "height": 660,
        "content": "## Store into a vector database\n\nWarning: This will only save into N8N's memory and it will not be a good in production use. Please consider moving the a dedicated vector database such as Pinecone, Supabase, etc."
      },
      "typeVersion": 1
    },
    {
      "id": "95354954-9d89-4ac9-8a4b-0c75c108e1ba",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1660,
        -40
      ],
      "parameters": {
        "width": 760,
        "height": 320,
        "content": "## Get the website's sitemap\n\nSitemap may not work on all of the website. The alternative is to scrape all the links in a website as shown below. If the sitemap is not working, it will go empty as an error output."
      },
      "typeVersion": 1
    },
    {
      "id": "ded3c52e-a153-4746-b06c-941bdaee33d3",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1660,
        340
      ],
      "parameters": {
        "width": 600,
        "height": 400,
        "content": "## Extract Links from the homepage\n\nIf the sitemap above is not working, please loop this step for the sub pages\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "64c8af28-45c8-4143-9fe0-c5a8f4a6e41e",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        -640,
        300
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "1d2e604b-cfff-4773-a264-c68e1af058e6",
      "name": "移除重复项1",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -440,
        300
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "ff96e735-6779-466c-9ba0-baa7e12ec16c",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -20,
        540
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "dd90fd8d-b1e3-4659-950e-30d0f7be91e0",
      "name": "Edit Links",
      "type": "n8n-nodes-base.set",
      "position": [
        -1240,
        500
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "43dbcf0b-b873-48c9-8996-4ad300353318",
              "name": "link",
              "type": "string",
              "value": "={{ $json.link.startsWith(\"/\") ? $('Set Website URL').item.json.website_url + $json.link : $json.link }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "90c8f4bb-a394-466e-97c6-8f7edec738c4",
      "name": "Edit Links1",
      "type": "n8n-nodes-base.set",
      "position": [
        -1100,
        80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "70864ce3-16eb-48b9-90bf-3168df643ae3",
              "name": "link",
              "type": "string",
              "value": "={{ $json.loc }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "d0c09704-e158-421e-a463-6e12160371b6",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        160
      ],
      "parameters": {
        "width": 580,
        "height": 340,
        "content": "## Merge the links from the sitemap and the extracted links from the webpage\nIf the sitemap is not working, remove the merge node or set the node's input into 1.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "fd4a351a-6bfa-4a94-9d3f-7ef2a6cbc3f0",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        420
      ],
      "parameters": {
        "width": 1200,
        "height": 620,
        "content": "## Scrape each links by batch"
      },
      "typeVersion": 1
    },
    {
      "id": "4c850725-4d09-4a21-bd45-777f4d091a3b",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2340,
        1040
      ],
      "parameters": {
        "color": 5,
        "width": 900,
        "height": 700,
        "content": "## AI Agent then send the output via SMS in GHL"
      },
      "typeVersion": 1
    },
    {
      "id": "6a622f9d-e4cf-45af-b125-750fc74a6707",
      "name": "Get sitemap",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -1600,
        140
      ],
      "parameters": {
        "url": "={{ $('Set Website URL').item.json.website_url }}/post-sitemap.xml",
        "options": {}
      },
      "typeVersion": 4.2
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Look Up GHL Contact by ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML": {
      "main": [
        [
          {
            "node": "Simple Vector Store",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get sitemap",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML1": {
      "main": [
        [
          {
            "node": "Simple Vector Store2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Remove Duplicates1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Edit Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send SMS via GHL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BrightData": {
      "main": [
        [
          {
            "node": "HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Links": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "BrightData1": {
      "main": [
        [
          {
            "node": "HTML1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Links1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get sitemap": {
      "main": [
        [
          {
            "node": "Get XML file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get XML file": {
      "main": [
        [
          {
            "node": "Split out links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "BrightData1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Website URL": {
      "main": [
        [
          {
            "node": "BrightData",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split out links": {
      "main": [
        [
          {
            "node": "Edit Links1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set Website URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Website URL1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Simple Vector Store",
            "type": "ai_embedding",
            "index": 0
          },
          {
            "node": "Simple Vector Store2",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Redis Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Simple Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Simple Vector Store",
            "type": "ai_document",
            "index": 0
          },
          {
            "node": "Simple Vector Store2",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Simple Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Vector Store2": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Look Up GHL Contact by ID": {
      "main": [
        [
          {
            "node": "Set Website URL1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Webhook from GHL - SMS Reply Trigger": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客户支持, 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量43
分类2
节点类型23
难度说明

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

作者
外部链接
在 n8n.io 查看

分享此工作流