# Confluence

Spara syncs pages from your Confluence Cloud workspace to train your AI agents. Synced pages are added to your [Knowledge](/platform/knowledge.md) base, giving agents the context they need to answer questions about your products, processes, and internal documentation.

## Setup

{% stepper %}
{% step %}

#### Connect Confluence

Navigate to [**Settings > Integrations**](https://app.spara.co/organization/integrations) and click **Connect** next to Confluence. Complete the Atlassian OAuth flow to authorize Spara to access your Confluence instance.
{% endstep %}

{% step %}

#### Select pages and spaces

After connecting, use the file picker to browse your Confluence spaces, folders, and pages. Select the content you want to sync. You can select entire spaces or folders to sync all pages within them.
{% endstep %}

{% step %}

#### Pages sync automatically

Spara periodically syncs your selected content, picking up new pages and changes automatically. Page content is extracted as plain text and added to your Knowledge base.
{% endstep %}
{% endstepper %}

## Supported content

| Content type              | Supported |
| ------------------------- | --------- |
| Confluence pages          | Yes       |
| Folders and nested pages  | Yes       |
| Spaces (all pages within) | Yes       |
| Attachments               | No        |
| Comments                  | No        |

## How syncing works

* **Periodic sync** — Spara re-scans your selected spaces and folders on a regular interval to detect new and updated pages
* **HTML to text** — Confluence page content is stored as HTML internally. Spara extracts the plain text content for AI training, stripping out formatting markup
* **Space hierarchy** — Confluence's space and folder structure is preserved in the Spara Knowledge UI

## FAQ

### Which version of Confluence does Spara support?

Spara supports **Confluence Cloud** (hosted at `*.atlassian.net`). Confluence Data Center (self-hosted) is not supported.

### Can I sync from multiple spaces?

Yes. The file picker shows all spaces in your Confluence instance. You can select pages from any combination of spaces.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spara.com/integrations/document-sync-integrations/confluence.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
