From installation to advanced configuration — all in one place.
Get your chat widget live in under 60 seconds. No developers needed.
</body> tag.Paste this code before the closing </body> tag on any page where you want the chat to appear:
<!-- Janimony Chat Widget -->
<script src="https://cdn.janimony.chat/widget.js"></script>
<script>
JanimonyChat.init({
businessId: 'your_api_key_here'
});
</script>
businessId is your widget key. It is public by design: it only lets visitors send chat messages. Reading chats and changing settings always requires your dashboard login. The widget is a single script, so it works with any language or framework: PHP, Laravel, Django, Flask, Rails, ASP.NET, Java, Go, Node, React, Next.js, Vue, Nuxt, Angular, Svelte and plain HTML. It runs inside its own isolated container, so it cannot clash with your site's CSS or JavaScript.
There are three ways to start it. Use whichever fits your project:
<script src="https://cdn.janimony.chat/widget.js" data-business-id="jmc_xxxxx" async></script>
<script>window.JanimonyChatConfig = { businessId: 'jmc_xxxxx' };</script>
<script src="https://cdn.janimony.chat/widget.js" async></script>
JanimonyChat.init({ businessId: 'jmc_xxxxx' });
JanimonyChat.open(); // open the chat from your own button
JanimonyChat.close(); // minimize it
JanimonyChat.destroy(); // remove it (single-page apps)
https://cdn.janimony.chat in script-src and https://cdn.janimony.chat in connect-src.
Colours, position, welcome message, business name, logo and WhatsApp number are managed in Settings → Widget in your dashboard and update on your site instantly. You only need these options if you want to override a dashboard value in code:
JanimonyChat.init({
businessId: 'jmc_xxxxx', // Required
color: '#000000', // Optional: header, bubble, buttons
position: 'bottom-left', // Optional: 'bottom-right' (default) or 'bottom-left'
greeting: 'Hi there!', // Optional: first message
businessName: 'My Store', // Optional: shown in the header
whatsappNumber: '2348012345678' // Optional: country code, no + or spaces
});
| Option | Type | Required | Description |
|---|---|---|---|
businessId | string | Required | Your API key from the dashboard |
color | string | Optional | Widget header, bubble and button colour |
position | string | Optional | bottom-right (default) or bottom-left |
greeting | string | Optional | First message the visitor sees |
businessName | string | Optional | Name shown in the chat header |
whatsappNumber | string | Optional | Adds a "Chat us on WhatsApp" link in the widget footer |
// Purple theme
JanimonyChat.init({ businessId: 'jmc_xxx', color: '#667eea' });
// Green theme
JanimonyChat.init({ businessId: 'jmc_xxx', color: '#10b981' });
// Purple theme
JanimonyChat.init({ businessId: 'jmc_xxx', primaryColor: '#667eea' });
// Green theme
JanimonyChat.init({ businessId: 'jmc_xxx', primaryColor: '#10b981' });
// Custom text colour
JanimonyChat.init({ businessId: 'jmc_xxx', primaryColor: '#f59e0b', secondaryColor: '#111827' });
Send a customer message and receive an AI response.
{
"businessId": "jmc_xxxxx",
"sessionId": "sess_123456_abc",
"message": "Hello, I need help",
"mode": "ai"
}
{
"success": true,
"reply": "Hi! How can I help?",
"sessionId": "sess_123456_abc"
}
Request a human agent. Sends an email notification to the business owner (Pro & Premium only).
{
"businessId": "jmc_xxxxx",
"sessionId": "sess_123456_abc",
"messages": []
}
Retrieve all messages for a session. Used by the widget to poll for agent replies.
{
"success": true,
"messages": [...],
"agentConnected": false
}
Stuck? We're here to help — pick the fastest channel for you.

Taking you there...