Only Confluence Cloud is supported. Confluence Data Center and its personal access tokens are not supported.
Prerequisites
- An account with read access to the spaces you want to import: an Atlassian service account (recommended) or a Confluence Cloud user
- A credential for that account
- The ID of the root page to import
Option A: Create a service account (recommended)
You need to be an organization admin in Atlassian Administration.- In Atlassian Administration, go to Directory > Service accounts and click Create a service account.
- Give it a name of 6 to 30 letters or digits, for example “AGOConfluence”, and give it access to Confluence.
- Open the service account and create an OAuth 2.0 credential with these scopes:
read:page:confluenceread:attachment:confluence
- Copy the client ID and the client secret. Atlassian shows the secret only once.
- In Confluence, give the service account permission to view the spaces you want to import, for example by adding it to a group that has access.
Option B: Create an API token for a user
- Sign in as the user AGO should read Confluence with. Use a dedicated account if you can.
- Go to Atlassian API tokens.
- Click Create API token and give it a label, for example “AGO”.
- Copy the token. Atlassian shows it only once.
Find the root page ID
Open the page you want as the root and look at its URL:123456789 is the page ID. You can also find it in the page’s … menu > Page Information.
Setup
1
Connect Confluence
Go to Knowledge > Sources > Connections > Confluence, enter your Confluence Base URL, for example
https://your-domain.atlassian.net, and choose an Authentication method:Click Test Connection, then Save Configuration. These credentials are shared by every Confluence source. To update a secret, enter the new one. Leave the field blank to keep the saved one.
2
Create a source
- Go to Knowledge > Sources and click Create New Source.
- Enter a name, for example “Product Documentation”, and select
confluenceas the Source Type. - Enter the Confluence Page ID of the root page.
- Click Save. You don’t need to enter an API key on the source.
3
Sync
Open the source and click Sync Source. AGO imports the root page and all its child pages, keeping the hierarchy.
What gets imported
- Page content, converted to Markdown (tables, lists and code blocks are kept)
- Confluence emoticons, converted to emoji
- Attachments, copied again only when the page version changes
- Links to other imported Confluence pages, rewritten to point to AGO, including pages from another Confluence source
Tips
- Choose a root page at the top of the section you need. Avoid the space homepage if it contains sections you don’t want.
- Archive outdated pages in Confluence before you import.
- Start with a small section to check formatting, then add more.
- Split very large spaces into several sources, one per section.
Troubleshooting
Authentication failed
Authentication failed
- Check the token or client secret is correct, has not expired and has not been revoked.
- For a service account, check its credential has the
read:page:confluenceandread:attachment:confluencescopes. Atlassian’s reason, such asscope does not match, is shown in the test result. - For an API token, check the email matches the account that owns the token.
- Check the account can read the space.
No Atlassian cloud ID
No Atlassian cloud ID
Service accounts connect through Atlassian’s API, which needs your site address. Enter your Atlassian Cloud site URL ending in
.atlassian.net, for example https://your-domain.atlassian.net.Page not found
Page not found
- Check the root page ID.
- Check the page has not been deleted or moved to a space the user can’t read.
Missing images or attachments
Missing images or attachments
- Check the user can open the attachments in Confluence.
- Attachments are copied again only when the page version changes. Edit the page, then sync again.
Formatting issues
Formatting issues
Some Confluence macros have no Markdown equivalent and may not convert cleanly. Test with a simpler page to find the macro causing the problem.
Broken internal links
Broken internal links
Links work only when the target page is imported too, under the same root or in another Confluence source. Import the missing page, then sync again.
Related
- Knowledge Connectors: all connectors
- Knowledge Source Management: managing sources
