Just add one of the following script tags to your website. The widget will automatically appear.
<!-- For automatic theme detection -->
<script src="https://llm-test.azzar.workers.dev/widget.js"></script>
<!-- To force a specific theme -->
<script src="https://llm-test.azzar.workers.dev/widget.js" data-color="light"></script>
<script src="https://llm-test.azzar.workers.dev/widget.js" data-color="dark"></script>
For custom integrations, you can use the API endpoint directly:
POST https://llm-test.azzar.workers.dev/api/chat
Request body:
{
"message": "User message here",
"history": [
{"role": "user", "content": "Previous user message"},
{"role": "assistant", "content": "Previous AI response"}
]
}