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#

  1. Step 1: Open Website Bot. Generate your API key if you do not have one yet.
  2. Step 2: In Chatbot Customizer, set the agent name, avatar, colours, launcher size, screen position and whether the widget auto-opens after a delay.
  3. Step 3: Copy the script tag and paste it just before the closing </body> tag of your website.
  4. Step 4: Open your website and test the widget. Conversations and leads appear in CRMWA.
Script tag (your key is filled in on the Website Bot page)
<script
  src="https://crmwa.isgul.com/widget.js"
  data-api-key="YOUR_API_KEY"
></script>
PlatformWhere to paste
WordPressUse a plugin like "Insert Headers and Footers" and paste into the footer section.
ShopifyOnline Store → Themes → Edit code → theme.liquid, before </body>.
Next.js / ReactAdd it in your root layout with the Next.js Script component, or inject it in App.tsx.
Plain HTMLBefore </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.

POST /api/external/lead
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" }'
FieldRequiredNotes
phoneYesFull number with country code. Spaces and + are removed automatically.
nameNoCustomer name.
messageNoWhat the customer asked; saved with the lead.

Still stuck? Raise a support ticket from your dashboard or contact our team.

Browse all guides