> For the complete documentation index, see [llms.txt](https://epsilla-inc.gitbook.io/epsilladb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://epsilla-inc.gitbook.io/epsilladb/knowledge-base/confluence.md).

# Confluence

The **Confluence** data source in Epsilla enables users to connect and retrieve documents directly from Confluence spaces or specific pages. This type of data source is ideal for teams managing knowledge bases, project documentation, or internal resources in Confluence.

### Select Knowledge Base Type

Choose **Confluence** to continue.

<figure><img src="/files/4pX3hNXZB2X77sf5le8s" alt="" width="325"><figcaption></figcaption></figure>

### **Knowledge Base Name**

Provide a **Knowledge Base Name**. A valid name should start with a letter or `_`, and can contain only letters, digits, underscores, and whitespaces. Example: `MyConfluenceDocs`.

<figure><img src="/files/LggSU7TraCCHjGBFYylz" alt="" width="563"><figcaption></figcaption></figure>

### **Configure Confluence Connection**

Fill in the required fields to connect your Confluence instance:

* **Base URL**: The URL of your Confluence instance (e.g., `https://yourcompany.atlassian.net/wiki`).
* **Token**: A Confluence API token generated for your account. To access your Confluence API token, log in to your Atlassian account, navigate to your profile settings, and select "Create and manage API tokens" under the Security section; you can then generate a new API token there.
* **User Name**: The email associated with your Confluence account.

<figure><img src="/files/D9XuyyWJPTz0GLQuPF7P" alt="" width="563"><figcaption></figcaption></figure>

### **Load Data from Confluence**

There are two options for specifying the data to load from Confluence:

1. **Space Key**: Provide the key of the Confluence space to load all pages from that space.
2. **Page IDs**: Specify individual page IDs to load only selected pages. If page IDs provided, the space key will be ignored.

<figure><img src="/files/AYu4zhvsmipULK2flqWy" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/KG9GeyucfiUSsaQfb9ie" alt="" width="563"><figcaption></figcaption></figure>

To add multiple page IDs:

* Click **Add Multiple Page IDs**, enter the page IDs separated by new lines, and click **Add**.

<figure><img src="/files/P3A5wR8X3xExUK641Pqw" alt="" width="375"><figcaption></figcaption></figure>

### Data Processing

Once the connection details are entered, click **Create**:

Epsilla will automatically process the pages. During this process, the platform loads, chunks, and embeds the documents into vectors for efficient retrieval. You can monitor the progress of data processing in real-time:

<figure><img src="/files/NIjPbHr8L0X1sIL5OlOD" alt="" width="563"><figcaption></figcaption></figure>

After the data is processed, the list of pages imported from **Confluence** will be visible in the **Loaded Pages** section. Pages that are ready for use will be marked as **Ready**, while those still processing will show a status of **Processing data**.

<figure><img src="/files/mGvGF7IDNgsOUCJkx2u1" alt="" width="563"><figcaption></figcaption></figure>

You can update or edit your Confluence configuration by navigating to the **Data Sources** tab under your knowledge base.


---

# 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 dynamically by asking a question.

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

```
GET https://epsilla-inc.gitbook.io/epsilladb/knowledge-base/confluence.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
