{
  "name": "LOVABLE Chatbot Demo",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "cb8ad608-57e3-496e-a081-218676aa5572",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -144,
        -16
      ],
      "id": "070a98a4-3283-469a-a3e6-4a60e28498a0",
      "name": "Webhook",
      "webhookId": "cb8ad608-57e3-496e-a081-218676aa5572"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        16,
        192
      ],
      "id": "bea255b9-0efd-462e-8587-6f1db611f3d8",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "MzIepidaRw9ZqcPB",
          "name": "OpenAi account Credentials"
        }
      }
    },
    {
      "parameters": {
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Access-Control-Allow-Origin",
                "value": "*"
              },
              {
                "name": "Access-Control-Allow-Methods",
                "value": "POST, OPTIONS"
              },
              {
                "name": "Access-Control-Allow-Headers",
                "value": "Content-Type"
              }
            ]
          }
        }
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        352,
        -16
      ],
      "id": "ea9013bd-69d3-4849-99f3-d9610a37977e",
      "name": "Respond to Webhook"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.body }}",
        "options": {
          "systemMessage": "You are an ai prompt generator\nKeep every answer under 80 words.\nUse simple, direct language and examples like “If you use Gmail → add this node.”\nDon’t assume technical knowledge.\nBe calm, clear, and encouraging\nFormat it nicely.\nJust return the prompt -don't add any extra text."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        32,
        -16
      ],
      "id": "4646b10b-9b2e-4c4a-8206-04bf3d1d01cf",
      "name": "Prompt Generator"
    }
  ],
  "pinData": {},
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Prompt Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Prompt Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Generator": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "391eaf0e-eafb-4019-82c2-c1b62bbecaf1",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "4aabc0aa2e160dafa4f9d9bcedde563b5af29598cd16960f637ae2fb99aea720"
  },
  "id": "hTHuyCP65jCV82Tm",
  "tags": []
}