Confluence Integration
Confluence integration enables Annie to access your knowledge base, allowing it to search pages, retrieve documentation, and correlate incidents with existing runbooks, procedures, and historical knowledge.Setup Guide
The recommended way to connect is Connect with Atlassian (OAuth). One authorization covers both Confluence and Jira. You can still use an email + API token as a fallback.Option A: Connect with Atlassian (recommended)
- Go to the Anyshift integrations page
- Navigate to the Knowledge Base section
- Select Confluence
- Click Connect with Atlassian
- Sign in to Atlassian and approve access for your site
- You return to Anyshift with the connected site shown (for example, your company Atlassian domain)
Option B: Email + API token (fallback)
Use this if your organization prefers API tokens, or if OAuth is unavailable.- Go to the Anyshift integrations page
- Navigate to the Knowledge Base section
- Select Confluence
- Under the API token section, click Add
- Enter your Confluence Domain, Email, and API Token
- Click Save
Confluence Domain
Enter your Atlassian domain (e.g.,yourcompany.atlassian.net).
This is the same domain you use to access Confluence Cloud. For example, if you access Confluence at https://acme.atlassian.net/wiki, enter acme.atlassian.net.
user@company.com).
API Token
Anyshift supports both scoped and classic Atlassian API tokens. Prefer scoped tokens for least-privilege access. No admin configuration is required. Any Atlassian user can create a token and connect their Confluence instance. Scoped API token- Go to Atlassian API Token Management
- Click Create API token
- Select Scoped token type
- Enter a label (e.g., “Anyshift Confluence Integration”)
- Grant the following permissions:
- All
read:confluence-*scopes (content, spaces, users, props, etc.) search:confluence- Search Confluence content (required; this is not aread:*scope)read:me- Read your profile informationread:account- Read account information
- All
- Click Create
- Copy the token and paste it into Anyshift
- Go to Atlassian API Token Management
- Click Create API token
- Select Classic token type
- Enter a label (e.g., “Anyshift Confluence Integration”)
- Click Create
- Copy the token and paste it into Anyshift
Required Permissions
Annie performs read-only operations on your Confluence instance. Access follows the Atlassian account you authorize (OAuth) or the account tied to your API token. Your account needs access to:- View spaces
- View pages and their content
- Search content using CQL
How It Works
Once connected, Annie can leverage your Confluence instance during:- Incident Investigation: When analyzing an incident, Annie searches for related runbooks, troubleshooting guides, and architecture documentation to find relevant context
- Question Answering: When you ask about specific topics, Annie retrieves documentation directly from Confluence
- Correlation: Annie can correlate alerts and incidents with documented procedures, known issues, and operational playbooks
Example Use Cases
- “Search Confluence for the deployment runbook”
- “Find documentation about Redis failover procedures”
- “What does the architecture page say about the payment service?”
- “Search for post-incident reviews related to database outages”
CQL Query Examples
Annie can construct CQL queries automatically based on your questions:Supported Features
Annie can access the following Confluence data: Pages- Search pages using CQL or text search
- Get full page content (title, body, metadata)
- Navigate page hierarchies (parent/child pages)
- View space page trees
- View comments on pages
- Get labels applied to pages
- Access page version history
- Compare page versions (diffs)
- List attachments on pages
Space Scoping
You can optionally restrict which Confluence spaces Annie can access by specifying Allowed Spaces when configuring credentials. Enter a comma-separated list of Confluence space keys (e.g.,ENG,OPS,SRE). When configured:
- Searches are automatically scoped to the specified spaces
- Direct page access is restricted — Annie cannot fetch pages from spaces not in the list
- Space listings only show the allowed spaces
Security
- OAuth access and refresh tokens, and API tokens, are encrypted at rest using AWS KMS
- Anyshift only reads from your Confluence instance (no write operations)
- All communication uses HTTPS/TLS encryption
- Credentials are validated against Atlassian APIs when you connect
Troubleshooting
OAuth connect fails or returns an error
- Consent cancelled: Start again with Connect with Atlassian and approve access.
- Wrong Atlassian account: Sign out of Atlassian in the browser, then reconnect with the account that can see your Confluence site.
- Connection shows error status: Disconnect and reconnect with Atlassian so Anyshift can obtain a fresh grant.
”401 Unauthorized” or “Invalid credentials” error (API token)
This is usually caused by one of the following:-
Token missing required scopes (scoped tokens only): Ensure your scoped token has all
read:confluence-*scopes, plussearch:confluence(this is a separate scope, not covered byread:*),read:me, andread:account. - Email/token mismatch: Verify your email matches your Atlassian account email exactly.
- Expired or revoked token: Generate a new API token from your Atlassian account settings.
”No pages found” when searching
- Verify your account has permission to view the spaces being searched
- Check that the CQL query syntax is valid
- Ensure pages exist matching your search criteria
Connection timeout
- For API token setup, verify your Confluence domain is correct (e.g.,
yourcompany.atlassian.net) - Check that your Atlassian instance is accessible