AutomationFlowsAI & RAG › Basicllmchain:outputparser

Basicllmchain:outputparser

BasicLLMChain:OutputParser. Uses lmChatOpenAi, outputParserStructured, chainLlm. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexityAI-powered4 nodesOpenAI ChatOutput Parser StructuredChain Llm
AI & RAG Trigger: Event Nodes: 4 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
{
  "createdAt": "2024-03-04T20:50:20.300Z",
  "updatedAt": "2024-03-04T20:55:07.000Z",
  "id": "242",
  "name": "BasicLLMChain:OutputParser",
  "active": false,
  "nodes": [
    {
      "parameters": {
        "options": {
          "temperature": 0
        }
      },
      "id": "e130434b-6283-473c-a61d-fbbe26b63acb",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        1380,
        720
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "id": "b712a9c6-575e-4026-a6a0-83590c959267",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        1180,
        560
      ]
    },
    {
      "parameters": {
        "jsonSchema": "{\n  \"type\": \"array\",\n  \"items\": {\n    \"type\": \"object\",\n    \"properties\": {\n       \"state_name\": \"string\",\n       \"capital\": \"string\",\n       \"electoral_college_votes\": \"number\"\n    }\n  }\n}"
      },
      "id": "6db310a2-11ca-4097-92cb-ec9a6a6da51e",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.2,
      "position": [
        1540,
        720
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "What are the top 5 states of US by population?",
        "hasOutputParser": true
      },
      "id": "2a8ca922-5da0-4065-b999-640fd678b0d3",
      "name": "Open AI Chat - Output Parsing",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        1360,
        560
      ]
    }
  ],
  "connections": {
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Open AI Chat - Output Parsing",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test workflow\"": {
      "main": [
        [
          {
            "node": "Open AI Chat - Output Parsing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Open AI Chat - Output Parsing",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "e3bbc2b0-e9cd-431d-89b4-c39db2989e8f",
  "triggerCount": 0,
  "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

BasicLLMChain:OutputParser. Uses lmChatOpenAi, outputParserStructured, chainLlm. Event-driven trigger; 4 nodes.

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

[AI/LangChain] Output Parser 4. Uses manualTrigger, chainLlm, outputParserStructured, outputParserAutofixing. Event-driven trigger; 11 nodes.

Chain Llm, Output Parser Structured, Output Parser Autofixing +1
AI & RAG

This workflow is for anyone looking to automatically fetch, validate, and parse complex language-based queries into a structured format. Its unique capability lies in not only processing language but

Chain Llm, OpenAI Chat, Output Parser Autofixing +1
AI & RAG

⚠️ Disclaimer This workflow uses a community node: Please make sure to install this before running the workflow.

HTTP Request, Telegram, Telegram Trigger +4
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

This template attempts to replicate OpenAI's DeepResearch feature which, at time of writing, is only available to their pro subscribers.

Output Parser Structured, OpenAI Chat, Form Trigger +8