AutomationFlowsAI & RAG › Cloudbase AI Agent with DeepSeek

Cloudbase AI Agent with DeepSeek

Original n8n title: Agent for Cloudbase

Agent for cloudbase. Uses agent, lmChatDeepSeek, memoryBufferWindow, mcpClientTool. Webhook trigger; 12 nodes.

Webhook trigger★★★☆☆ complexityAI-powered12 nodesAgentLm Chat Deep SeekMemory Buffer WindowMcp Client ToolChain LlmText Classifier
AI & RAG Trigger: Webhook Nodes: 12 Complexity: ★★★☆☆ AI nodes: yes Added:

This workflow follows the Agent → Chainllm recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Agent for cloudbase",
  "nodes": [
    {
      "parameters": {
        "content": "## AI Agent with Webhook for tencent cloudbase",
        "height": 545,
        "width": 1736,
        "color": 6
      },
      "id": "47881833-9939-4ac1-b725-f3e919066eaf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        460,
        -380
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "9f191957-6b6d-4e46-8630-3c0d6843e06e",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1980,
        -340
      ]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "invoke-n8n-agent",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "aa490a1b-ddfc-4daf-b993-f79c77b055a8",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        500,
        -320
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d264444f-c01a-4fa0-86a4-c0bf0e4c8537",
              "name": "output",
              "value": "={{ $json.output || $json.text }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1760,
        -340
      ],
      "id": "8c645094-b838-4340-88ac-b98eaaa67a0a",
      "name": "Edit Fields (Set Output Field)"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.body.chatInput }}",
        "options": {
          "systemMessage": "You are a personal assistant who helps answer questions.\n\nYou are given tools to perform search.\n\nAlways tell the user if you didn't find the answer. Don't make something up just to please them."
        }
      },
      "id": "949002c4-82e9-42bf-80b3-d1cd7d817396",
      "name": "Primary AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.6,
      "position": [
        1280,
        -340
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        1420,
        -80
      ],
      "id": "1296c274-9fb9-45e7-ac4f-9c03edc7cc9d",
      "name": "DeepSeek Chat Model1",
      "credentials": {
        "deepSeekApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{$json.body.sessionId}}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        1580,
        -40
      ],
      "id": "4b073180-80d1-4da9-87c1-3aeb89367838",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "sseEndpoint": "https://<your-mcp-server-url>",
        "authentication": "bearerAuth",
        "include": "selected",
        "includeTools": [
          "search_web"
        ]
      },
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "typeVersion": 1,
      "position": [
        1780,
        -40
      ],
      "id": "3328f1a3-becd-4faf-9906-817071aebe29",
      "name": "MCP Client",
      "alwaysOutputData": false,
      "credentials": {
        "httpBearerAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        1100,
        20
      ],
      "id": "f32fa4e7-1330-4db3-8981-fb1bc7e69cfa",
      "name": "DeepSeek Chat Model",
      "credentials": {
        "deepSeekApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('Webhook').item.json.body.chatInput }}"
      },
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        1060,
        -140
      ],
      "id": "23f985d1-1917-4f7a-a808-37f14c8bce1c",
      "name": "Secondary LLM"
    },
    {
      "parameters": {
        "inputText": "={{ $('Webhook').item.json.body.chatInput }}",
        "categories": {
          "categories": [
            {
              "category": "complex",
              "description": "\u7528\u6237\u8f93\u5165\u4e3a\u590d\u6742\u4efb\u52a1\uff0c\u9700\u8981\u591a\u6b65\u9aa4\u5904\u7406\u3001\u5de5\u5177\u8c03\u7528\u6216\u6df1\u5ea6\u5206\u6790\u3002\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\n\n- \u9700\u8981\u641c\u7d22\u5916\u90e8\u4fe1\u606f\u7684\u95ee\u9898\n- \u591a\u6b65\u9aa4\u7684\u95ee\u9898\u89e3\u51b3\u6216\u5206\u6790\u4efb\u52a1\n- \u9700\u8981\u4ee3\u7801\u7f16\u5199\u3001\u8c03\u8bd5\u6216\u6267\u884c\u7684\u8bf7\u6c42\n- \u590d\u6742\u7684\u6570\u636e\u5904\u7406\u6216\u8ba1\u7b97\u4efb\u52a1\n- \u9700\u8981\u521b\u5efa\u7ed3\u6784\u5316\u5185\u5bb9\uff08\u62a5\u544a\u3001\u65b9\u6848\u3001\u6d41\u7a0b\u56fe\u7b49\uff09\n- \u6d89\u53ca\u591a\u4e2a\u9886\u57df\u77e5\u8bc6\u6574\u5408\u7684\u95ee\u9898\n- \u9700\u8981\u5b9e\u65f6\u4fe1\u606f\u6216\u52a8\u6001\u6570\u636e\u7684\u67e5\u8be2\n- \u5de5\u4f5c\u6d41\u7a0b\u8bbe\u8ba1\u6216\u4f18\u5316\u5efa\u8bae"
            },
            {
              "category": "simple",
              "description": "\u7528\u6237\u8f93\u5165\u4e3a\u7b80\u5355\u3001\u76f4\u63a5\u7684\u95ee\u9898\u6216\u8bf7\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7\u5355\u6b21LLM\u8c03\u7528\u7acb\u5373\u54cd\u5e94\u3002\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\n\n- \u65e5\u5e38\u95f2\u804a\u548c\u95ee\u5019\uff08\"\u4f60\u597d\"\u3001\"\u4eca\u5929\u5929\u6c14\u600e\u4e48\u6837\"\uff09\n- \u57fa\u7840\u4e8b\u5b9e\u6027\u95ee\u9898\uff08\"\u4ec0\u4e48\u662f\u4eba\u5de5\u667a\u80fd\"\u3001\"\u5317\u4eac\u662f\u4e2d\u56fd\u7684\u9996\u90fd\u5417\"\uff09\n- \u7b80\u5355\u7684\u6982\u5ff5\u89e3\u91ca\u6216\u5b9a\u4e49\n- \u60c5\u611f\u652f\u6301\u6216\u9f13\u52b1\u6027\u5bf9\u8bdd\n- \u57fa\u7840\u7684\u8ba1\u7b97\u6216\u8f6c\u6362\uff08\"1+1\u7b49\u4e8e\u591a\u5c11\"\uff09\n- \u4e0d\u9700\u8981\u5916\u90e8\u5de5\u5177\u6216\u591a\u6b65\u63a8\u7406\u7684\u95ee\u9898"
            }
          ]
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "typeVersion": 1.1,
      "position": [
        740,
        -320
      ],
      "id": "01fe400f-24c7-48ff-bdc2-2f6f9409f715",
      "name": "Text Classifier"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        660,
        -40
      ],
      "id": "b85340b2-3517-494b-825f-221f1d3fc7a5",
      "name": "DeepSeek Chat Model2",
      "credentials": {
        "deepSeekApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Text Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields (Set Output Field)": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Primary AI Agent": {
      "main": [
        [
          {
            "node": "Edit Fields (Set Output Field)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Primary AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Primary AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "MCP Client": {
      "ai_tool": [
        [
          {
            "node": "Primary AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Secondary LLM": {
      "main": [
        [
          {
            "node": "Edit Fields (Set Output Field)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Secondary LLM",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Text Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Text Classifier": {
      "main": [
        [
          {
            "node": "Primary AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Secondary LLM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3dd2d4cd-5a77-4498-ad8e-3664aaaebfb2",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "R7WBvkUGs5k3fzbq",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Agent for cloudbase. Uses agent, lmChatDeepSeek, memoryBufferWindow, mcpClientTool. Webhook trigger; 12 nodes.

Source: https://github.com/TencentCloudBase/awesome-cloudbase-examples/blob/fe691eecd33a1e2f21ac0f2899df15a1111f57df/cloudrunfunctions/n8n-agent/Agent_for_cloudbase.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Awesome N8N Templates. Uses lmChatDeepSeek, splitOut, removeDuplicates, outputParserAutofixing. Webhook trigger; 26 nodes.

Lm Chat Deep Seek, Output Parser Autofixing, Output Parser Structured +6
AI & RAG

My workflow 5. Uses informationExtractor, lmChatAzureOpenAi, outputParserStructured, mcpClientTool. Webhook trigger; 36 nodes.

Information Extractor, Lm Chat Azure Open Ai, Output Parser Structured +5
AI & RAG

nl2sql. Uses stickyNote, agent, lmChatDeepSeek, respondToWebhook. Webhook trigger; 25 nodes.

Agent, Lm Chat Deep Seek, Memory Manager +3
AI & RAG

This workflow implements an AI-powered design and prototyping assistant that integrates Telegram, Google Gemini, and Google Stitch (MCP) to enable conversational UI generation and project management.

Chat Trigger, Google Gemini Chat, Memory Buffer Window +6
AI & RAG

自动发送推文邮件. Uses mcpClientTool, agent, lmChatDeepSeek, httpRequest. Webhook trigger; 23 nodes.

Mcp Client Tool, Agent, Lm Chat Deep Seek +2