Embed Chat Playground PREVIEW

Configure your chat widget, preview it live, and grab the embed code.

Configuration

Paste the agent ID from Agent Factory. Each customer uses their own — there is no default.
Required when the target org has anonymous sessions enabled. The gateway scopes the session to this org and applies the role configured in org.auth.anonymous. Without it the visitor gets an anon token with no org and hits FORBIDDEN on agent-factory routes.

Features

Files
Feedback
Tool Calls
Artifacts
Voice
Speech-to-Text
Disable paste
Dark mode
Primary
Background
Text
Passed as customCss — restyles chat internals the token palette can't reach. Scoped to the iframe; can't touch the host page. Re-mounts on change.
Attached as parts[].metadata.contextSnippet — set at mount, or update live with the button below (calls api.setContext()).
Calls api.sendMessage(text, { contextSnippet }) — the current page context above is attached.

Live Preview

📋 Copy this code into your site


      

🖼️ No scripts allowed (e.g. SharePoint)? Use this iframe