Home/Integrations/WordPress chat widget integration

WordPress

WordPress chat widget integration

Add the VGraple CRM chat widget to WordPress without a plugin: paste the embed code once, capture leads, answer with AI from your pages, and hand visitors to WhatsApp.

By Chirag Darji · Updated 29 Aug 2026 · 4 min read

On this page
  1. What syncs
  2. Setup
  3. WooCommerce and forms
  4. What the visitor experiences
  5. What the team experiences
  6. WordPress specifics
  7. Three recipes
  8. Limits and gotchas
Chat widget configuration in VGraple CRM: appearance, welcome message, AI answering and the knowledge base behind it

The VGraple CRM chat widget runs on any WordPress site as a two-line embed: a floating button opens a chat that can hand visitors to WhatsApp, capture leads, answer with the AI from a knowledge base, and route to your team's inbox. This is the native website channel; no marketplace app or plugin is involved, and the same widget works on every platform.

What syncs

DataDirectionTiming
Visitor messages, name, email, phone, page URLWordPress site to VGraple CRM inboxReal time
Agent, flow and AI repliesVGraple CRM to the visitor's chatReal time
Lead creation and tags from the widget's pre-chat formInside VGraple CRMOn submit
Handoff to WhatsApp (wa.me with prefilled text)Widget to WhatsAppOn tap

Setup

  1. In VGraple CRM go to Settings, then Chat Widget, create a widget and set greeting, colour, position, pre-chat fields and business hours.
  2. Under the Knowledge Base tab, add your site's URLs so the AI can answer from them (Growth and above).
  3. Copy the two-line snippet from the Embed Code tab.
  4. In WordPress, paste it into the site-wide header: a header and footer scripts plugin, the child theme's header.php, or the builder's custom code panel.
  5. Add the site's domain to the widget's allowed domains, load a page in a private window and send a test message.
  6. Check it appears on mobile and on pages built with your page builder.

WooCommerce and forms

The widget sits alongside WooCommerce order automation and the WordPress forms route; together they cover the three ways a WordPress site produces conversations: a chat, an order and a form.

What the visitor experiences

A small button in the corner (colour and position are yours) opens a chat panel with your greeting and, if you enabled it, a short pre-chat form for name, phone and what they need. Replies come from the AI within seconds when the answer is in the knowledge base, from a flow when the question matches a trigger, or from a person in the inbox during business hours; outside them the widget says when you are back and offers WhatsApp. A "Continue on WhatsApp" action opens a wa.me link with the conversation context prefilled, so the visitor lands in a WhatsApp chat that your inbox already knows about, and the two threads sit under one contact.

What the team experiences

Widget conversations arrive in the same inbox as WhatsApp and Instagram, tagged with the channel and the page the visitor was on, with assignment rules, notes, tags and stages as usual. The Android app notifies on new widget chats like any other. Pre-chat form answers become contact fields and, if you chose so, a lead in a pipeline, so a sales conversation started on the website is already a card on the board by the time someone answers it.

WordPress specifics

Caching plugins may serve the old header for a while after you add the snippet; purge the cache once. Cookie consent plugins that block third-party scripts until consent should be told to allow the widget as functional, or the button will not load until the visitor accepts. Multilingual sites can run one widget with the greeting in each language through page rules, or one widget per language.

Three recipes

  • Visitor asks a pricing question -> AI answers from the knowledge base -> offers "Continue on WhatsApp" -> conversation continues on the phone with consent recorded.
  • Pre-chat form collects phone and service -> lead created in the Website pipeline -> assignment by service -> utility follow-up template if the visitor leaves.
  • Visitor on a product page -> widget opens with a page-specific greeting -> agent sends the product and a payment link.

Limits and gotchas

  • The widget needs the two script tags on every page where it should appear; site builders that strip scripts on some templates need the code in the site-wide header.
  • Content Security Policy headers on the site must allow the widget's script and frame origins; the embed guide lists them.
  • A widget conversation is a website channel until the visitor moves to WhatsApp; WhatsApp templates and consent rules apply only after that.
  • Plan caps: 1 widget on Free, 10 on Starter and Growth, unlimited on Scale.
  • Knowledge base sources are per widget, so a support widget and a sales widget can answer differently.

The chat widget guide covers every setting; the chat widget feature page shows what visitors see.

Frequently asked questions

Is there an app or plugin to install?
No. Paste the embed code from Settings, Chat Widget into the site's header or a custom code area.
Does the widget send visitors to WhatsApp?
It can: a WhatsApp button with prefilled text, or a full in-page chat that hands over to WhatsApp when the visitor prefers.
Can the AI answer from my site content?
Yes. Add your pages as URL sources to the widget's knowledge base and enable the AI assistant (Growth and above).
Does it slow the site down?
The script loads asynchronously after the page and is small; it does not block rendering.
Can I style it?
Colour, position, greeting, avatar, pre-chat form fields and business hours are set per widget.
Where do I paste the code in WordPress?
In the theme's header through Appearance, Theme File Editor (child theme), a header and footer scripts plugin, or your builder's custom code area (Elementor Pro, Divi, Astra all have one).

Run your WhatsApp on VGraple CRM

Free forever plan, official Meta WhatsApp Business API, set up in 15 minutes. No card needed.