Prerequisites
- Access to Confluence Cloud or Data Center
- An API token with read access to the spaces you want to import
- The root page ID for your import (the top of the page tree)
Generating an API Token
Confluence Cloud:- Go to Atlassian Account Settings
- Click Create API token
- Give your token a label (e.g., “AGO Integration”)
- Copy the token immediately (you won’t be able to see it again)
- Go to your Confluence profile > Personal Access Tokens
- Click Create token
- Set expiration and permissions
- Copy the generated token
Finding Your Root Page ID
Navigate to the page you want as your root and look at the URL:123456789 is your page ID. You can also find it via the page’s ... menu > Page Information.
Setup Steps
1. Configure Confluence Credentials
In your AGO admin interface, go to Settings and configure your Confluence connection:2. Create a Knowledge Source
- Navigate to Knowledge > Sources > Create
- Select Confluence as the connector type
- Enter the Root Page ID — the starting page for recursive import
- Name your source (e.g., “Product Documentation”)
- Save and run a manual sync
3. Import Multiple Spaces
Create a separate source for each Confluence space or section. For example, create one source for “Product Docs” pointing to one root page, and another for “Engineering Wiki” pointing to a different root page.What Gets Imported
The connector processes each page through these steps:- Fetches HTML content from Confluence
- Converts emoticons to Unicode emojis (e.g.,
:)becomes 😊) - Converts HTML to Markdown (tables, lists, code blocks preserved)
- Downloads attachments if the page version changed
- Rewrites internal Confluence links to AGO documentation links
- Stores the page with its position in the hierarchy
Filtering
The connector imports all pages under the root page. To import only a specific section:- Set the root page ID to the top of that section instead of the entire space homepage
- Create separate sources for different sections you want to import independently
Best Practices
- Archive outdated pages in Confluence before importing
- Select a root page that represents the top of your documentation tree — avoid the space homepage if it includes unwanted sections
- Start with a small space to verify formatting before importing large ones
- Schedule regular syncs (daily or weekly) to keep content fresh
- For large spaces (500+ pages), split into multiple sources by section
Troubleshooting
Authentication failed
Authentication failed
- Verify your API token is correct and not expired
- Check the email address matches the token owner
- Ensure the user has read permission for the space
Page not found
Page not found
- Verify the root page ID is correct
- Check the page hasn’t been deleted or moved
Missing images or attachments
Missing images or attachments
- Verify the attachments are accessible to the API user
- Unchanged pages skip attachment re-download — trigger a full re-sync if needed
Formatting issues
Formatting issues
- Some Confluence macros don’t have a Markdown equivalent and may not convert cleanly
- Test with simpler page content first to isolate the issue
Broken internal links
Broken internal links
- Verify all linked pages were included in the import (they must be under the same root page)
Related
- Knowledge Connectors — All available connectors
- Knowledge Source Management — Managing sources
- Connect Notion — Similar setup for Notion
