{
  "name": "Create a webhook-ready conversational assistant with Google Gemini and session memory",
  "nodes": [
    {
      "id": "a3a31971-a601-4a0a-a306-d5e63a7e33f5",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        920,
        -40
      ]
    },
    {
      "id": "921ac636-0297-4b7a-aeb1-6c68e9af6885",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        948,
        180
      ]
    },
    {
      "id": "afcdf33e-bce6-4b80-bfee-f6707e307a03",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        700,
        -40
      ]
    },
    {
      "id": "317a9c30-7651-47e1-b6aa-64ce4162aa16",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1296,
        -40
      ]
    },
    {
      "id": "5f0d884e-3a75-49f9-babb-22fff9fb8a87",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1068,
        180
      ]
    },
    {
      "id": "a5ff29b4-5a46-4716-bd3b-a29c40923e63",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -140
      ],
      "parameters": {
        "width": 280,
        "height": 440,
        "content": "## Webhook Entry Point\n\n**Receives requests from:**\n- Website chat widgets\n- Mobile apps\n- Third-party platforms\n- Custom integrations\n\n**Expected payload:**\n```json\n{\n  \"message\": \"user question\",\n  "
      }
    },
    {
      "id": "6799e102-74fe-49a3-8696-178143b5c7f7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        280
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "## AI Processing Core\n\n**Powered by Google Gemini 2.0 Flash**\n- Fast response times\n- Context-aware conversations\n- Natural language understanding\n- Maintains conversation history per session"
      }
    },
    {
      "id": "e299b1f8-c6e7-4816-878d-60d3ff8edf14",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        280
      ],
      "parameters": {
        "width": 180,
        "height": 340,
        "content": "## Session Memory\n\n**Conversation Context:**\n- Remembers previous messages\n- Maintains context per sessionId\n- Enables natural follow-up questions\n- Auto-manages conversation history"
      }
    },
    {
      "id": "b926b0ea-11d6-4773-83bd-ce12c7be40c1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        -140
      ],
      "parameters": {
        "width": 160,
        "height": 100,
        "content": "## Response Output\n\n**Returns structured response:**\n- AI-generated answer\n- Consistent formatting\n- Ready for frontend display\n- JSON format compatible"
      }
    },
    {
      "id": "456572e3-0abf-408d-a5ab-36cb0e2d5911",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -400
      ],
      "parameters": {
        "width": 300,
        "height": 320,
        "content": "## 🚀 AI Assistant Workflow\n\n**This workflow creates a conversational AI assistant that can be integrated anywhere:**\n\n✅ Website chat widgets\n✅ Mobile applications  \n✅ WhatsApp/Telegram bots\n✅ Custom d"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}