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

> ## Agent Instructions
> Orion is a collaborative analytics platform built by Gravity (bygravity.com). It connects to data warehouses like Snowflake, BigQuery, Databricks, Redshift, Athena, Fabric, PostgreSQL, and MySQL, and lets teams ask questions in natural language to get shared analyses, dashboards, reports, and slide decks. When referencing Orion features, always link to the relevant documentation page. Orion is not open-source; it is a commercial SaaS product accessed at runorion.com.

# External Wiki Integrations

> Import pages from Notion, Confluence, and GitHub directly into Orion's Knowledge Base — with one-time import or automatic daily sync to keep content up to date.

Connect external documentation sources to pull content directly into your Knowledge Base.

<CardGroup cols={3}>
  <Card>
    <div
      style={{
    display: "flex",
    alignItems: "center",
    gap: "10px",
    marginBottom: "6px",
  }}
    >
      <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/notion-logo.svg?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=b9ffa5c21b4f34d711c2defb9b5290ea" alt="" style={{ width: "32px", height: "32px", flexShrink: 0 }} width="800" height="800" data-path="images/wiki-integrations/notion-logo.svg" />

      <span
        style={{
      fontSize: "15px",
      fontWeight: "600",
      color: "var(--card-foreground, inherit)",
    }}
      >
        Notion
      </span>
    </div>

    <span style={{ fontSize: "13px" }}>
      Import pages and databases using a Notion integration token
    </span>
  </Card>

  <Card>
    <div
      style={{
    display: "flex",
    alignItems: "center",
    gap: "10px",
    marginBottom: "6px",
  }}
    >
      <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/confluence-logo.svg?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=20054f2b9cff75792c589874c9d57e36" alt="" style={{ width: "32px", height: "32px", flexShrink: 0 }} width="800" height="800" data-path="images/wiki-integrations/confluence-logo.svg" />

      <span
        style={{
      fontSize: "15px",
      fontWeight: "600",
      color: "var(--card-foreground, inherit)",
    }}
      >
        Confluence
      </span>
    </div>

    <span style={{ fontSize: "13px" }}>
      Browse spaces and pages using your Atlassian email and API token
    </span>
  </Card>

  <Card>
    <div
      style={{
    display: "flex",
    alignItems: "center",
    gap: "10px",
    marginBottom: "6px",
  }}
    >
      <img
        src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/github-logo.svg?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=2829c6f0ed553e993db9d9974c79359a"
        alt=""
        style={{
      width: "32px",
      height: "32px",
      flexShrink: 0,
      filter: "invert(1)",
    }}
        className="dark:invert"
        width="800"
        height="800"
        data-path="images/wiki-integrations/github-logo.svg"
      />

      <span
        style={{
      fontSize: "15px",
      fontWeight: "600",
      color: "var(--card-foreground, inherit)",
    }}
      >
        GitHub
      </span>
    </div>

    <span style={{ fontSize: "13px" }}>
      Import markdown, text, and Word files from any accessible repository
    </span>
  </Card>
</CardGroup>

## Adding an Integration

<iframe width="100%" height="400" src="https://www.loom.com/embed/8e8885f830604bf98edc119cc199a98d" frameBorder="0" allowFullScreen />

Integrations are managed by admins at the tenant level under **Configuration**.

1. Go to **Configuration** in the left-hand navigation
2. Select the **Knowledge Base** tab
3. Find the integration type (GitHub, Confluence, or Notion)
4. Click **+ Add connection** and enter your credentials
5. Save — Orion validates the connection before storing it

<Frame>
  <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=055f9707a84f2a74b50348af1cbc4600" alt="Configuration > Knowledge Base tab showing GitHub, Confluence, and Notion integrations with existing connections and Add connection buttons" data-og-width="1534" width="1534" data-og-height="1170" height="1170" data-path="images/wiki-integrations/add-integration.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?w=280&fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=c8cb0983a702316627d6fa513be4c0a9 280w, https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?w=560&fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=dd9c2bbf28fe4b1054b66a02c4c329d7 560w, https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?w=840&fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=4dba79e3e158e5c4b94a15e8eb6b7d88 840w, https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?w=1100&fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=1bb13926cb87ea3be5a086ad12dc77d8 1100w, https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?w=1650&fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=33ce85eb3dc1fce99ac2c0342eecfa30 1650w, https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/add-integration.png?w=2500&fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=5a6a7e4f7a2423215b926fbe09e2443b 2500w" />
</Frame>

Once connected, the integration appears in the list with the connection name and date. Each connection can be renamed (pencil icon), browsed (link icon), or deleted (trash icon).

<Note>
  Only admins can add integrations. Connected integrations are available to all
  users for browsing and importing content.
</Note>

***

## <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/notion-logo.svg?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=b9ffa5c21b4f34d711c2defb9b5290ea" alt="" style={{ width: '36px', height: '36px', display: 'inline', verticalAlign: 'middle', marginRight: '8px' }} width="800" height="800" data-path="images/wiki-integrations/notion-logo.svg" />Notion

### Setup

