Skip to content

Confluence Cloud Connector

Specifications

Type of Repository Cloud
Supported API version REST API v1
Extractive Model for Answers Knowledge Articles
Generative Model for Answers Knowledge Articles
Note: Only manually created Knowledge articles are supported. Searching through any other types of uploaded content like PDF files, docs, and images is not supported.

Authorization Support

Search AI uses the OAuth 2.0 authorization code grant type to access the resources on the Confluence Cloud.

Integration Steps

To integrate SearchAI with Confluence Cloud, you need to take the following actions.

  • Create an OAuth 2.0 integration on the Atlassian developer portal.
  • Configure the connector in Search AI with the OAuth 2.0 credentials.

Configuring OAuth application on Confluence Cloud

Prerequisites

To create an OAuth 2.0 integration on the Confluence cloud, you need the following:

  • An admin account in Atlassian’s Confluence.
  • A target domain.

Configuration Steps

Sign into your developer account in the Atlassian developer portal. Click on the profile name at the top right corner and navigate to the Developer Console.

Confluence Home

The developer console will list all your apps.

Apps

Click the Create button and select OAuth 2.0 Integration.

Create App

Provide a name for the application and click Create.

Create App

Once the application is created, you can update its name and description from the Settings tab. You can also add an avatar for the application. Update the settings and click Save changes.

App Settings

Next, configure Authorization code grants to allow SearchAssist to access data. To do so, go to the Authorization tab. Enter the SearchAI Callback URL provided to you and click Save changes. You can use one of the following callback URLs as per your region.

App Settings

The next step is to grant the necessary permissions. Go to the Permissions tab. Add the following scopes:

  • User Identity API
  • Confluence API

App Permissions

To add permissions to the User Identity API, click the config link.

App Permissions

On the following page, click the Edit Scopes button.

API Scope

Grant the following permissions and click Save.

  • Read:me
  • Read:account

API Scope

Similarly, for Confluence API, go to the Granular Scopes and click Edit Scopes. Add a read operation filter, select all the filtered permissions, and click Save.

API Scope

After adding permissions, go to Settings and find the Client ID and Secret at the end of the page. Save these fields as these will be used for configuring the SearchAI connector in the next step. Settings

You also need the Host URL in Confluence to configure the SearchAI Connector. To fetch this field, go to the Confluence home page and click on Profile.

Profile

Go to the Products tab.

Products

The host URL will be displayed at the bottom of the page.

Host URL

Configuring SearchAI Connector

Go to the Connectors tab under Sources and select Confluence Cloud connector. On the Authorization tab, enter the following fields for authentication.

Fields Description
Name Name for the connector
Authorization Type Set this to OAuth 2.0
Grant Type Set this to Authorization Code
Client ID Client ID of the OAuth application created on Confluence.
Client Secret Client secret generated for communication with Confluence.
Host URL The confluence server base URL (without trailing slash), as fetched from the Confluence Cloud.

Click Connect. This will initiate the authorization process. On successful authorization, it is marked as Connected. Note that authorization does not initiate content synchronization.

Content Ingestion

Go to the Configuration tab and select the content to be ingested. You can choose to sync all the content from the Confluence Cloud account or select specific content.

Content Ingestion

Content Filters

The connector allows you to set up rules to selectively ingest content from the application. To define such rules, select Sync Specific Content and click on the Configure link. The following page allows you to define rules for selecting the content. Each rule can be defined using a parameter, operator, and its values.

Content Filters

The Parameter field can take one of the following values. You can also add other CQL fields defined for your Confluence content. Refer to the complete list of supported fields here.

  • Ancestor: Affects the direct child pages/content and descendants of the given content IDs as value.
  • Content: Affects the content defined using content ID only.
  • Created: Affects the content with the given creation date. It takes Date as values in the following format “yyyy/mm/dd hh:mm”, “yyyy-mm-dd hh:mm”, “yyyy/mm/dd”, “yyyy-MM-dd”
  • Creator: Affects the content created by the User account IDs provided as values.
  • Label: Affects the content by its label.
  • Parent: Affects the content under a given parent.
  • ID: Affects the content based on its content ID.
  • Space: Affects the content based on the space that it is available in.
  • Title: Define the rule using the title of the pages
  • User: Define the rule using userId

The Operator field can take different values depending upon the parameter selected like equals to, not equals to, contains, etc.

The value field is used for providing the value as per the parameter.

For instance, you can choose all the pages and sub-pages under a given ancestor using the following rule.

Example

Similarly, to selectively ingest only the pages created or modified after Jan 1, 2024, you can configure the rule as shown below.

Example

Note:

  • You can define more than one condition to choose different types of content from the connector using the OR operator.
  • Every rule can have one or more conditions to select a subset of content using the AND operator. For example, to ingest the latest content created after Jan 1, 2024, and having the word ‘SearchAI’ in its title, define the rule as:

Example

Content Sync Schedule

You can trigger a manual sync or schedule an automatic sync operation for the connector to ingest content.

To perform a manual sync operation at any time, click the Sync Now button. This ingests all the updates from the Confluence Cloud account available at the time of synchronization.

Manual Sync

You can also set up automatic sync in the background at a specific time or at regular intervals. Regular sync ensures that the content in the Search AI application is always up to date and also saves time for an admin to perform manual sync. To enable automatic sync, enable the Schedule Sync option and select the date, time, and frequency of sync.

Scheduled Sync