AI Cloud Architect

Integrating Amazon Bedrock AgentCore with Slack

AWSHow-to by Salman Ahmed, Sergio Barraza and Ravi KumarAWS Artificial Intelligence Blog

In this post, we demonstrate how to build a Slack integration using AWS Cloud Development Kit (AWS CDK). You will learn how to deploy the infrastructure with three specialized AWS Lambda functions, configure event subscriptions properly to handle Slack’s security requirements, and implement conversation management patterns that work for many agent use cases.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to deploy with AWS CDK a serverless Slack bridge to an AgentCore agent, using three Lambda functions, SQS, and AgentCore Memory keyed on Slack thread timestamps.

Who it is for

Developers building Slack-based AI agents on Bedrock AgentCore who need signature checks, threaded memory and responses beyond Slack's 3-second timeout.

Key points

  • The sample uses a weather agent on Strands Agents with Amazon Nova Pro and AgentCore Gateway over MCP.
  • Session ID comes from the Slack thread timestamp and actor ID from the Slack user ID.
  • Setup takes about 10-15 minutes across three CDK stacks; a Slack app with bot scopes is required.