{
    "name": "Workflow Factory",
    "nodes": [
        {
            "parameters": {
                "options": []
            },
            "type": "@n8n\/n8n-nodes-langchain.chatTrigger",
            "typeVersion": 1.1,
            "position": [
                192,
                -160
            ],
            "id": "2a8a118b-7334-4d1d-a33a-97f6b0ba18ab",
            "name": "When chat message received",
            "webhookId": "a55c1b4f-1dd4-40e7-9a99-a89902e2f5a9"
        },
        {
            "parameters": {
                "operation": "create",
                "workflowObject": "={{ $json.output[1].text }}",
                "requestOptions": []
            },
            "type": "n8n-nodes-base.n8n",
            "typeVersion": 1,
            "position": [
                912,
                -160
            ],
            "id": "58259e17-470b-441e-89b6-79357c54fbad",
            "name": "n8n",
            "credentials": {
                "n8nApi": {
                    "id": "R7gs412JPGxxe3Bo",
                    "name": "n8n account"
                }
            }
        },
        {
            "parameters": {
                "assignments": {
                    "assignments": [
                        {
                            "id": "f4b8c16e-6788-4c17-b643-94a3f0620860",
                            "name": "Workflow Link",
                            "value": "=https:\/\/n8n.srv942514.hstgr.cloud\/workflow\/{{ $json.id }}",
                            "type": "string"
                        }
                    ]
                },
                "options": []
            },
            "type": "n8n-nodes-base.set",
            "typeVersion": 3.4,
            "position": [
                1136,
                -160
            ],
            "id": "c0e562d3-bb2a-4df6-a66f-13a26f62352e",
            "name": "Workflow Link"
        },
        {
            "parameters": {
                "options": {
                    "systemMessage": "=You are an expert AI workflow developer specializing in building workflows for n8n as JSON. Your job is to translate a human’s natural language request into a fully functional n8n workflow JSON. It should be comprehensive, functional, and importable. It should have 100% valid JSON structure, node types, and connection methods.\n\n## Output\nYour output should only be the final JSON of the full workflow.\n\nYour output must start with a { and must end with a }.\n- Do not include anything before the { (such as ```json or any markdown formatting).\n- Do not include anything after the } (such as closing code blocks like ``` or explanations).\n\nYour output should be a pure JSON object that begins with { and ends with }, ready to be used as the body of a POST request.\n\nThe JSON must:\n- Be syntactically valid and complete\n- Include a `nodes` array with each node containing all required parameters\n- Include a `connections` object that correctly maps outputs to inputs\n- Start with a `trigger` node if one is required for the use case (e.g., Webhook, Schedule, etc.)\n- Contain descriptive names and parameter values relevant to the user request\n- Avoid placeholders unless no reasonable value can be inferred\n- Contain sticky notes that are explaining what's going on within each step and any credentials or connections that still need to be configured. The colors should vary throughout the workflow.\n\nBefore generating the JSON, analyze the request and:\n1. Break it down into logical automation steps\n2. Choose appropriate nodes based on the steps\n3. Properly connect the nodes to reflect execution order\n\nIf the request is ambiguous, make a best guess using standard automation logic.\n\nDo not return explanations, comments, or any output outside of the JSON markdown block.\n\nYou are expected to produce developer-grade output suitable for direct import into n8n.\n\n## API Submission Requirements\nTo automatically create a workflow using the n8n API, your generated JSON must include the following top-level fields in the final object:\n\n- `name` (string): A clear, descriptive workflow name.\n- `nodes` (array): The complete array of node objects used in the workflow.\n- `connections` (object): A valid map of node-to-node connections.\n- `settings` (object): Workflow-level settings (e.g. `saveManualExecutions`, `executionOrder`).\n- `staticData` (null or object): Set to `null` unless specific static data is needed.\n\nExample “settings” object:\n  \"settings\": {\n    \"executionOrder\": \"v1\",\n    \"saveManualExecutions\": true,\n    \"saveDataSuccessExecution\": \"all\",\n    \"saveExecutionProgress\": true,\n    \"saveDataErrorExecution\": \"all\",\n    \"errorWorkflow\": \"\",\n    \"timezone\": \"America\/New_York\"\n  }\n\n## n8n Documentation\nUse the Data from the user Prompt and surch the vectorstore for more Example."
                }
            },
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 2,
            "position": [
                448,
                -160
            ],
            "id": "10905b15-e0da-4fb8-94a8-bab3dd3f569c",
            "name": "n8n Builder"
        },
        {
            "parameters": {
                "model": {
                    "__rl": true,
                    "value": "claude-opus-4-20250514",
                    "mode": "list",
                    "cachedResultName": "Claude Opus 4"
                },
                "options": {
                    "maxTokensToSample": 8000,
                    "thinking": true,
                    "thinkingBudget": 3000
                }
            },
            "type": "@n8n\/n8n-nodes-langchain.lmChatAnthropic",
            "typeVersion": 1.3,
            "position": [
                416,
                64
            ],
            "id": "d296792d-e1f2-438b-ac41-8d3d3c2aa558",
            "name": "Opus 4",
            "credentials": {
                "anthropicApi": {
                    "id": "ZtrfJqD7xC9RXnqv",
                    "name": "Anthropic account"
                }
            }
        },
        {
            "parameters": {
                "mode": "retrieve-as-tool",
                "toolDescription": "use this tool to for more Examples about n8n Workflows",
                "pineconeIndex": {
                    "__rl": true,
                    "value": "yttest",
                    "mode": "list",
                    "cachedResultName": "yttest"
                },
                "options": []
            },
            "type": "@n8n\/n8n-nodes-langchain.vectorStorePinecone",
            "typeVersion": 1.3,
            "position": [
                608,
                64
            ],
            "id": "a2899116-b735-48cd-91ed-b05d51ea9d27",
            "name": "Pinecone Vector Store"
        },
        {
            "parameters": {
                "model": "text-embedding-3-large",
                "options": []
            },
            "type": "@n8n\/n8n-nodes-langchain.embeddingsOpenAi",
            "typeVersion": 1.2,
            "position": [
                624,
                272
            ],
            "id": "b5678ee0-4c50-4516-9765-c2da82b97f05",
            "name": "Embeddings OpenAI",
            "credentials": {
                "openAiApi": {
                    "id": "XMEsLBYvPf9TQsy0",
                    "name": "OpenAi account"
                }
            }
        }
    ],
    "pinData": [],
    "connections": {
        "When chat message received": {
            "main": [
                [
                    {
                        "node": "n8n Builder",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "n8n": {
            "main": [
                [
                    {
                        "node": "Workflow Link",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "n8n Builder": {
            "main": [
                [
                    {
                        "node": "n8n",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Opus 4": {
            "ai_languageModel": [
                [
                    {
                        "node": "n8n Builder",
                        "type": "ai_languageModel",
                        "index": 0
                    }
                ]
            ]
        },
        "Embeddings OpenAI": {
            "ai_embedding": [
                [
                    {
                        "node": "Pinecone Vector Store",
                        "type": "ai_embedding",
                        "index": 0
                    }
                ]
            ]
        },
        "Pinecone Vector Store": {
            "ai_tool": [
                []
            ]
        }
    },
    "active": false,
    "settings": {
        "executionOrder": "v1"
    },
    "versionId": "44795457-493f-45db-b9fe-ca04634f05ea",
    "meta": {
        "templateCredsSetupCompleted": true,
        "instanceId": "a85fc6519b374e86e01063acbb733de8f006266ec78aa34c0f3dbebd8434a16e"
    },
    "id": "lBd1m8ukNkFLozfB",
    "tags": []
}