Artisan SVG > Webhook (webhook) (globe-2)
Artisan IMG > Slack (slack) (6632c308-2cd1-4f68-8128-e521e552a66b)
Artisan IMG > AWS Bedrock (aws-bedrock) (5a1f2dc4-52b2-418d-a8ae-99fbaebbc4fa)

Slack App Agent Deployment

Workflow
Universal
Artificial Intelligence
Beginner

This is a 'Workflow' template which means that it is a single standalone workflow.

Some workflow templates can be modified to work with other workflow templates - e.g. to convert a data sync between two services from uni-directional to bi-directional

Overview
Copy

Slack Apps offer a way to to deploy AI Agents directly into where you entire team already works. This is a simplified architecture that focuses on this use case for an app. It works out of the box with Amazon Bedrock as the AI provider, but you can substitute your preferred vendor.

All you need to get started is a Slack authentication and an credentials for your AI vendor. You can create a Slack app using our preconfigured manifest in minutes and then you have a naive (just using the raw "knowledge" of the model) AI Assistant in your Slack instance.

You can take this to the next level by calling your other AI Agents with your business knowledge and data (via Native RAG pipelines in the Tray platform) or AI Agents that can take actions in your systems.

If you need help reach out in the community in the #ai-help channel!

Set-up
Copy

Prefer a video walkthrough to help? Check out this loom.

  1. Import and enable the workflow

    1. Click the three dots next to the trigger, then copy the webhook URL of the Slack trigger (we will need this in a moment)

  2. Create the Slack App (you will need Slack Admin access or admin approval to get this working in your Slack instance)

    1. Go to the app admin part of Slack portal: https://api.slack.com/apps

    2. Create New App > From a manifest

      1. Copy the manifest from here

      2. Paste your webhook URL (from step 1) in the settings.event_subscriptions.request_url part of the payload on line 39

    3. Validate the Event Subscription

      1. Go to the Event Subscriptions part of your Slack App (left hand menu)

      2. Click verify near the URL

      3. Once verification is confirmed, SAVE YOUR CHANGES on this page

  3. Create the Slack Authentication and Custom OAuth App in Tray

    1. Go to one of the Slack steps in the workflow (this must be done from the properties panel inside the workflow on a Slack step)

    2. Create a NEW authentication

    3. Click on "Use own OAuth App"

    4. Give it a name and description (can't edit this later, be descriptive)

    5. Enter the details from your Slack App (under "Basic Information" part of your App in the Slack portal)

      1. App Secret >> Client Secret

      2. App Key >> Client ID

      3. Ignore "signing secrets" and hit create

    6. Add the scopes

      1. Scroll all the way down and enter the following in the "Extra permission scopes"

      2. assistant:write,im:history,chat:write,app_mentions:read,users:read,channels:history,groups:history,mpim:history

      3. (yes, some of these are in the list. It's just faster to paste them all in this field)

    7. Finish App Installation

      1. If you're an admin you can complete this part, if you are not you will need an admin to accept your request to install this app

      2. When the OAuth Dialogue closes, click Apply to update all the slack connector steps in the workflow with your new Auth

  4. You can now

    1. Talk with the App in public channels (only answers messages or threaded messages where it is tagged)

    2. Talk with the App in private channels or group messages where you have explicitly added the app (by tagging it)

    3. Talk with the App in agent threads (if you're on a paid plan and your admin has enabled these for you)

    4. Talk with the App from the dedicated app channel or DM with the app

Next Steps
Copy

A naive (ungrounded, only uses the inherent "knowledge" of a given model) Slack Chatbot is a great starting point, but this template and architecture is really just meant to get you to the next level.

Now you can deploy AI Agents (AI that can take actions and answer questions grounded in your business data and knowledge) through this same architecture. Just replace the Amazon Bedrock steps with calls to your Agent API.

If you need help reach out in the community in the #ai-help channel!