Skip to main content
When you embed a BoostGPT AI teammate directly in an iframe, the chat is saved by BoostGPT after the first message is sent. To resume that same chat after your page reloads, store the active chat_id sent by the iframe.

Embed URL

Start with your public page URL and add embed=1.
After the first message, the embedded AI teammate navigates to:

Listen For Chat IDs

BoostGPT sends a postMessage event whenever an embedded chat id becomes active.
Event payload:

Restore The Chat

When your page loads again, read the saved chat id and include it in the iframe URL.

Full Example

Use a scoped storage key if you embed multiple AI teammates: