A Slack frontend for AI agents on Amazon Bedrock AgentCore and AWS Lambda Web Functions.
Welt forwards conversations to your agent on AgentCore Runtime or Lambda Web Functions, and streams the reply back into the Slack thread.
You focus on the agent — model, tools, MCP, memory. Welt handles the Slack side — tokens, event intake, history fetch, streaming rendering, and uploading the files your agent generates.
The pieces line up like this:
Slack ⇄ Welt ⇄ AgentCore Runtime or Lambda Web Functions
└── your agent, using an adapter for Welt's JSON wire
Adapters exist for several agent frameworks, in Python, TypeScript, and Rust — see Agent-Side Adapters. The Quick Start below runs welt-io-strands's example agent.
The Quick Start runs everything on your machine — Welt in one terminal, the example agent in another. Nothing is deployed. You need a Slack workspace where you can install apps, uv, and AWS credentials with access to a Bedrock model, which the agent calls. Deployment comes after, once the conversation works — see Deployment.
- Go to https://api.slack.com/apps and create a new Slack app from
manifest.yml— or open the pre-filled creation screen to skip the copy and paste. Choose your workspace, then Next, Create and Install, and Allow. - On the screen that says the app is ready, open Your app credentials and copy the Bot token (
xoxb-...) and the App token (xapp-1-...). If you closed that screen, the bot token is under Install App and the app token under Basic Information > App-Level Tokens.
Clone this repository:
git clone https://github.com/iwamot/welt.git
cd weltThen save your Slack tokens in a .env file at the repository root (.env.sample lists all supported variables):
SLACK_APP_TOKEN=xapp-1-...
SLACK_BOT_TOKEN=xoxb-...With none of AGENT_ARN, AGENT_GATEWAY_URL and AGENT_URL set, Welt runs in local mode: it forwards conversations to the agent at http://localhost:8080.
Run Welt with uv:
uv run --env-file .env main.pyIt connects to Slack and waits. In local mode Welt itself needs no AWS credentials — the agent process is the one calling AWS.
In another terminal and another directory (the example downloads its own main.py, which would overwrite Welt's), run welt-io-strands's example agent by following its README's Run Locally section; it serves on http://localhost:8080, where Welt is pointing. (The other adapters' example agents work just as well here.)
Invite the bot to a channel (/invite @Welt) and mention it, or send it a DM. Welt streams the agent's reply into the thread; the example agent's README suggests things to try.
To continue the conversation, reply in that thread. A post outside it starts a new conversation with no history, in a DM too. In a channel, replies need no mention when the thread's first post mentions the bot; otherwise, mention it in each post.
The Quick Start keeps everything on your machine. For real use, the agent goes to AgentCore or AWS Lambda, and Welt goes somewhere it keeps running.
The agent is one of three things:
- Your own, on AgentCore Runtime. Build it on one of the adapters, with its example agent as the reference — deploying that example as it is makes a fine start — and deploy it; each example's README has a Deploy to AgentCore Runtime section.
AGENT_ARNis the agent runtime ARN. - A managed harness, with no agent code at all. Follow the AgentCore CLI setup to create one;
AGENT_ARNis its ARN. - Your own, served over HTTP anywhere else — on AWS Lambda Web Functions, for one.
AGENT_URLis its base URL; see Invoking an Agent by URL.
To invoke an agent on AgentCore directly, add AGENT_ARN to your .env file and restart Welt:
AGENT_ARN=arn:aws:bedrock-agentcore:...Welt now picks up your AWS credentials the standard SDK way, and that identity needs permission to invoke the target: bedrock-agentcore:InvokeAgentRuntime and bedrock-agentcore:InvokeAgentRuntimeForUser on a runtime agent (Welt sends the verified Slack user as the runtimeUserId), or bedrock-agentcore:InvokeHarness on a harness.
Routing a Runtime through an IAM-authenticated AgentCore Gateway is optional and uses AGENT_GATEWAY_URL; see Routing a Runtime through AgentCore Gateway.
Welt then goes to one of two places, whichever the agent is:
- Running Welt as a Resident Process — Socket Mode, so no public URL is involved. Runs as a container on ECS or any host you already have.
- Running Welt on AWS Lambda — no always-on process, no cost while idle. Slack reaches it at a Function URL.
How long one reply can run is the shorter of two limits, one on each side:
- Welt: on Lambda, the function's 15-minute timeout, the most Lambda allows; as a resident process, none of its own.
- The agent: on AgentCore Runtime, the 60-minute streaming maximum duration, which cannot be raised; a harness also stops at its own
timeoutSeconds(one hour by default); an agent served by URL, whatever its host allows — a Lambda Web Function request at most 900 seconds.
Separately, an agent that sends nothing for 60 seconds is treated as a stalled connection, wherever it runs.
Welt has no user allowlist: anyone who can DM the bot, or post in a channel it is in, reaches the agent, and so does anything that can send to its SQS queue, if one is set. The agent receives the verified Slack user as runtimeUserId, so per-user rules go there; a request from the queue carries none, since nobody Slack verified asked.
For releases that include a Lambda ZIP, download welt-lambda-*.zip and template.yaml from Assets in GitHub Releases. The ZIP filename includes the Python runtime version and Linux architecture. To download both assets for a specific Welt version, replace vX.Y.Z with that release's tag:
gh release download vX.Y.Z --repo iwamot/welt --pattern 'welt-lambda-*.zip' --pattern template.yamlTo deploy with a tool other than AWS SAM, read welt-lambda.json from the same release, so a deployment pinned to a Welt version follows its runtime without hard-coding it. The file is a JSON object with these string fields:
zip: the filename of the ZIP in the same releaseruntime: the Lambda runtime identifier, such aspython3.14architecture: the instruction set architecture,arm64orx86_64handler: the function handler inside the ZIP
See the Lambda guide for deployment steps.
- Files — file input from Slack uploads, and uploading the files your agent generates back into the thread.
- Interrupts — human-in-the-loop: a tool (or hook) that interrupts pauses the run and becomes buttons or a text field in the thread; the answer resumes it.
- Requests from Outside Slack — a job, an alarm or another agent asks through an Amazon SQS queue, and Welt answers in a channel without anyone mentioning it.
The wire between Welt and the agent is plain JSON, and the Wire Contract is its full specification. Each adapter maps the wire to one framework's types and carries its own example agent:
| Repository | Language | Framework | Package |
|---|---|---|---|
| welt-io-strands | Python | Strands Agents | welt-io-strands |
| welt-io-langgraph | Python | LangGraph | welt-io-langgraph |
| welt-io-openai-agents | Python | OpenAI Agents SDK | welt-io-openai-agents |
| welt-io-strands-ts | TypeScript | Strands Agents | @welt-io/strands |
| welt-io-mastra | TypeScript | Mastra | @welt-io/mastra |
| welt-io-openai-agents-ts | TypeScript | OpenAI Agents SDK | @welt-io/openai-agents |
| welt-io-strands-rs | Rust | Strands Agents | welt-io-strands |
Frameworks differ in what they can carry — for example, files the model generates itself, or custom questions and free-text answers — so check the limits in an adapter's README before choosing it.
Other stacks can implement the contract directly.
Optional environment variables, all with working defaults:
| Variable | Default | Description |
|---|---|---|
AGENT_ARN |
(unset) | The AgentCore Runtime agent — or managed harness — to invoke, as its own ARN or as one of its endpoints' (.../runtime-endpoint/<name>, .../harness-endpoint/<name>); an endpoint ARN selects that endpoint, and an ARN naming none invokes the DEFAULT endpoint. With this, AGENT_GATEWAY_URL and AGENT_URL all unset, Welt invokes the local agent at http://localhost:8080 for development. |
AGENT_GATEWAY_URL |
(unset) | IAM-authenticated Gateway target base URL, such as https://<gateway-id>.gateway.bedrock-agentcore.<region>.amazonaws.com/agent. Set it alone to POST to the Gateway without a Runtime ARN; also set AGENT_ARN to use the SDK endpoint-override mode. Both modes carry conversation turns and interrupt responses. See Gateway routing. |
AGENT_URL |
(unset) | The base URL of an agent served over HTTP outside AgentCore Runtime, such as on AWS Lambda. Welt POSTs conversation turns and interrupt responses to its /invocations. Cannot be combined with AGENT_ARN or AGENT_GATEWAY_URL. See Invoking an Agent by URL. |
AGENT_SIGV4_SERVICE |
(unset) | The service name to sign AGENT_URL requests for with SigV4, using Welt's AWS credentials. Set it with AGENT_SIGV4_REGION; leave both unset to send the requests unsigned. |
AGENT_SIGV4_REGION |
(unset) | The region to sign AGENT_URL requests for. Set it with AGENT_SIGV4_SERVICE. |
AGENT_MANAGES_HISTORY |
false |
What Welt sends per turn: the full thread history (false), or only the new messages (true). Set true only when your agent keeps its own history, which would otherwise hold each earlier turn twice. |
SQS_QUEUE_URL |
(unset) | Socket Mode only: the URL of an Amazon SQS FIFO queue to take requests from outside Slack from. See Requests from Outside Slack. On Lambda, deploy with QueueArn instead. |
FILE_INPUT_MODALITIES |
(unset) | Comma-separated modalities to accept from Slack uploads; unset disables file input. See Files. |
LOG_LEVEL |
INFO |
Logging level for Welt's own loggers, including those of cobito, the package that holds Welt's Slack side. |
DEPS_LOG_LEVEL |
INFO |
Logging level for dependency libraries (botocore, slack_bolt, ...). Separate from LOG_LEVEL because botocore logs credential material at DEBUG. |
SLACK_SECRET_ARN |
(unset) | On Lambda, the ARN of a Secrets Manager secret holding SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET as JSON keys. Welt reads it instead of those environment variables and reads it again after five minutes, so an edited secret takes effect within five minutes; a credential set in both places comes from the secret, with a warning. See Lambda. |
SLACK_STREAM_BUFFER_SIZE |
256 |
Markdown characters buffered before each streaming update; larger values mean fewer Slack API calls. |
Contributions are welcome! Please see our Contributing Guide for details.
- iwamot/collmbo — A Slack bot for chatting with 100+ LLMs directly, no AI agent to implement or deploy. Pick Collmbo for plain LLM chat, Welt for your own agent.
MIT
