{
  "id": "mjCQV12PbF6fw8hR",
  "meta": {
    "instanceId": "workflow-79fcb5c0",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:49.824464",
    "updatedAt": "2025-09-29T07:07:49.824480",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "LangChain - Example - Workflow Retriever",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "efdc3050-6c68-4419-9f12-f37d6fefb276",
      "name": "When clicking \"Execute Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        460,
        200
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "e0edb9ab-c59f-4d34-983d-861bb2df4f01",
      "name": "Workflow Retriever",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1120,
        440
      ],
      "parameters": {
        "workflowId": "QacfBRBnf1xOyckC"
      },
      "typeVersion": 1,
      "notes": "This retrieverWorkflow node performs automated tasks as part of the workflow."
    },
    {
      "id": "ba47dd13-67d0-499a-b9a2-16928099efce",
      "name": "Retrieval QA Chain2",
      "type": "n8n-nodes-base.noOp",
      "position": [
        900,
        200
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This chainRetrievalQa node performs automated tasks as part of the workflow."
    },
    {
      "id": "f6d16571-0573-4860-aed9-611f93b050ad",
      "name": "OpenAI Chat Model",
      "type": "n8n-nodes-base.noOp",
      "position": [
        800,
        480
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "4jRB4A20cPycBqP5",
          "name": "OpenAI account - n8n"
        }
      },
      "typeVersion": 1,
      "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow."
    },
    {
      "id": "4fd00751-3db0-489b-8c7f-4ee0fb32fb51",
      "name": "Example Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        680,
        200
      ],
      "parameters": {
        "fields": {
          "values": [
            {
              "name": "input",
              "stringValue": "What notes can you find for Jay Gatsby and what is his email address?"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3,
      "notes": "This set node performs automated tasks as part of the workflow."
    },
    {
      "id": "732b6277-cb4d-4586-ab95-778ac9473fe5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        140
      ],
      "parameters": {
        "width": 363,
        "height": 211.90203341144422,
        "content": "### Q&A on data returned from a workflow"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "f09583a3-78e3-4888-8251-2148ffb7ab18",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        400
      ],
      "parameters": {
        "width": 262.67019427016413,
        "height": 255.8330939602389,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nReplace \"Workflow ID\" with the ID the Subworkflow got saved as"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-22bd24c2",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "versionId": "48d3bdae-4cec-4b18-b92a-89215def0c68",
  "connections": {
    "f6d16571-0573-4860-aed9-611f93b050ad": {
      "main": [
        [
          {
            "node": "error-handler-f6d16571-0573-4860-aed9-611f93b050ad-17198fce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "description": "Automated workflow: LangChain - Example - Workflow Retriever. This workflow integrates 7 different services: stickyNote, retrieverWorkflow, chainRetrievalQa, set, stopAndError. It contains 8 nodes and follows best practices for error handling and security.",
  "notes": "Excellent quality workflow: LangChain - Example - Workflow Retriever. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}