AutomationFlowsAI & RAG › Sub-node Errors:model

Sub-node Errors:model

Sub-node errors:model. Uses chainLlm, lmChatOpenAi. Event-driven trigger; 3 nodes.

Event trigger★☆☆☆☆ complexityAI-powered3 nodesChain LlmOpenAI Chat
AI & RAG Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ AI nodes: yes Added:

This workflow follows the Chainllm → 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": "Sub-node errors:model",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "077f1a05-32d1-4a9e-abd9-9ef4a1bcfe02",
      "name": "When clicking \u2018Test workflow\u2019"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Hey"
      },
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        200,
        0
      ],
      "id": "5c3f329d-6481-41c5-9747-e9fd53815ca6",
      "name": "Basic LLM Chain",
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "model": "=gpt-4o-mini123",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        280,
        220
      ],
      "id": "00cb1410-f04f-4b2b-b42e-f2c275ba0b4a",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "56e5e220-edbd-4d7a-97f3-96b8cf952202",
  "id": "255",
  "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

Sub-node errors:model. Uses chainLlm, lmChatOpenAi. Event-driven trigger; 3 nodes.

Source: https://github.com/n8n-io/test-workflows/blob/c1d376431a818f81f44e9ce645b8fb4878805419/workflows/255.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

This template provides a straightforward technique to measure and raise awareness about the environmental impact of your AI automations.

Chain Llm, OpenAI Chat
AI & RAG

titletopodcast. Uses telegramTrigger, chainLlm, lmChatOpenAi, openAi. Event-driven trigger; 7 nodes.

Telegram Trigger, Chain Llm, OpenAI Chat +3
AI & RAG

This is a powerful n8n automation workflow that integrates a Telegram bot with OpenAI's multimodal large language model (GPT-4 Vision) to provide users with real-time stock chart analysis.

Telegram Trigger, Chain Llm, Edit Image +3
AI & RAG

opencode-llm-proxy demo. Uses lmChatOpenAi, chainLlm, agent, toolCalculator. Event-driven trigger; 6 nodes.

OpenAI Chat, Chain Llm, Agent +1
AI & RAG

bad-r10-llm-output-unvalidated. Uses executeWorkflowTrigger, agent, lmChatOpenAi, lmChatDeepSeek. Event-driven trigger; 6 nodes.

Execute Workflow Trigger, Agent, OpenAI Chat +3