[ad_1]
Amazon Q is a brand new generative AI-powered utility that helps customers get work executed. Amazon Q can develop into your tailor-made enterprise skilled and allow you to uncover content material, brainstorm concepts, or create summaries utilizing your organization’s knowledge safely and securely. You should utilize Amazon Q to have conversations, resolve issues, generate content material, achieve insights, and take motion by connecting to your organization’s info repositories, code, knowledge, and enterprise techniques. For extra info, see Introducing Amazon Q, a brand new generative AI-powered assistant (preview).
On this submit, we present you find out how to deliver Amazon Q, your small business skilled, to customers in Slack.
You’ll have the ability converse with Amazon Q utilizing Slack direct messages (DMs) to ask questions and get solutions based mostly on firm knowledge, get assist creating new content material resembling e-mail drafts, summarize hooked up recordsdata, and carry out duties.
You too can invite Amazon Q to take part in your crew channels. In a channel, customers can ask it questions in a brand new message, or tag it in an present thread at any level, to offer extra knowledge factors, resolve a debate, or summarize the dialog and seize the following steps.
Resolution overview
Amazon Q is amazingly highly effective. Take a look at the next demo—seeing is believing!
Within the demo, our Amazon Q utility is populated with a set of AWS whitepapers. You’ll be able to populate your personal Amazon Q enterprise skilled utility with your personal firm’s paperwork and data base articles, so it is going to be capable of reply your questions!
All the things you want is offered as open supply in our GitHub repo.
On this submit, we stroll you thru the method to deploy Amazon Q in your AWS account and add it to your Slack workspace. While you’re executed, you’ll surprise the way you ever managed with out it!
The next are a number of the issues it might do:
Reply to messages – In DMs, it responds to all messages. In channels, it responds solely to @mentions and responds in a dialog thread.
Render solutions containing markdown – This consists of headings, lists, daring, italics, tables, and extra.
Observe sentiment – It gives thumbs up and thumbs down buttons to trace person sentiment.
Present supply attribution – It gives references and hyperlinks to sources utilized by Amazon Q.
Perceive dialog context – It tracks the dialog and responds based mostly on the context.
Keep conscious of a number of customers – When it’s tagged in a thread, it is aware of who mentioned what, and when, so it might contribute in context and precisely summarize the thread when requested.
Course of hooked up recordsdata – It may course of as much as 5 hooked up recordsdata for doc query answering, summaries, and extra.
Begin new conversations – You’ll be able to reset and begin new conversations in DM channels through the use of /new_conversation.
Within the following sections, we present find out how to deploy the undertaking to your personal AWS account and Slack workspace, and begin experimenting!
Stipulations
It’s worthwhile to have an AWS account and an AWS Identification and Entry Administration (IAM) position and person with permissions to create and handle the mandatory assets and parts for this utility. For those who don’t have an AWS account, see How do I create and activate a brand new Amazon Net Companies account?
You additionally have to have an present, working Amazon Q enterprise skilled utility. For those who haven’t set one up but, see Creating an Amazon Q utility.
Lastly, you want a Slack account and entry to create and publish apps to your Slack group. For those who don’t have one, see if your organization can create a Slack sandbox group so that you can experiment, or go to slack.com to create a free Slack account and workspace.
Deploy the answer assets
We’ve offered pre-built AWS CloudFormation templates that deploy every thing you want in your AWS account.
For those who’re a developer and also you need to construct, deploy, or publish the answer from code, consult with the Developer README.
Full the next steps to launch the CloudFormation stack:
Log in to the AWS Administration Console.
Select one of many following Launch Stack buttons on your desired AWS Area to open the AWS CloudFormation console and create a brand new stack.
Area
Launch Stack
N. Virginia (us-east-1)
Oregon (us-west-2)
For Stack identify, enter a reputation on your app (for instance, AMAZON-Q-SLACK-GATEWAY).
For AmazonQAppId, enter your present Amazon Q utility ID (for instance, 80xxxxx9-7xx3-4xx0-bxx4-5baxxxxx2af5). You’ll be able to copy it from the Amazon Q console.
For AmazonQRegion, select the Area the place you created your Amazon Q utility (us-east-1 or us-west-2).
For AmazonQUserId, enter an Amazon Q person ID e-mail tackle (go away clean to make use of a Slack person e-mail because the person ID).
For ContextDaysToLive, enter the size of time to maintain dialog metadata cached in Amazon DynamoDB (you possibly can go away this because the default).
When your CloudFormation stack standing is CREATE_COMPLETE, select the Outputs tab, and preserve it open—you’ll want it in later steps.
Create your app
Now you possibly can create your app in Slack. Full the next steps:
Create a Slack app in https://api.slack.com/apps from the generated manifest—copy and paste from the stack output: SlackAppManifest.
Select App Dwelling within the navigation pane and scroll right down to the part Present Tabs.
Allow Messages Tab.
Choose Enable customers to ship Slash instructions and messages from the messages tab.
This can be a required step to allow your person to ship messages to your app.
Add your app in your workspace
Now you possibly can add your app in your workspace. That is required to generate the bot person OAuth token worth that’s wanted within the subsequent step.
Go to OAuth & Permissions (in https://api.slack.com) and select Set up to Workspace to generate the OAuth token.
In Slack, go to your workspace.
Select your workspace identify, Settings & administration, and Handle apps.
Select your newly created app.
In the best pane, select Open in App Listing.
Select Open in Slack.
Configure Slack secrets and techniques in AWS Secrets and techniques Supervisor
Let’s configure your Slack secrets and techniques to be able to confirm the signature of every request and submit on behalf of your Amazon Q bot.
On this instance, we’re not enabling Slack token rotation. You’ll be able to allow it for a manufacturing app by implementing rotation through AWS Secrets and techniques Supervisor. Create a difficulty (or, higher but, a pull request) within the GitHub repo if you’d like this function added to a future model.
Full the next steps to configure a secret in Secrets and techniques Supervisor:
On the AWS CloudFormation console, navigate to your stack Outputs tab and select the hyperlink for SlackSecretConsoleUrl to be redirected to the Secrets and techniques Supervisor console.
Select Retrieve secret worth.
Select Edit.
Exchange the values of SlackSigningSecret and SlackBotUserOAuthToken utilizing the values within the Slack utility configuration beneath Fundamental Data and OAuth & Permissions.
Watch out you don’t unintentionally copy Shopper Secret as a substitute of Signing Secret.
Begin utilizing Amazon Q
Full the next steps to begin utilizing Amazon Q in Slack:
Open your Slack workspace.
Underneath Apps, Handle, add your new Amazon Q app.
Optionally, add your Amazon Q app to crew channels.
Within the app DM channel, enter Good day.
You’ve now deployed a robust new AI assistant into your sandbox Slack atmosphere.
Play with it, attempt all of the options mentioned on this submit, and replica the stuff you noticed within the demo video. Most significantly, you possibly can ask about matters associated to the paperwork that you’ve got ingested into your personal Amazon Q enterprise skilled utility. However don’t cease there. You’ll find extra methods to make it helpful, and while you do, tell us by posting a remark.
As soon as you’re satisfied how helpful it’s, discuss to your Slack admins (and present them this submit) and work with them to deploy it in your organization’s Slack workspaces. Your fellow staff will thanks!
Clear up
While you’re completed experimenting with this resolution, delete your app in Slack (https://api.slack.com/apps) and clear up your AWS assets by opening the AWS CloudFormation console and deleting the AMAZON-Q-SLACK-GATEWAY stack that you just deployed. This deletes the assets that you just created by deploying the answer.
Conclusions
This pattern Amazon Q slack utility mentioned on this submit is offered as open supply—you should use it as a place to begin on your personal resolution, and assist us make it higher by contributing again fixes and options through GitHub pull requests. Discover the code, select Watch within the GitHub repo to be notified of latest releases, and test again for the newest updates. We’d additionally love to listen to your recommendations for enhancements and options.
For extra info on Amazon Q, consult with What’s Amazon Q (For Enterprise Use)?
In regards to the Authors
Gary Benattar is a Senior Software program Growth Supervisor in AWS HR. Gary began at Amazon in 2012 as an intern, specializing in constructing scalable, real-time outlier detection techniques. He labored in Seattle and Luxembourg and is now based mostly in Tel Aviv, Israel, the place he dedicates his time to constructing software program to revolutionize the way forward for Human Sources. He co-founded a startup, Zengo, with a give attention to making digital wallets safe via multi-party computation. He acquired his MSc in Software program Engineering from Sorbonne College in Paris.
Bob Strahan is a Principal Options Architect within the AWS Language AI Companies crew.
[ad_2]
Source link