Create a [Notion internal integration](https://www.notion.so/my-integrations) for your workspace, then click **+ Add connection** next to Notion in **Configuration → Knowledge Base**:

1. Enter your **Integration Token** (starts with `secret_`)
2. Give the connection a name
3. Save — Orion validates the token before storing it

You must explicitly share each Notion page or database with the integration inside Notion before Orion can access it (**Share** → **Connections** → select your integration).

### What You Can Import

* **Pages** — Imported as markdown with full formatting preserved
* **Databases** — Rendered as markdown tables with all visible properties
* **Child pages** — Browse into a page to see nested child pages and sub-databases

### Browsing

The root level shows all pages and databases shared with your integration. Click into a database to see its rows, or into a page to see child pages.

<Tip>
  If a page isn't showing up, check that you've shared it with the integration
  in Notion's **Connections** settings.
</Tip>

***

## <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/confluence-logo.svg?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=20054f2b9cff75792c589874c9d57e36" alt="" style={{ width: '36px', height: '36px', display: 'inline', verticalAlign: 'middle', marginRight: '8px' }} width="800" height="800" data-path="images/wiki-integrations/confluence-logo.svg" />Confluence

### Setup

Generate a [Confluence API token](https://id.atlassian.com/manage-profile/security/api-tokens) from your Atlassian account, then click **+ Add connection** next to Confluence in **Configuration → Knowledge Base**:

1. Enter your **Base URL** (e.g. `https://yourcompany.atlassian.net`)
2. Enter the **Email** associated with your Atlassian account
3. Enter your **API Token**
4. Give the connection a name and save

### What You Can Import

* **Spaces** — Browse all available Confluence spaces
* **Pages** — Navigate root pages in a space, then drill into child pages
* **Page content** — HTML is automatically converted to markdown on import

### Browsing

The root level lists all spaces your token can access. Navigate into a space to see its root pages, then into each page to see children.

<Tip>
  Use a dedicated service account token rather than a personal token so the
  integration doesn't break if a user leaves the organization.
</Tip>

***

## <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/github-logo.svg?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=2829c6f0ed553e993db9d9974c79359a" alt="" style={{ width: '36px', height: '36px', display: 'inline', verticalAlign: 'middle', marginRight: '8px' }} className="dark:invert" width="800" height="800" data-path="images/wiki-integrations/github-logo.svg" />GitHub

### Setup

Create a [personal access token](https://github.com/settings/tokens) with `repo` scope (or `read:org` for organization repositories), then click **+ Add connection** next to GitHub in **Configuration → Knowledge Base**:

1. Enter your **Personal Access Token** (classic `ghp_` or fine-grained `github_pat_`)
2. Give the connection a name and save

### What You Can Import

Supported file types: `.md`, `.txt`, `.docx`

* **Repositories** — Browse all repos accessible to your token
* **Directories** — Navigate folder structures within a repo
* **Files** — Import individual markdown, text, or Word documents

### Browsing

The root level lists all repositories the token can access. Navigate into a repo to browse its directory structure and select files to import.

<Tip>
  Fine-grained personal access tokens (`github_pat_`) scoped to specific
  repositories are recommended over classic tokens for tighter security.
</Tip>

***

## Importing Content

Import from an external source when creating a new page in the Knowledge Base:

1. In the Knowledge Base, click **+** to create a new page
2. Select the **GitHub**, **Confluence**, or **Notion** tab at the top of the panel
3. Choose a connection from the dropdown (or click **+** to add a new one)
4. Browse the list of pages and select one — a preview loads on the right
5. Choose an import mode and click to import

<Frame>
  <img src="https://mintcdn.com/gravity-8db392ea/aCXh-HZHgdECaRSH/images/wiki-integrations/import-content.png?fit=max&auto=format&n=aCXh-HZHgdECaRSH&q=85&s=d71a8981329029e0e8b66e715557ead3" alt="Import panel showing the Notion tab selected with a connection picker, page list, and markdown preview with Read & Write and Sync Only options" width="2000" height="1438" data-path="images/wiki-integrations/import-content.png" />
</Frame>

### Import Modes

When importing, you choose how Orion handles the page going forward:

| Mode             | Behavior                                                                                                                        |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Read & Write** | Imports the content as a normal Knowledge Base page. You can edit it freely, and manually sync from the source at any time.     |
| **Sync Only**    | Keeps the page locked to the external source. Content updates automatically on a daily schedule — manual edits are not allowed. |

Use **Sync Only** when the source is the authoritative version and you want the Knowledge Base to always reflect it. Use **Read & Write** when you want to import once and then own the content in Orion.

## Syncing Pages

To refresh a **Read & Write** page with the latest content from its source:

1. Open the page in the Knowledge Base editor
2. Click **Sync** in the top toolbar
3. The page content is overwritten with the current version from the source

**Sync Only** pages update automatically — no manual action required.

<Note>
  Syncing overwrites the page content entirely. Any manual edits made since the
  last sync will be lost.
</Note>

## Managing Integrations

From **Configuration → Knowledge Base**, each connection has three actions:

* **Rename** (pencil icon) — change the display name of the connection
* **Browse** (link icon) — open the integration browser to import more content
* **Delete** (trash icon) — remove the connection. Pages already imported are kept, but they can no longer be synced.
