chat_id sent by the iframe.
Embed URL
Start with your agent URL and addembed=1.
Listen For Chat IDs
BoostGPT sends apostMessage event whenever an embedded chat id becomes active.
Restore The Chat
When your page loads again, read the saved chat id and include it in the iframe URL.Full Example
SSO With Iframe Embeds
Pass a short-lived SSO token in the iframe URL so the embedded agent can authenticate the user on its own domain.SIGNED_JWT on your server using the agent’s SSO secret. Do not sign SSO tokens in browser code.