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

# Confluence Integration

> Connect Confluence Cloud to Statisfy and sync whole Confluence spaces into Knowledge Base datasets, either dataset-wide or matched to accounts.

### Connect Confluence with Statisfy

The Confluence integration syncs pages from the Confluence Cloud spaces you choose into a Statisfy Knowledge Base dataset, so Stella and your agents can answer from that content. You pick whole spaces, and Statisfy imports every current page in them, at any depth.

**Prerequisites:**

* **Admin access** in Statisfy. Confluence is an org-level integration, connected once for your whole organization.
* An Atlassian account that can view the spaces you want to sync, on a Confluence Cloud site.

> [!WARNING]
>
> Statisfy imports every page the connected Atlassian account can view in the spaces you select. Confluence page restrictions aren't carried over into Statisfy, so any agent or assistant that uses the dataset can draw on those pages. Connect with an Atlassian account that sees only the content your agents may use.

### What gets synced

| Content | How it's synced |
| - | - |
| **Pages** | Every current page in each selected space, including nested pages at any depth, each as its own document named after the page title |
| **Spaces** | All spaces on your Confluence sites are available to select, except personal spaces |

If two pages in different spaces share a title, Statisfy adds the space key to the document name, for example `Overview (ENG)`.

### Steps to connect

1. **Log in to Statisfy.**

2. Open the **Integrations** page, select the **Admin Apps** tab, and click the **Confluence** card.

3. In the **Connect Confluence** dialog, click **Connect your account**. An Atlassian window opens.

4. Sign in to Atlassian, choose the Confluence site to share with Statisfy, and accept the access request.

5. When the window closes, you'll see "Successfully connected Confluence!" and the card shows as connected.

### Add a Confluence source to a KB dataset

1. Open **Knowledge Base** and create the dataset if it doesn't exist yet.

2. Open the dataset, click the **settings (gear)** icon to open the **Configure Dataset** dialog, then under **Connected Source** click **Connect Source** and choose **Confluence**.

3. Under **Select spaces**, search for and select the spaces to sync. Each space shows its space key, and its site name when you have more than one Confluence site.

4. For each selected space, choose a sync mode: **Global** or **Account-level** (see below).

5. Click **Add Source**, then save the dataset to start the sync.

> [!NOTE]
>
> If the Confluence option says "Please connect Confluence via Integrations", connect Confluence first (see above).

### Global vs account-level mode

**Global** (default): every page in the space is synced dataset-wide.

**Account-level**: each page is matched to a Statisfy account and indexed scoped to that account. Use this when a space holds pages per customer, such as account plans or meeting notes. Statisfy matches each page from its own title first, then from the titles of the pages above it, nearest first, and finally from the space name. For example, the pages under an "Acme" page, or every page in an "Acme" space, go to Acme. A page that doesn't match any account is skipped.

Then choose what to **Match against**:

| Option | How it matches |
| - | - |
| **Account Name (fuzzy match)** | Case-insensitive name match. Adjust the **Fuzzy match cutoff** (0.0–1.0, default 0.5). Higher values require closer matches |
| **Account Domain** | Exact match against the account's domain or alias domains |
| **CRM Account ID** | Exact match against the account's CRM ID |
| **Other custom field…** | Exact match against an account custom field you pick |

> [!TIP]
>
> Fuzzy matching on account name can match generic page titles to unrelated accounts. Raise the **Fuzzy match cutoff** if pages land on the wrong account.

A page that was already synced to an account keeps that account if it later stops matching, and it keeps receiving updates. Switching a space back to **Global** clears the account from its pages.

### Keeping content up to date

* Confluence sources refresh automatically once a day. Pages you've edited since the last sync are updated, and renamed pages get their new title.
* To sync right away, click the **refresh** icon on the Confluence source card in the dataset settings, or trigger a refresh from the dataset's detail page.
* Saving the dataset with added or removed spaces, or with a changed sync mode or matching, also starts a sync.

> [!WARNING]
>
> Removing content in Confluence doesn't remove it from Statisfy. Pages you delete or archive in Confluence, and spaces you remove from the dataset, keep their already-synced documents. Delete those documents from the dataset if you no longer want them used.

### Troubleshooting

> [accordion] The Confluence option says "Couldn't list spaces — click to retry"
>
> Statisfy is connected to Confluence, but Atlassian didn't return the list of spaces. Click the option to try again. If it keeps failing, reconnect Confluence from the **Admin Apps** tab under **Integrations**.

> [accordion] A saved space is marked "Not available"
>
> The connected Atlassian account can no longer see that space: it was deleted or archived, or the account lost access. The space stays selected so you can uncheck it, and its already-synced documents stay in the dataset.

> [accordion] Account-level pages are being skipped
>
> * Check that the page, a page above it, or the space is titled with a value that matches the **Match against** option.
> * For **Account Name**, try lowering the **Fuzzy match cutoff**.

### Need help?

If you face any challenges with the Confluence integration, please contact [support@statisfy.com](mailto:support@statisfy.com). Our team will assist you.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.