Index your Atlassian Confluence Cloud contents utilizing the Amazon Q Confluence Cloud connector for Amazon Q Enterprise
Amazon Q Business is a generative synthetic intelligence (AI)-powered assistant designed to boost enterprise operations. It’s a completely managed service that helps present correct solutions to customers’ questions whereas honoring the safety and entry restrictions of the content material. It may be tailor-made to your particular enterprise wants by connecting to your organization’s data and enterprise techniques utilizing built-in connectors to quite a lot of enterprise information sources. Amazon Q Enterprise allows customers in varied roles, corresponding to advertising and marketing managers, mission managers, and gross sales representatives, to have tailor-made conversations, resolve enterprise issues, generate content material, take motion, and extra, by an online interface. This service goals to assist make workers work smarter, transfer quicker, and drive important impression by offering fast and related data to assist them with their duties.
One such enterprise information repository you should utilize to retailer content material is Atlassian Confluence. Confluence is a crew workspace that gives a spot to create, and collaborate on varied tasks, merchandise, or concepts. Crew areas assist your groups construction, manage, and share work, so every person has visibility into the institutional information of the enterprise and entry to the knowledge they want or solutions to the questions they’ve.
There are two Confluence offerings:
- Cloud – That is supplied as a software program as a service (SaaS) product. It’s all the time on and repeatedly up to date.
- Data Center (self-managed) – Right here, you host Confluence in your infrastructure, which can be on premises or the cloud, permitting you to maintain information inside your chosen surroundings and handle it your self.
Your customers might must get solutions in Amazon Q Enterprise from the content material in Atlassian’s Confluence Cloud occasion as part of their work. For this you will have to configure an Amazon Q Confluence Cloud connector. As part of this configuration, one of many steps is to configure the authentication of the connector in order that it might probably authenticate with Confluence (Cloud) after which index the related content material.
This put up covers the steps to configure the Confluence Cloud connector for Amazon Q Enterprise.
Forms of paperwork
While you join Amazon Q to a knowledge supply, what Amazon Q considers—and crawls—as a document varies by connector. The Confluence Cloud connector crawls the next as paperwork:
- Areas – Every area is taken into account a single doc.
- Pages – Every web page is taken into account a single doc.
- Blogs – Every weblog is taken into account a single doc.
- Feedback – Every remark is taken into account a single doc.
- Attachments – Every attachment is taken into account a single doc.
Metadata
Each doc has structural attributes—or metadata—hooked up to it. Doc attributes can embrace data corresponding to doc title, doc creator, time created, time up to date, and doc sort.
While you join Amazon Q Enterprise to a knowledge supply, it robotically maps particular information supply document attributes to fields inside an Amazon Q Enterprise index. If a doc attribute in your information supply doesn’t have an attribute mapping already accessible, or if you wish to map extra doc attributes to index fields, use the {custom} area mappings to specify how an information supply attribute maps to an Amazon Q Enterprise index area. You create area mappings by modifying your information supply after your software and retriever are created.
To be taught extra in regards to the supported entities and the related reserved and {custom} attributes for the Amazon Q Confluence connector, confer with Amazon Q Business Confluence (Cloud) data source connector field mappings.
Authentication sorts
An Amazon Q Enterprise software requires you to make use of AWS IAM Identity Center to handle person entry. Though it’s beneficial to have an IAM Identification Heart occasion configured (with customers federated and teams added) earlier than you begin, it’s also possible to select to create and configure an IAM Identification Heart occasion to your Amazon Q Enterprise software utilizing the Amazon Q console.
You may also add customers to your IAM Identification Heart occasion from the Amazon Q Enterprise console, in case you aren’t federating identification. While you add a brand new person, be sure that the person is enabled in your IAM Identification Heart occasion and so they have verified their e mail ID. They should full these steps earlier than they’ll log in to your Amazon Q Enterprise internet expertise.
Your identification supply in IAM Identification Heart defines the place your customers and teams are managed. After you configure your identification supply, you’ll be able to lookup customers or teams to grant them single sign-on entry to AWS accounts, functions, or each.
You may have just one identification supply per group in AWS Organizations. You may select one of many following as your identification supply:
- IAM Identification Heart listing – While you allow IAM Identity Center for the primary time, it’s robotically configured with an IAM Identification Heart listing as your default identification supply. That is the place you create your customers and teams, and assign their degree of entry to your AWS accounts and functions.
- Lively Listing – Select this feature if you wish to proceed managing customers in both your AWS Managed Microsoft AD listing utilizing AWS Directory Service or your self-managed listing in Lively Listing (AD).
- Exterior Identification Supplier – Select this feature if you wish to handle customers in different external identity providers (IdPs) by the Safety Assertion Markup Language (SAML) 2.0 customary, corresponding to Okta.
Entry management lists
Amazon Q Enterprise connectors index entry management listing (ACL) data that’s hooked up to a Confluence doc together with the doc itself. For doc ACLs, Amazon Q Enterprise indexes the next:
- Person e mail tackle
- Group identify for the native group
- Group identify for the federated group
While you join a Confluence (Cloud) information supply to Amazon Q Enterprise, the connector crawls ACL (person and group) data hooked up to a doc out of your Confluence (Cloud) occasion. The data is used to find out which content material can be utilized to assemble chat responses for a given person, in accordance the end-user’s doc entry permissions.
You configure person and group entry to Confluence areas utilizing the area permissions web page, in Confluence. Equally for pages and blogs, you utilize the restrictions web page. For extra details about area permissions, see Space Permissions Overview on the Confluence Assist web site. For extra details about web page and weblog restrictions, see Page Restrictions on the Confluence Assist web site.
An Amazon Q Enterprise connector updates any adjustments in ACLs every time that your information supply content material is crawled. To seize ACL adjustments to be sure that the appropriate end-users have entry to the appropriate content material, re-sync your information supply recurrently.
Identification crawling for Amazon Q Enterprise Person Retailer
As acknowledged earlier, Amazon Q Enterprise crawls ACL data on the doc degree from supported information sources. As well as, Amazon Q Enterprise crawls and shops principal data inside every information supply (native person alias, native group, and federated group identification configurations) into the Amazon Q Enterprise Person Retailer. That is helpful when your software is linked to a number of information sources with completely different authorization and authentication techniques, however you wish to create a unified, access-controlled chat expertise to your end-users.
Amazon Q Enterprise internally maps the native person and group IDs hooked up to the doc, to the federated identities of customers and teams. Mapping identities streamlines person administration and hurries up chat responses by lowering ACL data retrieval time throughout chat requests. Identity crawling, together with the authorization function, helps filter and generate internet expertise content material restricted by end-user context. For extra details about this course of, see Understanding Amazon Q Business User Store.
The group and person IDs are mapped as follows:
- _group_ids – Group names are current on areas, pages, and blogs the place there are restrictions. They’re mapped from the identify of the group in Confluence. Group names are all the time lowercase.
- _user_id – Usernames are current on the area, web page, or weblog the place there are restrictions. They’re mapped relying on the kind of Confluence occasion that you simply’re utilizing. For Confluence Cloud, the _user_id is the account ID of the person.
Overview of resolution
With Amazon Q Enterprise, you’ll be able to configure a number of information sources to offer a central place to go looking throughout your doc repository. For our resolution, we reveal find out how to index a Confluence repository utilizing the Amazon Q Enterprise connector for Confluence. On this weblog we’ll:
- Configure an Amazon Q Enterprise Software.
- Join Confluence (Cloud) to Amazon Q Enterprise.
- Index the info within the Confluence repository.
- Run a pattern question to check the answer.
Conditions
Earlier than you start utilizing Amazon Q Enterprise for the primary time, full the next duties:
- Set up your AWS account.
- Optionally, install the AWS Command Line Interface (AWS CLI).
- Optionally, set up the AWS SDKs.
- Consider AWS Regions and endpoints.
- Set up required permissions.
- Enable and configure an IAM Identity Center instance.
For extra data, see Setting up for Amazon Q Business.
To arrange the Amazon Q Enterprise connector for Confluence, it’s essential full extra conditions. For extra data, see Prerequisites for connecting Amazon Q Business to Confluence (Cloud).
Create an Amazon Q Enterprise software with the Confluence Cloud connector
As step one in direction of making a generative AI assistant, you configure an software. Then you choose and create a retriever, and likewise join any information sources. After this, you grant end-user entry to customers to work together with an software utilizing the popular identification supplier, IAM Identification Heart. Full the next steps:
- On the Amazon Q Enterprise console, select Get began.
- On the Functions web page, select Create software.
- Enter a reputation to your software, choose the extent of service entry, and connect with IAM Identity Center. (Observe: The IAM Identification Heart occasion doesn’t need to be in the identical Area as Amazon Q Enterprise.)
- Select Create.
For extra particulars on configuring the Amazon Q software and connecting to IAM Identification Heart, confer with Creating an Amazon Q Business application environment.
- Choose your retriever and index provisioning choices.
- Select Subsequent.
For extra particulars on creating and choosing a retriever, confer with Creating and selecting a retriever for an Amazon Q Business application.
- Hook up with Confluence as your information supply.
- Enter a reputation and outline.
- Choose Confluence Cloud because the supply and enter your Confluence URL.
- There are two choices for Authentication: Primary authentication and OAuth 2.0 authentication. Choose the most suitable choice relying in your use case.
Earlier than you join Confluence (Cloud) to Amazon Q Enterprise, it’s essential create and retrieve the Confluence (Cloud) credentials you’ll use to attach Confluence (Cloud) to Amazon Q Enterprise. You additionally want so as to add any permissions wanted by Confluence (Cloud) to hook up with Amazon Q Enterprise.
The next procedures offer you an outline of find out how to configure Confluence (Cloud) to hook up with Amazon Q Enterprise utilizing both primary authentication or OAuth 2.0 authentication.
Configure Confluence (Cloud) primary authentication for Amazon Q Enterprise
Full the next steps to configure primary authentication:
- Log in to your account from Confluence (Cloud). Observe the username you logged in with. You’ll need this later to hook up with Amazon Q Enterprise.
- Out of your Confluence (Cloud) dwelling web page, be aware your Confluence (Cloud) URL out of your Confluence browser URL. For instance, https://instance.atlassian.internet. You’ll need this later to hook up with Amazon Q Enterprise.
- Navigate to the Security web page in Confluence (Cloud).
- On the API tokens web page, select Create API token.
- Within the Create an API token dialog field, for Label, add a reputation to your API token.
- Select Create.
- From the Your new API token dialog field, copy the API token and reserve it in your most popular textual content editor. You may’t retrieve the API token after you shut the dialog field.
- Select Shut.
You now have the username, Confluence (Cloud) URL, and Confluence (Cloud) API token it’s essential connect with Amazon Q Enterprise with primary authentication.
For extra data, see Manage API tokens for your Atlassian account in Atlassian Assist.
Configure Confluence (Cloud) OAuth 2.0 authentication for Amazon Q Enterprise
Full the next steps to configure Confluence (Cloud) OAuth 2.0 authentication:
- Retrieve the username and Confluence (Cloud) URL.
- Configure an OAuth 2.0 app integration.
- Retrieve the Confluence (Cloud) client ID and client secret.
- Generate a Confluence (Cloud) access token.
- Generate a Confluence (Cloud) refresh token.
- Generate a new Confluence (Cloud) access token using a refresh token.
Retrieve the username and Confluence (Cloud) URL
Full the next steps:
- Log in to your account from Confluence (Cloud). Observe the username you logged in with. You’ll need this later to hook up with Amazon Q Enterprise.
- Out of your Confluence (Cloud) dwelling web page, be aware your Confluence (Cloud) URL out of your Confluence browser URL. For instance, https://instance.atlassian.internet. You’ll need this later to each configure your OAuth 2.0 token and connect with Amazon Q Enterprise.
Configuring an OAuth 2.0 app integration
Full the next steps:
- Log in to your account from the Atlassian Developer page.
- Select the profile icon within the top-right nook and on the dropdown menu, select Developer console.
- On the welcome web page, select Create and select OAuth 2.0 integration.
- Below Create a brand new OAuth 2.0 (3LO) integration, for Identify, enter a reputation for the OAuth 2.0 software you’re creating. Then, learn the Developer Phrases, and choose I comply with be certain by Atlassian’s developer phrases checkbox, in case you do.
- Choose Create.
The console will show a abstract web page outlining the small print of the OAuth 2.0 app you created.
- Nonetheless within the Confluence console, within the navigation pane, select Authorization.
- Select Add so as to add OAuth 2.0 (3LO) to your app.
- Below OAuth 2.0 authorization code grants (3LO) for apps, for Callback URL, enter the Confluence (Cloud) URL you copied, then select Save adjustments.
- Below Authorization URL generator, select Add APIs so as to add APIs to your app. This can redirect you to the Permissions web page.
- On the Permissions web page, for Scopes, navigate to Person Identification API. Choose Add, then choose Configure.
- Below Person Identification API, select Edit Scopes, then add the next learn scopes:
- learn:me – View lively person profile.
- learn:account – View person profiles.
- Select Save and return to the Permissions web page.
- On the Permissions web page, for Scopes, navigate to Confluence API. Choose Add, after which choose Configure.
- Below Confluence API, be sure you’re on the Basic scopes tab.
- Select Edit Scopes and add the next learn scopes:
- learn:confluence-space.abstract – Learn Confluence area abstract.
- learn:confluence-props – Learn Confluence content material properties.
- learn:confluence-content.all – Learn Confluence detailed content material.
- learn:confluence-content.abstract – Learn Confluence content material abstract.
- learn:confluence-content.permission – Learn content material permission in Confluence.
- learn:confluence-user – Learn person.
- learn:confluence-groups – Learn person teams.
- Select Save.
- Navigate to the Granular scopes
- Select Edit Scopes and add the next learn scopes:
- learn:content material:confluence – View detailed contents.
- learn:content-details:confluence – View content material particulars.
- learn:space-details:confluence – View area particulars.
- learn:audit-log:confluence – View audit information.
- learn:web page:confluence – View pages.
- learn:attachment:confluence – View and obtain content material attachments.
- learn:blogpost:confluence – View weblog posts.
- learn:custom-content:confluence – View {custom} content material.
- learn:remark:confluence – View feedback.
- learn:template:confluence – View content material templates.
- learn:label:confluence – View labels.
- learn:watcher:confluence – View content material watchers.
- learn:group:confluence – View teams.
- learn:relation:confluence – View entity relationships.
- learn:person:confluence – View person particulars.
- learn:configuration:confluence – View Confluence settings.
- learn:area:confluence – View area particulars.
- learn:area.permission:confluence – View area permissions.
- learn:area.property:confluence – View area properties.
- learn:person.property:confluence – View person properties.
- learn:area.setting:confluence – View area settings.
- learn:analytics.content material:confluence – View analytics for content material.
- learn:content material.permission:confluence – Examine content material permissions.
- learn:content material.property:confluence – View content material properties.
- learn:content material.restriction:confluence – View content material restrictions.
- learn:content material.metadata:confluence – View content material summaries.
- learn:inlinetask:confluence – View duties.
- learn:process:confluence – View duties.
- learn:permission:confluence – View content material restrictions and area permissions.
- learn:whiteboard:confluence – View whiteboards.
- learn:app-data:confluence – Learn app information.
For extra data, see Implementing OAuth 2.0 (3LO) and Determining the scopes required for an operation in Atlassian Developer.
Retrieve the Confluence (Cloud) shopper ID and shopper secret
Full the next steps:
- Within the navigation pane, select Settings.
- Within the Authentication particulars part, copy and save the next in your most popular textual content editor:
- Shopper ID – You enter this because the app key on the Amazon Q Enterprise console.
- Secret – You enter this because the app secret on the Amazon Q Enterprise console.
You want these to generate your Confluence (Cloud) OAuth 2.0 token and likewise to attach Amazon Q Enterprise to Confluence (Cloud).
For extra data, see Implementing OAuth 2.0 (3LO) and Determining the scopes required for an operation within the Atlassian Developer documentation.
Generate a Confluence (Cloud) entry token
Full the next steps:
- Log in to your Confluence account from the Atlassian Developer page.
- Open the OAuth 2.0 app you wish to generate a refresh token for.
- Within the navigation pane, select Authorization.
- For OAuth 2.0 (3LO), select Configure.
- On the Authorization web page, underneath Authorization URL generator, copy the URL for Granular Confluence API authorization URL and reserve it in your most popular textual content editor.
The URL is within the following format:
- Within the saved authorization URL, replace the state=${YOUR_USER_BOUND_VALUE} parameter worth to any textual content of your alternative. For instance, state=sample_text.
For extra data, see What is the state parameter used for? within the Atlassian Assist documentation.
- Open your most popular internet browser and enter the authorization URL you copied into the browser URL.
- On the web page that opens, be certain all the things is appropriate and select Settle for.
You may be returned to your Confluence (Cloud) dwelling web page.
- Copy the URL of the Confluence (Cloud) dwelling web page and reserve it in your most popular textual content editor.
The URL accommodates the authorization code to your software. You’ll need this code to generate your Confluence (Cloud) entry token. The entire part after code= is the authorization code.
- Navigate to Postman.
For those who don’t have Postman put in in your native system, it’s also possible to select to make use of cURL to generate a Confluence (Cloud) entry token. Use the next cURL command to take action:
- If, nevertheless, you could have Postman put in, on the primary Postman window, select POST as the tactic, then enter the next URL: https://auth.atlassian.com/oauth/token.
- Select Physique, then select uncooked and JSON.
- Within the textual content field, enter the next code extract, changing the fields along with your credential values:
- Select Ship.
If all the things is configured accurately, Postman will return an entry token.
- Copy the entry token and reserve it in your most popular textual content editor. You’ll need it to attach Confluence (Cloud) to Amazon Q Enterprise.
For extra data, see Implementing OAuth 2.0 (3LO) within the Atlassian Developer documentation.
Generate a Confluence (Cloud) refresh token
The entry token you utilize to attach Confluence (Cloud) to Amazon Q Enterprise utilizing OAuth 2.0 authentication expires after 1 hour. When it expires, you’ll be able to both repeat the entire authorization course of and generate a brand new entry token, or generate a refresh token.
Refresh tokens are carried out utilizing a rotating refresh token mechanism. Every time they’re used, rotating refresh tokens points a brand new limited-life refresh token that’s legitimate for 90 days. Every new rotating refresh token resets the inactivity expiry time and allocates one other 90 days. This mechanism improves on single persistent refresh tokens by lowering the interval during which a refresh token could be compromised and used to acquire a sound entry token. For extra particulars, see OAuth 2.0 (3LO) apps within the Atlassian Developer documentation.
To generate a refresh token, you add a %20offline_access parameter to the tip of the scope worth within the authorization URL you used to generate your entry token. Full the next steps to generate a refresh token:
- Log in to your account from the Atlassian Developer page.
- Open the OAuth 2.0 app you wish to generate a refresh token for.
- Within the navigation pane, select Authorization.
- For OAuth 2.0 (3LO), select Configure.
- On the Authorization web page, underneath Authorization URL generator, copy the URL for Granular Confluence API authorization URL and reserve it in your most popular textual content editor.
- Within the saved authorization URL, replace the state=${YOUR_USER_BOUND_VALUE} parameter worth to any textual content of your alternative. For instance, state=sample_text.
For extra data, see What is the state parameter used for? within the Atlassian Assist documentation.
- Add the next textual content on the finish of the scope worth in your authorization URL: %20offline_access and replica it. For instance:
- Open your most popular internet browser and enter the modified authorization URL you copied into the browser URL.
- On the web page that opens, be certain all the things is appropriate after which select Settle for.
You may be returned to the Confluence (Cloud) console.
- Copy the URL of the Confluence (Cloud) dwelling web page and reserve it in a textual content editor of your alternative.
The URL accommodates the authorization code to your software. You’ll need this code to generate your Confluence (Cloud) refresh token. The entire part after code= is the authorization code.
- Navigate to Postman.
For those who don’t have Postman put in in your native system, it’s also possible to select to make use of cURL to generate a Confluence (Cloud) entry token. Use the next cURL command to take action:
- If, nevertheless, you could have Postman put in, on the primary Postman window, select POST as the tactic, then enter the next URL: https://auth.atlassian.com/oauth/token.
- Select Physique on the menu, then select uncooked and JSON.
- Within the textual content field, enter the next code extract, changing the fields along with your credential values:
- Select Ship.
If all the things is configured accurately, Postman will return a refresh token.
- Copy the refresh token and reserve it utilizing your most popular textual content editor. You’ll need it to attach Confluence (Cloud) to Amazon Q Enterprise.
For extra data, see Implementing a Refresh Token Flow within the Atlassian Developer documentation.
Generate a brand new Confluence (Cloud) entry token utilizing a refresh token
You should utilize the refresh token you generated to create a brand new entry token and refresh token pair when an current entry token expires. Full the next steps to generate a refresh token:
- Copy the refresh token you generated following the steps within the earlier part.
- Navigate to Postman.
For those who don’t have Postman put in in your native system, it’s also possible to select to make use of cURL to generate a Confluence (Cloud) entry token. Use the next cURL command to take action:
- Within the Postman most important window, select POST as the tactic, then enter the next URL: https://auth.atlassian.com/oauth/token.
- Select Physique from the menu and select uncooked and JSON.
- Within the textual content field, enter the next code extract, changing the fields along with your credential values:
- Select Ship.
If all the things is configured accurately, Postman will return a brand new entry token and refresh token pair within the following format: