WhatsApp on a Wix Site: Chat Buttons, Forms and the API

Add WhatsApp to a Wix site: a chat button in each Wix editor, Wix’s own WhatsApp inbox and campaigns, and Wix Forms leads sent to the WhatsApp API.

Illustration: a website contact form sending a lead to a WhatsApp chat with a welcome message (sample data)

There are three ways to use WhatsApp on a Wix site: a chat button that links to your number, Wix’s own WhatsApp inbox and campaigns, or sending Wix Forms entries to a WhatsApp Business API platform that messages each lead. Wix’s own WhatsApp features live in its Inbox and campaigns, so for anything automatic, “the Wix WhatsApp API” in practice means Wix passing data to a WhatsApp Business API platform.

This guide gives the Wix steps for each, taken from Wix’s own help pages, and shows two ways to send form leads on: Wix Automations with no code, and a few lines of Velo backend code. For the general chat-button code and form-to-WhatsApp set-ups on other website builders, see our guides to WhatsApp chat widgets and contact forms to WhatsApp.

Key takeaways

  • A chat button is a link: add a button, choose Link › Web address and paste your wa.me or api.whatsapp.com/send link.
  • In the Wix Editor, Pin to screen works on desktop only. Use the Quick Action Bar for WhatsApp on mobile.
  • Wix Inbox can connect WhatsApp Business, but you can only reply to people who wrote first, within 24 hours.
  • Wix’s Send HTTP request action lists no header setting, so route form leads through Zapier or Velo code to reach an API that needs a key.
  • Every form lead needs opt-in that names your business, and the first message must be an approved template.

Three ways to put WhatsApp on a Wix site

RouteWhat it doesBest for
Chat button or linkOpens a chat with your number; the visitor sends the first messageEvery site. Free, no app needed
Wix Inbox and Messaging campaignsReplies to WhatsApp chats inside Wix, and sends text-only marketing campaignsSmall teams who run everything in the Wix dashboard
Wix Forms to a WhatsApp API platformEach form entry becomes a contact and gets your approved welcome templateLeads who should hear from you in seconds, a shared team inbox, chatbots and follow-ups

They aren’t either-or. Many sites use a button for people ready to chat and a form for people who would rather leave their details.

Add a WhatsApp chat button in Wix

First build your link: your number in full international format with no plus, zeros, brackets or dashes, then an optional message with %20 for spaces. Wix’s pages show both formats, and both open the same chat:

https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20have%20a%20question or https://api.whatsapp.com/send?phone=91XXXXXXXXXX&text=Hi%2C%20I%20have%20a%20question

Our WhatsApp link generator does the encoding for you. Then follow the steps for your editor:

EditorSteps from Wix’s help pages
Wix EditorAdd a button, change its text (such as “Chat on WhatsApp”), click the Link icon, choose Web Address, paste the link, click Done
Wix StudioAdd Elements › Buttons, drag a button onto the page, click Link, choose Web address, paste the link, pick new or current window, Done
Wix HarmonyAdd a button and click Link. With a message, use Web address; without one, click More Options, choose WhatsApp and enter your number

Keep it on screen

In the Wix Editor, right-click the button, choose Pin to screen and pick a position under Set position, with horizontal and vertical offsets. Wix notes that pinning is desktop only: pinned elements are hidden on your mobile site. For phones, add the Quick Action Bar to the mobile site, click Set Up Quick Actions, then More Actions, choose Whatsapp, and enter your number under Set Up. Wix pins the Quick Action Bar automatically.

Wix Studio has its own pinning article, so check it there. For button wording, contrast, placement and WhatsApp’s logo rules, see the chat widget guide; they apply on Wix too.

Wix’s own WhatsApp: Inbox and campaigns

Wix can connect a WhatsApp Business number to its dashboard. In Inbox, open the Settings drop-down, choose Communication Channels, and click Set Up next to WhatsApp Business, then log in to Facebook. What Wix’s pages say it does:

  • Replies only. You can reply to contacts who messaged you first, within 24 hours of their latest message. Each new message restarts the 24 hours.
  • Your phone app can stay. Wix recommends connecting your WhatsApp Business app, so you manage chats in both places. Moving a number to the API outright means you can then only use it through Wix Inbox.
  • Campaigns in Messaging use a Wix messaging plan with monthly credits, charged per delivered message by country. Templates are text-only, may have buttons, and Meta treats them as marketing.
  • Limits Wix lists: marketing messages aren’t delivered to +1 numbers (Canada excepted), and a new account can message up to 250 people in 24 hours until Meta verifies the business or raises the limit.

That suits a shop owner who replies personally. It doesn’t cover utility templates such as order updates, an instant welcome to a form lead, chatbots, a team inbox with assignment, or drip follow-ups. For those you need a WhatsApp Business API platform, fed by your forms.

Send Wix Forms leads to WhatsApp without code

Wix Automations can fire on a form and send an HTTP request. Its help page lists the method, URL, query parameters and body fields, but no setting for request headers. An API that takes its key in an Authorization header, as Automate AI’s does, therefore needs a step in between. Zapier works:

  1. In Zapier, make a Zap with Webhooks by Zapier and the Catch Hook trigger. Copy the URL.
  2. In Wix, go to Automations, click + Create Automation, then + Start from Scratch, and name it.
  3. Choose Form submitted as the trigger (the blue icon is for new Wix Forms) and pick Specific with your form.
  4. Click +, choose Action, then Send HTTP request. Set POST and paste the Zapier URL.
  5. Under the request body, use Choose fields and add keys such as phone, first_name, email and your consent field, each mapped to a form answer. Check what will be sent with Preview request body, if shown, then Activate.
  6. Submit a test entry on the live site so Zapier sees the fields.
  7. In Zapier, add a filter so only entries with the consent box ticked continue. Then add Webhooks by Zapier › POST to your platform’s endpoint, with Payload Type JSON, only phone, first_name and email mapped under Data, and an Authorization header with the value Bearer YOUR_API_KEY.

Webhooks by Zapier is on Zapier’s paid plans. The full Zapier step for Automate AI, including which fields its endpoint accepts and why you shouldn’t pass the whole form through, is in contact forms to WhatsApp.

Or with a few lines of Velo code

If coding is turned on for your site, a backend event can post each entry straight to the API, with the key kept in Wix’s Secrets Manager. First add the key: open Developer Tools, choose Secrets Manager, click Add Secret, name it AUTOMATE_AI_API_KEY and paste the value. Then, in the Backend section, add events.js if it doesn’t exist:

Linebackend/events.js
1import { fetch } from 'wix-fetch'; import { secrets } from 'wix-secrets-backend.v2'; import { elevate } from 'wix-auth';
2const getSecret = elevate(secrets.getSecretValue);
3export async function wixForms_onSubmissionCreated(event) { const f = event.entity.submissions;
4const phone = String(f.phone || '').replace(/[^\d+]/g, ''); if (!phone || !f.whatsapp_ok) return;
5const body = { phone, first_name: f.first_name }; if (f.email) body.email = f.email;
6const res = await fetch('YOUR_ENDPOINT_URL', { method: 'post', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ' + await getSecret('AUTOMATE_AI_API_KEY') }, body: JSON.stringify(body) });
7if (!res.ok) console.error('WhatsApp lead not sent', res.status); }
  • Field keys: submissions holds each answer under its field key, such as first_name in Wix’s example. Replace phone, email and whatsapp_ok (your consent checkbox) with your form’s keys.
  • Clean the number: line 4 keeps only digits and a plus, which Automate AI’s endpoint requires; make sure your form asks for the country code.
  • Empty fields: line 5 adds email only when it was filled in, because an empty optional field gets the entry refused.
  • Testing: Wix says backend events don’t run in preview, so test on the published site.

A form lead hasn’t messaged you, so no 24-hour customer service window is open and only an approved template can reach them. WhatsApp’s policy also says you may only message people who opted in, and Meta’s opt-in guidance says the opt-in must name your business. Add an unticked checkbox to the Wix form, such as:

“Yes, Example Interiors may send me updates about my enquiry on WhatsApp.”

Send only entries where it’s ticked, as in the filter and line 4 above. Sample welcome templates and how Meta categorises them are in contact forms to WhatsApp, with more in WhatsApp opt-in and template messages.

Using Automate AI with a Wix site

To be clear about what exists: Automate AI has no Wix app or Wix connector. Wix talks to it the ways shown above: a chat button pointing at your connected number, and form entries posted to its contact webhook.

  • Form leads: in Settings › Webhook Settings, copy the endpoint URL, choose what happens to repeat numbers, set the group and status for new contacts, and pick an approved welcome template. Owners and managers create the API key on the Developer page; it’s shown once.
  • Button chats land in the shared inbox. Lead Sources in Settings fill a new contact’s Lead Source field from words in their first message (the first matching rule wins, and existing contacts aren’t changed), so give each Wix page its own pre-filled text.
  • Your WhatsApp Business app number can be connected too, so new customer messages and messages you send from the phone app show in the inbox. See WhatsApp coexistence.
  • Follow-ups: add the form’s group to a drip campaign so leads who don’t reply get a reminder.

Lead capture, including website forms, the API and webhooks are on the AI + Automation Plan and Series 4. See pricing and the full list of integrations.

Frequently asked questions

Does Wix have a WhatsApp API?

Wix connects a WhatsApp Business number to Wix Inbox and Messaging campaigns. The Wix help and developer pages we checked don’t describe a WhatsApp sending method for your own code, so to message form leads automatically, send Wix data to a WhatsApp Business API platform with Automations and Zapier, or with Velo code.

How do I add a WhatsApp button to my Wix site?

Add a button, click the Link icon, choose Web address and paste a wa.me link with your number in international format. In the Wix Editor, pin it to the screen for desktop and use the Quick Action Bar on mobile.

Why does my pinned WhatsApp button not show on mobile?

In the Wix Editor, pinning is desktop only and pinned elements are hidden on the mobile site. Add WhatsApp to the mobile Quick Action Bar instead.

Can Wix Inbox send WhatsApp messages to new leads?

Not as a reply. Wix Inbox replies only to contacts who messaged you first, within 24 hours. Wix’s WhatsApp campaigns send approved marketing templates to the contacts you choose, or only to subscribers if Limit to subscribers is on.

Can Wix Automations send form entries to a WhatsApp API?

Yes, with the Send HTTP request action, but Wix’s help page lists no header setting. If the API needs a key in a header, send the request to Zapier first, or use Velo backend code.

Does Automate AI have a Wix app?

No. Use a chat button that points at your connected number, and post Wix Forms entries to Automate AI’s contact webhook through Zapier or Velo.

Sources

  1. Wix Help: Studio Editor, adding a WhatsApp button
  2. Wix Help: Wix Editor, adding a link to WhatsApp
  3. Wix Help: Wix Editor, pinning elements to the screen
  4. Wix Help: Connecting WhatsApp Business to Inbox
  5. Wix Help: Creating and sending WhatsApp campaigns
  6. Wix Help: Automations, sending an HTTP request
  7. Wix Velo: onSubmissionCreated (Wix Forms)
  8. Wix Velo: getSecretValue

WhatsApp rules and prices change. We check these guides against Meta’s documentation, but always confirm current terms with Meta before you rely on them. Questions? Message us on WhatsApp at +91 836 977 8812.