Skip to content
UsecaseBoard
← All use cases
docsOpenAI

OpenAI cookbook: Slack bot with Agents API, persistent sessions, sandboxes

At a glance

Official Agents API cookbook: connect Slack threads to persistent agent sessions, workplace tools, and isolated sandboxes so workplace chat becomes a durable agent runtime. This workflow is listed under OpenAI, Slack, Agents-API, Sandbox, Builder.

Agents / tools
OpenAI Agents API, Slack

Building a tool for these workflows? See weekly rates.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

Wire Slack events to an Agents API session keyed by thread_ts. Load workplace tools in an isolated sandbox. Reply in-thread; keep session state across messages. Escalate to a human when the agent hits a high-risk tool.
Explore all →