{
  "name": "🌐 Confluence page AI chatbot workflow",
  "nodes": [
    {
      "id": "f4761e1a-6430-4b3d-97f9-b91743e02ea6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -340
      ],
      "parameters": {
        "width": 633,
        "height": 974,
        "content": "## Confluence\nhttps://developer.atlassian.com/cloud/confluence/basic-auth-for-rest-apis/\nhttps://id.atlassian.com/manage-profile/security/api-tokens\nhttps://developer.atlassian.com/cloud/confluence/re"
      }
    },
    {
      "id": "b2865684-687e-45a9-bb0c-e78df4dda72e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -340
      ],
      "parameters": {
        "width": 768.3946456283678,
        "height": 381.59428876752247,
        "content": "## Using Rest API to GET Confluence Page Body\nhttps://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get\n\nRequest\nhttps://<your-wiki>.atlassian.net/wiki/api/v2/pages/{id"
      }
    },
    {
      "id": "2fae2b02-b15f-4226-86c2-f4444f10965e",
      "name": "Confluence Page Storage View",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        900,
        580
      ]
    },
    {
      "id": "49c5c6f7-f879-4518-aeef-922154f47ea6",
      "name": "HTML to Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        1100,
        580
      ]
    },
    {
      "id": "6ef64460-1406-43c9-9c5b-9d8ae3f51d31",
      "name": "gpt-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1260,
        760
      ]
    },
    {
      "id": "b8f998da-34b2-40d4-9816-b7a3ca33a3d9",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.manualChatTrigger",
      "position": [
        820,
        180
      ]
    },
    {
      "id": "8fcfb987-3ea1-43cd-804f-dc2d629e558e",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1400,
        760
      ]
    },
    {
      "id": "53fe680c-af07-4712-b3cd-ae853f19cf8a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        420
      ],
      "parameters": {
        "width": 1163,
        "height": 515,
        "content": "## Chatbot for Confluence Pages\n\n\n"
      }
    },
    {
      "id": "f37546a9-1b33-4276-9ea3-e461b53fe70a",
      "name": "Chat Response",
      "type": "n8n-nodes-base.set",
      "position": [
        1700,
        680
      ]
    },
    {
      "id": "c53f59bd-f0d9-4629-bf56-ca439ef9c7f5",
      "name": "Globals",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        180
      ]
    },
    {
      "id": "ee500c5b-9289-4636-8178-6235c0fe4080",
      "name": "Search By ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1300,
        180
      ]
    },
    {
      "id": "934f0c57-6184-4c85-a0dc-097b3c470be4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1020,
        80
      ],
      "parameters": {
        "width": 872,
        "height": 297,
        "content": "## Confluence Search By ID"
      }
    },
    {
      "id": "c51b8421-962d-46a1-aaf5-1b170252b7da",
      "name": "Page Schema",
      "type": "n8n-nodes-base.set",
      "position": [
        1700,
        180
      ]
    },
    {
      "id": "2c765cad-e488-44ad-98b6-6e0a2c575fd2",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1300,
        580
      ]
    },
    {
      "id": "a89508f9-fd88-4a9f-84da-a0ddef590e1b",
      "name": "Send Telegram Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1700,
        480
      ]
    },
    {
      "id": "dae8ae00-1552-4945-948e-2556dfdd8802",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1500,
        180
      ]
    }
  ],
  "connections": {
    "Globals": {
      "main": [
        [
          {
            "node": "Search By ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Chat Response",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Telegram Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Page Schema",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page Schema": {
      "main": [
        [
          {
            "node": "Confluence Page Storage View",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Search By ID": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML to Markdown": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confluence Page Storage View": {
      "main": [
        [
          {
            "node": "HTML to Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}