AutomationFlowsAI & RAG › AI Chatbot via Webhook

AI Chatbot via Webhook

Original n8n title: Test AI Workflow

Test AI Workflow. Uses agent, lmChatOpenAi. Webhook trigger; 3 nodes.

Webhook trigger★☆☆☆☆ complexityAI-powered3 nodesAgentOpenAI Chat
AI & RAG Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → OpenAI Chat 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": "Test AI Workflow",
  "id": "wf-test",
  "nodes": [
    {
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "parameters": {
        "path": "test",
        "authentication": "none"
      }
    },
    {
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "parameters": {
        "agentType": "toolsAgent"
      }
    },
    {
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "parameters": {
        "model": "gpt-4o"
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}

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

Test AI Workflow. Uses agent, lmChatOpenAi. Webhook trigger; 3 nodes.

Source: https://github.com/Trusera/ai-bom/blob/main/tests/fixtures/sample_n8n_workflow.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

Siri Ai Agent Apple Shortcuts Powered Voice Template. Uses lmChatOpenAi, stickyNote, respondToWebhook, agent. Webhook trigger; 7 nodes.

OpenAI Chat, Agent
AI & RAG

Get Airtable data in Obsidian Notes. Uses airtableTool, lmChatOpenAi, agent, stickyNote. Webhook trigger; 7 nodes.

Airtable Tool, OpenAI Chat, Agent
AI & RAG

Axia Chat Agent. Uses agent, lmChatOpenAi, memoryBufferWindow, toolMcp. Webhook trigger; 7 nodes.

Agent, OpenAI Chat, Memory Buffer Window +1
AI & RAG

Luigi. Uses lmChatOpenAi, agent, httpRequestTool. Webhook trigger; 7 nodes.

OpenAI Chat, Agent, HTTP Request Tool
AI & RAG

Mario Speaker. Uses openAi, agent, lmChatOpenAi, memoryBufferWindow. Webhook trigger; 7 nodes.

OpenAI, Agent, OpenAI Chat +1