---
id: 8928
lang: en
title: "How to Embed an AI Agent in Slack: An AWS CDK + Lambda Template"
published_at: "2026-05-02 20:18:08"
source_name: "AWS Machine Learning Blog"
source_url: "https://aws.amazon.com/blogs/machine-learning/integrating-amazon-bedrock-agentcore-with-slack/"
canonical_url: "https://news.hamidun.com/en/news/8928"
categories: ["autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# How to Embed an AI Agent in Slack: An AWS CDK + Lambda Template

> **Краткая суть (BLUF):** AWS has walked through a practical integration of Amazon Bedrock AgentCore with Slack. The example uses AWS CDK, three dedicated Lambda functions, and an SQS queue to stay within Slack's response-time limits.  The walkthrough also shows how to store conversation context with AgentCore Memory and map sessions to Slack threads. Teams can reuse the same template for other enterprise AI agents.

AWS has shown how to embed an AI agent built on Amazon Bedrock AgentCore directly in Slack, so teams don't have to write a new integration from scratch for every agent.

### Which AWS services do you need to connect an AI agent to Slack?
The infrastructure layer consists of API Gateway (for Slack webhooks), AWS Lambda (for event processing), Secrets Manager (for token storage), and Amazon SQS (for asynchronous processing). The agent itself runs on Amazon Bedrock AgentCore.

### How do you preserve conversation context in a Slack integration?
In this setup, Amazon SQS separates receiving a request from actually processing it. That lets Lambda handle events asynchronously and preserve conversation context.

---
- **Первоисточник:** [AWS Machine Learning Blog](https://aws.amazon.com/blogs/machine-learning/integrating-amazon-bedrock-agentcore-with-slack/)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/8928
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
