Website Bot and lead capture API
Add the CRMWA chat widget to your website with one script tag, and send leads from any website form straight into your CRM.
5 min read Owners & admins
Add the chat widget to your website#
- Step 1: Open Website Bot. Generate your API key if you do not have one yet.
- Step 2: In Chatbot Customizer, set the agent name, avatar, colours, launcher size, screen position and whether the widget auto-opens after a delay.
- Step 3: Copy the script tag and paste it just before the closing
</body>tag of your website. - Step 4: Open your website and test the widget. Conversations and leads appear in CRMWA.
<script
src="https://crmwa.isgul.com/widget.js"
data-api-key="YOUR_API_KEY"
></script>| Platform | Where to paste |
|---|---|
| WordPress | Use a plugin like "Insert Headers and Footers" and paste into the footer section. |
| Shopify | Online Store → Themes → Edit code → theme.liquid, before </body>. |
| Next.js / React | Add it in your root layout with the Next.js Script component, or inject it in App.tsx. |
| Plain HTML | Before </body> on every page. |
Send website form leads to CRMWA (Lead API)#
Any website form, landing page or app can create a contact in CRMWA by sending a POST request with your API key. New leads are assigned by your lead routing rules under Website Leads.
curl -X POST https://crmwa.isgul.com/api/external/lead \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{ "name": "Aisha Khan", "phone": "919876543210", "message": "Need a quote" }'| Field | Required | Notes |
|---|---|---|
| phone | Yes | Full number with country code. Spaces and + are removed automatically. |
| name | No | Customer name. |
| message | No | What the customer asked; saved with the lead. |
Related guides
- AI Chatbot: answer customers automaticallyTrain the AI with your business details, FAQs and tone so it can answer customer questions on WhatsApp 24/7, and add keyword rules for fixed replies.
- Integrations: connect other tools to CRMWAConnect IndiaMART, Justdial, Zapier, Google Sheets, Shopify, Razorpay, and webhooks to capture leads and send automated WhatsApp messages.
- Lead routing: auto-assign new leadsAutomatically share new leads between agents with round-robin, with separate rules per lead source.
Still stuck? Raise a support ticket from your dashboard or contact our team.