Back to Home
Documentation

Everything you need
to get started.

From installation to advanced configuration — all in one place.

Watch Video Tutorials Try Live Demo

Quick Start

Get your chat widget live in under 60 seconds. No developers needed.

2
Copy your API key from your dashboard after signup.
3
Paste the code snippet into your website before the </body> tag.
Watch video walkthrough — See the entire setup process in 60 seconds.

Install the Widget

Paste this code before the closing </body> tag on any page where you want the chat to appear:

HTML
<!-- Janimony Chat Widget -->
<script src="https://cdn.janimony.chat/widget.js"></script>
<script>
  JanimonyChat.init({
    businessId: 'your_api_key_here'
  });
</script>
Your 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.

Works with every stack

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:

1. One line (recommended)
<script src="https://cdn.janimony.chat/widget.js" data-business-id="jmc_xxxxx" async></script>
2. Config object (Tag Manager, strict templates)
<script>window.JanimonyChatConfig = { businessId: 'jmc_xxxxx' };</script>
<script src="https://cdn.janimony.chat/widget.js" async></script>
3. JavaScript
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)
Ready-made React, Next.js, Vue, Nuxt, Angular, Svelte and TypeScript snippets are in your dashboard under Dashboard → Install Widget. If your site uses a Content-Security-Policy, allow https://cdn.janimony.chat in script-src and https://cdn.janimony.chat in connect-src.

Configuration Options

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:

JavaScript
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
});
OptionTypeRequiredDescription
businessIdstringRequiredYour API key from the dashboard
colorstringOptionalWidget header, bubble and button colour
positionstringOptionalbottom-right (default) or bottom-left
greetingstringOptionalFirst message the visitor sees
businessNamestringOptionalName shown in the chat header
whatsappNumberstringOptionalAdds a "Chat us on WhatsApp" link in the widget footer

Custom Colour Examples

JavaScript
// Purple theme
JanimonyChat.init({ businessId: 'jmc_xxx', color: '#667eea' });

// Green theme
JanimonyChat.init({ businessId: 'jmc_xxx', color: '#10b981' });
Text on the header is chosen automatically so it stays readable on any colour. You can also set the colour permanently in Settings → Widget. Watch customization demo →

Custom Colour Examples

JavaScript
// 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' });
You can also set colours permanently from Settings → Widget in your dashboard — no code changes needed. Watch customization demo →

POST /api/chat

Send a customer message and receive an AI response.

JSON — Request
{
  "businessId": "jmc_xxxxx",
  "sessionId":  "sess_123456_abc",
  "message":    "Hello, I need help",
  "mode":       "ai"
}
JSON — Response
{
  "success":   true,
  "reply":     "Hi! How can I help?",
  "sessionId": "sess_123456_abc"
}

POST /api/chat/request-agent

Request a human agent. Sends an email notification to the business owner (Pro & Premium only).

JSON — Request
{
  "businessId": "jmc_xxxxx",
  "sessionId":  "sess_123456_abc",
  "messages":   []
}
Watch agent handoff demo — See how customers can request human support.

GET /api/chat/messages/:businessId/:sessionId

Retrieve all messages for a session. Used by the widget to poll for agent replies.

JSON — Response
{
  "success":        true,
  "messages":       [...],
  "agentConnected": false
}

Get Help

Stuck? We're here to help — pick the fastest channel for you.

Email Support

Send us your question and we'll respond within 24 hours.

janimony.chat@gmail.com

WhatsApp

Chat directly for faster responses and real-time support.

+234 803 936 1542

Video Tutorials

Watch step-by-step video guides for setup and features.

Watch Demo Videos →

Live Chat

Use the chat widget on any Janimony page for instant help.

Go to homepage

Taking you there...