Script format
<script src="https://chatrobot.app/widget.js" data-chatrobot-key="YOUR_WIDGET_KEY"></script>
Widget install
The widget loads cross-origin, validates the signed key, checks allowed origins, and calls the Laravel widget API.
<script src="https://chatrobot.app/widget.js" data-chatrobot-key="YOUR_WIDGET_KEY"></script>
When multiple agents exist, the generated embed can also include `data-chatrobot-agent="AGENT_PUBLIC_KEY"` so each script selects the correct agent.
Set exact domains for production sites. Use wildcard origins only during local tests or controlled demos. The widget rejects mismatched public origins.
The widget uses config, conversation, message, streamed message, lead action, and ticket action endpoints under /api/widget.
Use the in-app widget preview before installation to verify greeting, model path, and routed follow-up behavior from the same signed key.
Ready