AutomationFlowsAI & RAG › 04 - Chat (Agent Node, no tools)

04 - Chat (Agent Node, no tools)

04 - Chat (Agent Node, no tools). Uses agent, lmChatOpenAi. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexityAI-powered4 nodesAgentLm Chat Open Ai
AI & RAG Trigger: Webhook Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes

This workflow corresponds to n8n.io template #1954 — we link there as the canonical source.

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": "04 - Chat (Agent Node, no tools)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "agent-chat",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "e3f4854f-2b7e-43bf-9603-98b1c0fd9057",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -16,
        128
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{$json.body.input}}",
        "options": {}
      },
      "id": "c3a10029-838a-4836-bf3c-475cfd6ccb24",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        192,
        128
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "openai/gpt-oss-20b",
          "mode": "id"
        },
        "options": {}
      },
      "id": "24af2cc7-55e6-4dc5-9c52-441a461f63ff",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        64,
        336
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "answer",
              "value": "={{$json.output || $json.response || $json.text || ''}}"
            }
          ]
        },
        "options": {}
      },
      "id": "Set-Agent-Response",
      "name": "Format Agent Response",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        432,
        128
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Format Agent Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "meta": {
    "templateId": "1954"
  },
  "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.

About this workflow

04 - Chat (Agent Node, no tools). Uses agent, lmChatOpenAi. Webhook trigger; 4 nodes.

Source: https://github.com/slayerlux/n8n-llm-workflows/blob/main/workflows/04-agentic-chat.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →