Open Deploy > SaaS app to configure the drawer profile for authenticated web applications. This setup is separate from Deploy > Chat widget: use Chat widget for public website launchers and inline panels, and use SaaS app for an in-app assistant drawer.
1

Configure the drawer profile

Set the SaaS app display name, colors, welcome message, model, and instructions from the SaaS app deploy page.
2

Create a channel key

Use the Embed tab to create or copy a live or sandbox publishable key for the SaaS app channel.
3

Copy the drawer snippet

Paste the drawer snippet inside your authenticated app shell or layout.
4

Pass identity when available

For signed-in users, append endUser and a backend-signed identity JWT to the iframe src.

Drawer snippet

Copy live drawer snippet emits only the right-side drawer iframe. It does not include the Chat widget launcher host scripts.
The drawer snippet omits session so production users are not pinned to a shared preview conversation.

Signed-in users

For authenticated apps, build the iframe src at runtime with the signed-in user’s stable id. If actions require customer login or trusted user identity, mint identity on your backend and append it with endUser.
Generate the identity signing secret from Manage tokens when creating a customer-login token. Sign JWTs on your server with HS256, including sub (must match endUser) and exp.
Never expose the identity signing secret or JWT minting logic in browser code.

Environment variables

The Embed tab also shows channel key examples for app configuration:
Use sandbox keys for development and live keys for production.

URL options

Web embed

Website widget and inline panel setup.

Manage tokens

Static and customer-login credentials for actions.