@querlo/sdk
v1.0.9
Published
Querlo Chatbot Embed SDK - Programmatic control and multi-instance support
Readme
Querlo Chatbot SDK
The Querlo Chatbot SDK allows you to embed and manage multiple highly-customizable chatbot instances on any webpage. It supports programmatic control, custom positioning, entry animations, and a premium fullscreen experience.
Installation
Via NPM (Recommended for Modern Bundlers)
npm install @querlo/sdkimport Querlo from '@querlo/sdk';
// Progammatically embed a chatbot
const chat = Querlo.embed({
id: 'YOUR_BOT_ID',
template: 'esd',
mainColor: '#ff0000',
posX: 'right',
posY: 'bottom'
});
chat.open();Via Browser Script Tag
<script src="https://cdn.example.com/@querlo/sdk/dist/querlo-sdk.umd.js"></script>
<script>
Querlo.embed({
id: 'YOUR_BOT_ID',
template: 'esd'
});
</script>Features
- Multi-Instance Support: Run multiple chatbots on the same page without conflicts.
- Programmatic API: Control individual bots via a returned
controller. - Global Commands: Manage all onscreen bots with a single call (e.g.,
Querlo.close()). - Flexible Positioning: Place bots in any corner (
top-left,top-right,bottom-left,bottom-right). - Premium Aesthetics: Smooth SVG-based entry animations and fluid fullscreen transitions.
- CSS Injected by JS: No need to link external CSS files; everything is bundled in the JS.
Documentation
For a full reference of commands, events, and templates, please refer to the QUERLO_SDK_GUIDE.md.
License
MIT
