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 resellerDeveloper
Typical partnerA SaaS product, agency, CRM or marketplace serving many businessesA business automating its own Heyllo bots
StructureOne organisation, one workspace per customer of yoursOne organisation with one or a few workspaces
ProvisioningCreate and delete workspaces and bots through the API as customers sign up or leaveCreate bots once, then drive them through the API
KeysAn organisation key for provisioning; workspace-bound keys for services that act for one customerWorkspace- or bot-bound keys
End usersYour customers' visitors, identified by your IDsYour own visitors
LimitsA contract with monthly limits for the whole organisationAgreed 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/usage breaks 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 workspace field, 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.