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 →
{
"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.
openAiApi
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 →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This template provides a straightforward technique to measure and raise awareness about the environmental impact of your AI automations.
titletopodcast. Uses telegramTrigger, chainLlm, lmChatOpenAi, openAi. Event-driven trigger; 7 nodes.
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.
opencode-llm-proxy demo. Uses lmChatOpenAi, chainLlm, agent, toolCalculator. Event-driven trigger; 6 nodes.
bad-r10-llm-output-unvalidated. Uses executeWorkflowTrigger, agent, lmChatOpenAi, lmChatDeepSeek. Event-driven trigger; 6 nodes.