Widget Integration
Embed KAI-Flow agents into any website using the standalone widget.
Installation¶
The widget source is located in widget/. Open your terminal and run these commands one by one:
Bash
cd widget
npm install
npm run dev
Embedding¶
Include the script in your HTML page:
HTML
<script src="http://localhost:23059/widget.js"
data-agent-id="YOUR_AGENT_ID"
data-api-url="http://localhost:YOUR_BACKEND_PORT">
</script>