Host agents as Slack Applications.
cookbook/agent_os/interfaces/slack/README.md
.
You will need:
SLACK_TOKEN
(Bot User OAuth Token)SLACK_SIGNING_SECRET
(App Signing Secret)/slack/events
Slack
interface, and serve via AgentOS
:
cookbook/agent_os/interfaces/slack/basic.py
.
Slack
(interface): Wraps an Agno Agent
or Team
for Slack integration via FastAPI.AgentOS.serve
: Serves the FastAPI app using Uvicorn.Slack
InterfaceParameter | Type | Default | Description |
---|---|---|---|
agent | Optional[Agent] | None | Agno Agent instance. |
team | Optional[Team] | None | Agno Team instance. |
agent
or team
.
Method | Parameters | Return Type | Description |
---|---|---|---|
get_router | use_async: bool = True | APIRouter | Returns the FastAPI router and attaches endpoints. |
/slack
prefix:
POST /slack/events
python <my-app>.py
(ensure ngrok is running)/invite @YourAppName
@YourAppName hello
SLACK_TOKEN
and SLACK_SIGNING_SECRET
are set/slack/events
)