In this blog, we will discuss the technical steps involved in integrating the Amazon Q Business Application with a Slack Channel.
Step 1: Create Integration in Amazon Q
- Navigate to Amazon Q Business Applications.
- Click on the Business App where you need to integrate with Slack.
- Under Enhancements, click on Integrations.
- Click on “Add integration” from the integrations tab.
- You can create integrations with Slack and MS Teams.
- Click on the “+” icon next to Slack to launch the Slack integration page.
- On the “Add Slack integration” page, provide the name and description of your integration.
Under the Workspace section, provide the Slack workspace team ID starting with “T”. You can find this in the URL of the main page of your Slack workspace in the browser.
Example: https://app.slack.com/client/T0123456789
Select the “Create and use a new service role” radio button under “Service access” and “Access management access”.
- Click on “Add integration” once done.
Step 2: Deploy the Integration in Slack
- After completing Step 1, your integration status will change to “ready to deploy”.
- Open the integration and click on “Deploy integration” to start the integration with Slack.
- A pop-up will appear with a link for accessing Slack. This link is used for integration with Slack.
- Upon opening the link, it redirects to your Slack workspace and requests permissions to integrate with Slack. Upon providing confirmation in the Slack URL, it will start the integration, and you will receive a confirmation message once done.
- The Slack integration status in the Amazon Q integrations page will change to “deployed”.
- The Amazon Q app will automatically be available in the Slack channel under Apps.
Step 3: Using Amazon Q Application in Slack
- Access the Amazon Q app on the Slack channel and say "Hello".
- Amazon Q Business will reply, asking you to sign in.
- Click on the link, which redirects to the AWS login page.
- Log in with your Amazon Q user with an “Amazon Q Business Pro” license. • Note: Please ensure you have a confirmed identity source in the “IAM Identity Center” for this authentication to work.
- After signing in, I asked the bot some questions but received the following error: • “There was an error processing your Amazon Q Business chat. Error from Q Business: No retriever is in a valid state. (Service: QBusiness, Status Code: 409, Request ID:...)”
- I realized that I hadn’t configured a data source for my Amazon Q Business App, hence the error.
- I went back and integrated my S3 bucket as the data source. You can add multiple data sources to the Amazon Q Business App.
- After adding my data source to the Amazon Q Business App, it started giving me the right answers, as shown in the screenshot below.
I hope this blog is informative and gives you an idea of how to integrate the Amazon Q Business App with Slack. Please leave any questions or comments below.
Top comments (0)