Slack /ask bot
Wire one agent to your Slack slash-command. Search the web, summarize, post back. Pay once at the org level.
Prerequisites
- Slack app with a /ask slash-command pointing at your webhook.
- One agent for the whole org. No per-user keys.
Walkthrough
1. Receive slash command
Slack POSTs {user_id, text} to your handler. Respond 200 within 3s, then do the work async.
2. Search + summarize
One web_search.query → one text_generation.generate. Wire them server-side; never expose AGENT_KEY to Slack or the browser.
3. Post back
Use Slack's response_url to post the summary into the channel. Done.
Next steps
Audit every call at /audit-logs, watch spend at /usage, and tune budgets per service on the agent's page.
Create an account →