Skip to main content
Use the Confluence Connector to ingest pages from Atlassian Confluence Cloud or Server/Data Center into the mAItion knowledge base.

What It Does

  • discovers pages via a space, a list of page IDs, a label, a CQL query, or a folder
  • converts each page to Markdown for indexing
  • optionally follows descendant pages when discovering by page IDs
  • runs ingestion on configurable schedules

Discovery Modes

Exactly one discovery mode must be set per source:

Authentication

Set one of the following. Username/password, API token, and bearer token auth are mutually exclusive with oauth2; cookies is the exception and may be combined with oauth2.
  • Cloud basic (username + api_token): email address and API token. Recommended for Confluence Cloud. Generate a token at id.atlassian.com/manage-profile/security/api-tokens.
  • Server basic (username + password): account username and password. For Confluence Server/Data Center.
  • Bearer token (api_token only): a Personal Access Token. For Server/Data Center; requires cloud: false.
  • OAuth2 (oauth2): an OAuth2 credentials dict (client_id, token) passed directly to the underlying reader.
  • Cookies (cookies): a session cookies dict, e.g. produced by atlassian.utils.parse_cookie_file(). Can be combined with oauth2.

Required Environment Variables

Set these in .env.rag:
  • CONFLUENCE1_BASE_URL: Confluence base URL (example: https://yoursite.atlassian.net/wiki)
  • CONFLUENCE1_USERNAME: Confluence username or email — required for basic auth
  • CONFLUENCE1_API_TOKEN: API token (Cloud basic auth) or Personal Access Token (Bearer auth) — mutually exclusive with CONFLUENCE1_PASSWORD
  • CONFLUENCE1_PASSWORD: Confluence password (Server basic auth) — mutually exclusive with CONFLUENCE1_API_TOKEN
  • CONFLUENCE1_SPACE_KEY: space key to ingest — set when using the space discovery mode
  • CONFLUENCE1_PAGE_IDS: comma-separated page IDs — set when using the page IDs discovery mode
  • CONFLUENCE1_PAGE_LABEL: page label — set when using the label discovery mode
  • CONFLUENCE1_CQL: CQL query — set when using the CQL discovery mode
  • CONFLUENCE1_FOLDER_ID: folder ID — set when using the folder discovery mode
  • CONFLUENCE1_SCHEDULES: ingestion interval in seconds (default is 3600)

config.yaml Example

Configuration Reference

Multiple Confluence Sources

Add more sources entries (confluence2, confluence3, etc) with separate env vars per source.