AutomationFlowsAI & RAG › Bad R10 LLM Output Unvalidated

Bad R10 LLM Output Unvalidated

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

Event trigger★★☆☆☆ complexityAI-powered6 nodesExecute Workflow TriggerAgentOpenAI ChatLm Chat Deep SeekChain LlmPostgres
AI & RAG Trigger: Event Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → Chainllm 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
{
  "id": "badr10000000001",
  "name": "bad-r10-llm-output-unvalidated",
  "nodes": [
    {
      "parameters": {},
      "id": "ca000000-0000-4000-8000-000000000001",
      "name": "Manual",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.ticket }}",
        "hasOutputParser": false,
        "needsFallback": false,
        "options": {
          "maxIterations": 3
        }
      },
      "id": "ca000000-0000-4000-8000-000000000002",
      "name": "Classify",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "id",
          "value": "some-model"
        },
        "responsesApiEnabled": false,
        "options": {
          "timeout": 20000
        }
      },
      "id": "ca000000-0000-4000-8000-000000000003",
      "name": "Model A",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        160,
        200
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "model": "deepseek-chat",
        "options": {
          "timeout": 20000
        }
      },
      "id": "ca000000-0000-4000-8000-000000000005",
      "name": "Model B",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        160,
        340
      ],
      "credentials": {
        "deepSeekApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.ticket }}",
        "needsFallback": false
      },
      "id": "ca000000-0000-4000-8000-000000000006",
      "name": "Second Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.9,
      "position": [
        220,
        340
      ]
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "INSERT INTO triage_result (ticket_id, execution_id, category, urgency, summary, requires_human, provider) VALUES ($1, $2, $3, $4, $5, $6::boolean, $7) RETURNING id;",
        "options": {
          "queryReplacement": "={{ [$json.id, $execution.id, $json.output, 'normal', 'summary', false, 'primary'] }}"
        }
      },
      "id": "ca000000-0000-4000-8000-000000000004",
      "name": "Store Answer",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.7,
      "position": [
        440,
        0
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual": {
      "main": [
        [
          {
            "node": "Classify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify": {
      "main": [
        [
          {
            "node": "Store Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Model A": {
      "ai_languageModel": [
        [
          {
            "node": "Classify",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Model B": {
      "ai_languageModel": [
        [
          {
            "node": "Second Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "errorWorkflow": "errhandler0000001",
    "timezone": "Australia/Brisbane"
  },
  "active": false
}

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

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

Source: https://github.com/jarrod-wright/n8n-workflow-hardening/blob/main/linter/fixtures/bad/r10-llm-output-unvalidated.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

good-ai-triage. Uses executeWorkflowTrigger, agent, lmChatOpenAi, chainLlm. Event-driven trigger; 7 nodes.

Execute Workflow Trigger, Agent, OpenAI Chat +3
AI & RAG

Bitlab-Chatbot. Uses telegramTrigger, telegram, snowflake, httpRequest. Event-driven trigger; 87 nodes.

Telegram Trigger, Telegram, Snowflake +13
AI & RAG

The best content automation template in the market is now even better—with “deep research” on time-sensitive topics\! Unlike most n8n content automation templates that are mainly for “demo purposes,”

OpenAI, HTTP Request, XML +11
AI & RAG

Typeform IA - YT. Uses typeformTrigger, agent, lmChatOpenAi, toolWorkflow. Event-driven trigger; 75 nodes.

Typeform Trigger, Agent, OpenAI Chat +7
AI & RAG

Agent Nodes. Uses lmChatOpenAi, slack, stopAndError, errorTrigger. Event-driven trigger; 72 nodes.

OpenAI Chat, Slack, Stop And Error +12