Integration models
Integrate as a platform serving many customers, or as a developer automating your own bots.
There are two ways to integrate. Both use the same API, keys and webhooks. The difference is how many workspaces you manage.
Platform or developer
| Platform or reseller | Developer | |
|---|---|---|
| Typical partner | A SaaS product, agency, CRM or marketplace serving many businesses | A business automating its own Heyllo bots |
| Structure | One organisation, one workspace per customer of yours | One organisation with one or a few workspaces |
| Provisioning | Create and delete workspaces and bots through the API as customers sign up or leave | Create bots once, then drive them through the API |
| Keys | An organisation key for provisioning; workspace-bound keys for services that act for one customer | Workspace- or bot-bound keys |
| End users | Your customers' visitors, identified by your IDs | Your own visitors |
| Limits | A contract with monthly limits for the whole organisation | Agreed when your organisation is set up |
Platform model
Create a workspace when a customer signs up, with your customer ID as external_id. Create that customer's bots in it, add their knowledge and, if a service of yours acts only for that customer, give it a key bound to the workspace.
- Each customer's data stays in its own workspace, and a workspace-bound key cannot reach other workspaces.
GET /v1/usagebreaks usage down per workspace, so you can bill your customers for what they used.- Suspend a workspace with
PATCH /v1/workspaces/{id}when a customer stops paying, and delete it when they leave. - Register organisation-wide webhook endpoints and route events by the
workspacefield, or register one endpoint per workspace.
If you will ever have more than one customer on Heyllo, use the platform model from the start. Moving data between workspaces later is not supported through the API.
Developer model
Create your workspace and bots once, then use the API to keep knowledge up to date, run conversations from your own interface and receive webhooks. Give each service a key bound to the workspace or bot it works with and only the scopes it needs.