Skip to main content

Confluence

Kapa provides an integration that enables pulling content from your Confluence knowledge base. This integration allows you to leverage existing documentation and organizational knowledge stored in Confluence to power your AI assistant with accurate, up-to-date information.

Prerequisites

  • A Confluence instance (cloud or enterprise)
  • User credentials with access to the desired workspace
  • API token for authentication

Data ingested

When you connect Kapa to Confluence, the following data is ingested:

  • Page URLs
  • Page hierarchy (breadcrumbs)
  • Page IDs, titles and content

Setup

Step 1: Give Kapa access to your Confluence

To authenticate Kapa with your Confluence instance, provide the following credentials:

  1. Confluence URL: Your enterprise domain in the format https://companyname.atlassian.net
  2. Username: A user account with access to the workspace (typically an email address)
  3. API Token: Generate a token following the instructions in the FAQ section

Step 2: Configure filtering options

Configure which pages Kapa should ingest using the available filtering options:

  1. Select which spaces and pages to include or exclude
  2. Set date ranges for content freshness
  3. Apply additional filters as needed to focus on relevant content

Configuration options

The following configuration options are available for the Confluence integration:

OptionDescriptionDefaultRequired
Confluence URLYour Confluence instance URL (e.g., https://companyname.atlassian.net)NoneYes
UsernameUsername or email with access to the workspaceNoneYes
API TokenAuthentication token for API accessNoneYes
Last updated afterOnly fetch pages updated after this dateAll timeNo
Spaces IncludeOnly include the selected Confluence Spaces and their pagesAll spacesNo
Spaces ExcludeExclude the selected Confluence Spaces and their pagesNoneNo
Pages IncludeOnly include the specifically selected pagesAll pagesNo
Pages ExcludeExclude the specifically selected pagesNoneNo
Pages Include With ChildrenOnly include the selected pages and their sub-pagesNoneNo
Pages Exclude With ChildrenExclude the selected pages and their sub-pagesNoneNo

Best practices

  • Focus on quality content: Include spaces with well-maintained documentation
  • Exclude outdated materials: Use date filters to ensure information relevance
  • Consider page hierarchy: Include parent pages with their children for complete context
  • Start specific, then expand: Begin with core documentation spaces, then add more as needed

Troubleshooting

  • Authentication errors: Verify your API token is valid and hasn't expired
  • Empty content: Some pages may appear to have little or no content if they primarily use macros
  • Access denied: Ensure the user account has appropriate permissions for the spaces you're trying to access

FAQ

How to create a Confluence API token?

You need to generate an API token within Atlassian to grant Kapa access to your Confluence.

To create an API token from your Atlassian account:

  1. Log in to https://id.atlassian.com/manage-profile/security/api-tokens
  2. Click Create API token
  3. From the dialog that appears, enter a memorable and concise Label for your token and click Create
  4. Click Copy to clipboard, then paste the token to your script, or elsewhere to save:

API Token

note

For security reasons it isn't possible to view the token after closing the creation dialog; if necessary, create a new token.

More information can be found on Atlassian's Support page.

Why does Kapa exclude macros when ingesting from Confluence?

When reviewing pages ingested by Kapa from Confluence, you may notice that some pages appear to have little or no content. This is because Kapa is excluding macros when ingesting pages. Confluence macros are dynamic elements that use JavaScript to render content when a page is viewed in a web browser. However, when Kapa accesses page content via the Confluence API, it receives only the raw page data. This raw data doesn't include the rendered output of these macros and hence Kapa is forced to drop macros.