Skip to content

Chat bots

People paste anything into a bot: customer details, contracts, code. When the bot's model calls go through the gateway, guardrails see that content before a provider does, each answer is charged to the right team, and every exchange is in Request logs.

A bot is your own code: it receives a message from the chat platform and calls a model with an SDK. That SDK is what you point at the gateway, with two settings; the chat platform doesn't change.

Platform Built with Page
Slack Bolt for Python or JavaScript Slack bots
Discord discord.py or discord.js Discord bots
Microsoft Teams Teams SDK or Bot Framework SDK Microsoft Teams bots

The platforms' own AI features (Slack's AI features, Copilot in Teams) and other companies' bots call their own models; they don't go through the gateway.

Give each bot an agent and its own key: its calls show under that agent and are charged to its team. A bot installed for several customers or workspaces can have one key each, so their spend is apart.