AutomationFlowsAI & RAG › Remit Agent

Remit Agent

Remit Agent. Uses agent, memoryBufferWindow, chatTrigger, mongoDbTool. Chat trigger; 7 nodes.

Chat trigger trigger★★☆☆☆ complexityAI-powered7 nodesAgentMemory Buffer WindowChat TriggerMongo Db ToolTool WorkflowOpenAI Chat
AI & RAG Trigger: Chat trigger Nodes: 7 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → Chat Trigger 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": "Remit Agent",
  "nodes": [
    {
      "parameters": {
        "hasOutputParser": true,
        "options": {
          "systemMessage": "\u4f60\u662f\u4e00\u4e2a\u6362\u6c47\u52a9\u624b\u3002\u4f60\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b8c\u6210\u4ee5\u4e0b\u7684\u4efb\u52a1\uff1a\n1. \u6839\u636e\u7528\u6237\u7684\u9700\u6c42\u63a8\u8350\u6362\u6c47\u5e73\u53f0\uff0c\u5e76\u89e3\u91ca\u8be5\u5e73\u53f0\u4e3a\u4ec0\u4e48\u9002\u5408\u7528\u6237\n2. \u6574\u7406\u7528\u6237\u63a8\u8350\u7684\u5e73\u53f0\uff0c\u5e76\u5b58\u5165\u6216\u8005\u66f4\u65b0\u6570\u636e\u5e93\u91cc\u7684\u8bb0\u5f55\n3. \u6309\u7528\u6237\u7684\u6307\u793a\uff0c\u5220\u9664\u6570\u636e\u5e93\u4e2d\u6307\u5b9a\u7684\u8fc7\u671f\u5e73\u53f0\n\n\u6ce8\u610f\u5728\u56de\u590d\u7528\u6237\u7684\u6d88\u606f\u65f6\uff0c\u5982\u679c\u9700\u8981\u8bf7\u67e5\u8be2\u6570\u636e\u5e93\u7136\u540e\u518d\u6574\u7406\u77e5\u8bc6\u5e76\u56de\u5e94\u3002\u5f53\u7528\u6237\u6709\u5e73\u53f0\u63a8\u8350\u7684\u65f6\u5019\uff0c\u8bb0\u5f97\u95ee\u4ed6\u4eec\u63a8\u8350\u7684\u7406\u7531\uff08\u5fc5\u987b\uff09\u548cURL\uff08\u975e\u5fc5\u987b\uff09\u3002"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.8,
      "position": [
        -448,
        -80
      ],
      "id": "d1ad019f-f9fa-4caa-9431-5f357853d56f",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "contextWindowLength": 50
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        -480,
        140
      ],
      "id": "b24dd86f-f2cf-4bd6-8256-e678c402aabc",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "public": true,
        "initialMessages": "\u4f60\u597d\uff0c\u6211\u662f\u6362\u6c47\u54a8\u8be2\u673a\u5668\u4eba\u3002\u4f60\u53ef\u4ee5\u95ee\u6211\uff1a\n1. \u6709\u4ec0\u4e48\u5e73\u53f0\u63a8\u8350\n2. \u544a\u8bc9\u6211\u4e00\u4e2a\u5e73\u53f0\uff0c\u4ece\u800c\u6211\u53ef\u4ee5\u63a8\u8350\u7ed9\u522b\u4eba",
        "options": {
          "subtitle": "",
          "title": "\u4f60\u597d\uff0c\u6211\u662f\u6362\u6c47\u54a8\u8be2\u673a\u5668\u4eba\u3002"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        -820,
        -80
      ],
      "id": "b698229b-b38c-42de-8438-533f73387667",
      "name": "When chat message received"
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "\u8fd4\u56de\u6240\u6709\u6536\u5f55\u7684\u6362\u6c47\u5e73\u53f0",
        "collection": "remit_recomm",
        "options": {}
      },
      "type": "n8n-nodes-base.mongoDbTool",
      "typeVersion": 1.1,
      "position": [
        -360,
        140
      ],
      "id": "7a12e716-4e49-44f5-ae77-b5f3fc722e28",
      "name": "MongoDB Find",
      "credentials": {
        "mongoDb": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "name": "UpdateMongoDB",
        "workflowId": {
          "__rl": true,
          "value": "zf21qxfbQ2kJywnP",
          "mode": "list",
          "cachedResultName": "MongoDB Update"
        },
        "workflowInputs": {
          "mappingMode": "defineBelow",
          "value": {
            "query": "={{\n{\n  _id: $fromAI(\"_id\", \"The id of the record\", \"string\"),\n  platform_name: $fromAI(\"platform_name\", \"The platform_name of the record\", \"string\"),\n  url: $fromAI(\"url\", \"The url of the record\", \"string\"),\n  recommendation_reason: $fromAI(\"recommendation_reason\", \"The recommendation_reason of the record\", \"string\"),\n}\n}}"
          },
          "matchingColumns": [
            "query"
          ],
          "schema": [
            {
              "id": "query",
              "displayName": "query",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "canBeUsedToMatch": true,
              "type": "object",
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 2.1,
      "position": [
        -240,
        140
      ],
      "id": "60948bb2-440c-4482-8cb0-0016e7913f03",
      "name": "Call n8n Workflow Tool"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        -600,
        140
      ],
      "id": "7c06256b-ebc2-4ceb-b53d-57a0be70d9f2",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "descriptionType": "manual",
        "toolDescription": "\u5220\u9664\u6307\u5b9a\u7684\u8bb0\u5f55",
        "operation": "delete",
        "collection": "remit_recomm",
        "query": "={\"platform_name\": \"{{ $fromAI(\"platform_name\", \"The item name to be deleted\", \"string\") }}\"}"
      },
      "type": "n8n-nodes-base.mongoDbTool",
      "typeVersion": 1.1,
      "position": [
        -120,
        140
      ],
      "id": "c1813421-6d37-4e04-9e44-c7780c5c05d0",
      "name": "MongoDB Delete",
      "credentials": {
        "mongoDb": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MongoDB Find": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Call n8n Workflow Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "MongoDB Delete": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5fa75b2d-a563-4637-8808-9c3f1b5b5ef2",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "cH16BVToPd42h5BR",
  "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

Remit Agent. Uses agent, memoryBufferWindow, chatTrigger, mongoDbTool. Chat trigger; 7 nodes.

Source: https://github.com/ShaojieJiang/n8n-templates/blob/main/n8n_templates/remit_agent/Remit_Agent.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

MongoDB Agent. Uses lmChatOpenAi, mongoDbTool, memoryBufferWindow, chatTrigger. Chat trigger; 8 nodes.

OpenAI Chat, Mongo Db Tool, Memory Buffer Window +3
AI & RAG

MongoDB Agent. Uses lmChatOpenAi, mongoDbTool, memoryBufferWindow, chatTrigger. Chat trigger; 8 nodes.

OpenAI Chat, Mongo Db Tool, Memory Buffer Window +3
AI & RAG

This workflow is designed for: Database administrators and developers working with MongoDB Content managers handling movie databases Organizations looking to implement AI-powered search and recommenda

OpenAI Chat, Mongo Db Tool, Memory Buffer Window +3
AI & RAG

OpenSea AI-Powered Insights via Telegram. Uses chatTrigger, telegramTrigger, lmChatOpenAi, memoryBufferWindow. Chat trigger; 13 nodes.

Chat Trigger, Telegram Trigger, OpenAI Chat +4
AI & RAG

Track NFT market trends, collections, and trades in real time—directly from Telegram! This master workflow integrates the OpenSea API, GPT-4o-mini AI, and Telegram, allowing users to request natural-l

Chat Trigger, Telegram Trigger, OpenAI Chat +4