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.
OpenAI's SRE example ties an alert webhook to a persistent agent session and Slack thread, investigates bundled telemetry and code-change fixtures, and records rollback decisions without performing deployments.
An n8n agent searches a knowledge base and order history in parallel, uses GPT-4o-mini to classify and draft replies, emails resolvable tickets, and routes billing/refund/security cases to Slack with a draft (~$0.90/mo at 50 tickets/day).
Indie Hackers founder Sean Prentice used Claude Code to build an orchestrator + marketing director + specialist agents (content/ads/research) for his SaaS; outputs land in Slack and nothing posts or spends without his explicit say (~$10/mo self-use).