Skip to content

Embedding

The assistant embeds in any app. There is no login screen: your app hands it the signed-in user's token, and the assistant sends that token to your identity endpoint to learn who is asking.

Your app is Use
Rendered in pages Embed in your app's pages: a component or a framed page
A desktop application Embed in a desktop app: a library that hosts the same assistant

Both give the same assistant and use the same API. Whatever you embed, you provide the same three things:

  • A token supplier. A function returning the current user's token. It is called at start and whenever the platform refuses the token, so return a fresh one.
  • Host functions (optional). Functions in your app the assistant may call, such as opening a record. See Tools.
  • Look. Colors, name, logo and starter questions, so it matches your product.