> ## Documentation Index
> Fetch the complete documentation index at: https://learn.getodin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Confluence to the Knowledge Base

> Sync Confluence pages and spaces with the Knowledge Base.

With the Confluence connector, you can bring pages, spaces, and documentation directly into the Knowledge Base. Once connected, Odin AI Platform keeps your Confluence content synced and fully searchable, making it accessible to your AI agents. This ensures that knowledge stored in Confluence is always up to date — empowering your team to retrieve answers, surface insights, and build workflows from your existing content.

## Connecting to Confluence

<Steps>
  <Step title="Open Project Settings">
    In your Odin AI Platform project, navigate to **Settings** in the sidebar.
  </Step>

  <Step title="Go to Connections">
    Select the **Connections** tab and find the **Confluence** tile under **Cloud Storage & Documentation**.
  </Step>

  <Step title="Open the Confluence popup">
    Click the **Confluence** tile. A popup appears with the option to sync your team's Confluence documentation into the Knowledge Base. Click **+ Add Connection**.
  </Step>

  <Step title="Choose a connection type">
    The **Choose Connection Type** popup appears. Select the option that matches your Confluence deployment:

    | Connection Type                    | Description                                                                                                                                 |
    | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
    | **Confluence Cloud**               | Connect via OAuth authentication. You will be redirected to Atlassian to authenticate and grant Odin AI Platform the necessary permissions. |
    | **Confluence On-Premise** *(Beta)* | Connect via server URL and token. You will be required to provide your **Confluence Server URL** and **Bearer Token**.                      |
  </Step>

  <Step title="Complete authentication">
    **Confluence Cloud**

    You will be redirected to Atlassian, where Odin AI requests access to your Atlassian account. Review the requested permissions and click **Accept** to complete the OAuth flow.

    **Confluence On-Premise**

    Enter your **Confluence Server URL** and **Bearer Token**, then click **Connect**.

    <Tip>
      You can generate a Bearer Token from your Confluence account settings.
    </Tip>
  </Step>

  <Step title="Verify the connection">
    Once authenticated, you will be returned to the Connections page. The **Confluence** tile will display a green dot and a count of your active Confluence connections.
  </Step>
</Steps>

<Check>You're now ready to sync pages from Confluence into the Knowledge Base!</Check>

## Adding Pages from Confluence

<Steps>
  <Step title="Navigate to KB Data">
    In your Odin AI Platform project, navigate to **Knowledge Base** > **KB Data**.
  </Step>

  <Step title="Add a new URL">
    Click **+ New** and select **URL Upload**.
  </Step>

  <Step title="Paste the Confluence URL">
    In the popup that appears, paste the URL of the Confluence space or page you want to add to the Knowledge Base.
  </Step>

  <Step title="Configure subpage extraction">
    After pasting the URL, the **Extract Subpages from URL** option will appear. Enable this option to also extract nested pages from the provided link. Disabling it will import only the page at the provided URL.
  </Step>
</Steps>

<Check>
  Once added, you'll receive a confirmation message. Confluence pages will appear in the Knowledge Base with their **page ID** as the document name.
</Check>
