Quickstart
-
Create a project in the dashboard. Give it a name, a greeting, and a persona (system instructions).
-
Copy your project secret key from the project’s Install section. It’s public — safe to ship in your client.
-
Add the SDK for your platform:
<iframesrc="https://embed.widget-chat.com?projectSecretKey=YOUR_PROJECT_SECRET_KEY&userId=user-123"style="position:fixed; bottom:0; right:0; width:400px; height:600px; border:none; z-index:9999;"allow="clipboard-write"></iframe><iframesrc={`https://embed.widget-chat.com?projectSecretKey=YOUR_PROJECT_SECRET_KEY&userId=${encodeURIComponent(userId)}`}style={{ position: 'fixed', bottom: 0, right: 0, width: '400px', height: '600px', border: 'none', zIndex: 9999 }}allow="clipboard-write"/>import 'package:widget_chat/chat_widget.dart';ChatWidget(configuration: BotConfiguration(projectSecretKey: 'YOUR_PROJECT_SECRET_KEY',userID: 'user-123',),fullPage: true,); -
Run it. The widget fetches your project config, loads history for
userId, shows the greeting, and starts chatting.
Next steps
- Wire per-user context and auth: Identity verification
- Make the bot render cards & carousels: Rich content & cards
- Handle taps on cards in your app: Host callbacks & actions