> For the complete documentation index, see [llms.txt](https://docs.spara.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spara.com/integrations/document-sync-integrations/confluence.md).

# Confluence

How to sync Confluence pages to Spara for AI training.

Spara syncs pages from your Confluence Cloud workspace to train your AI agents. Synced pages are added to your [Knowledge](/build/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/settings/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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
