WhatsApp API and Salesforce: Your Options

How to use the WhatsApp Business API with Salesforce: its own WhatsApp channels, a bridge built on a platform’s API and webhooks, and lead ads, with steps.

Illustration: a WhatsApp chat on one side and a CRM lead record on the other, joined by a webhook arrow (sample data)

There are three ways to use the WhatsApp Business API with Salesforce: Salesforce’s own WhatsApp channel in Service Cloud, its WhatsApp messaging in Marketing Cloud Engagement, or a separate WhatsApp platform that passes contacts and messages to Salesforce through its API and webhooks. Which one fits depends on where your team will actually reply to customers.

To be clear from the start: Automate AI has no Salesforce connector. It connects directly to HubSpot, LeadSquared and Zoho Bigin, on every plan, and for Salesforce you use its REST API and webhooks. This guide explains what Salesforce’s own channels involve, according to Salesforce’s help pages, how a bridge works if you keep WhatsApp on another platform, and how to handle Facebook lead ads in both.

Key takeaways

  • Salesforce runs WhatsApp in Service Cloud (an enhanced WhatsApp channel) and in Marketing Cloud Engagement (Journey Builder), and its docs say the two need separate WhatsApp Business Accounts unless you set the channel up with Salesforce’s Unified Messaging.
  • Salesforce says one WhatsApp Business Account can’t serve more than one Salesforce org, and a sandbox and production org count as two.
  • Automate AI has no Salesforce connector. It connects directly to HubSpot, LeadSquared and Zoho Bigin on every plan; for Salesforce, use its REST API and webhooks with a small middle layer.
  • Use Salesforce’s upsert by external ID, with the WhatsApp number as the key, so a bridge updates leads instead of duplicating them.
  • For Facebook lead ads, Meta lists Salesforce as a direct CRM integration, and it can run alongside a WhatsApp platform’s own lead ads connection.

Three ways to connect WhatsApp and Salesforce

Start with one question: where will your people read and answer WhatsApp messages? The answer usually picks the option for you.

Service Cloud WhatsApp channelMarketing Cloud Engagement WhatsAppWhatsApp platform plus an API bridge
Who repliesService reps in the Service ConsoleMostly automated journeysYour team in the platform’s inbox
Main useSupport conversations routed by Omni-ChannelTemplate and session messages sent from Journey BuilderSales and support chats, campaigns and chatbots
What Salesforce holdsThe conversations themselvesJourney sends and resultsThe records your bridge writes: leads, contacts, tasks
What you needAn add-on licence (see below) and admin setupMarketing Cloud Engagement and its WhatsApp setup, with a separate WhatsApp Business Account from Service Cloud unless you set the channel up with Salesforce’s Unified MessagingAPI access on the platform, a developer or automation tool, and Salesforce API access

If your reps live in the Service Console all day, look at Salesforce’s channel first. If your team already sells on WhatsApp with an inbox, chatbots and broadcasts, it can make more sense to keep the number there and send the records Salesforce needs.

WhatsApp in Service Cloud: what Salesforce’s docs say

Salesforce calls this an enhanced WhatsApp channel. Its setup guide says the steps depend on your add-on licence: orgs with the Digital Engagement add-on follow the full setup, while orgs with the Agentforce Contact Center Digital add-on are sent to a Unified WhatsApp channel setup and must buy message credits before they can create a channel. In outline:

  1. In Setup, open Messaging Settings, click New Channel, then Start, and choose WhatsApp.
  2. Accept the terms, turn off pop-up blockers and click Connect to WhatsApp, then sign in with Facebook.
  3. Create or select a Meta business account, create a WhatsApp Business Account and a profile, and verify your number by text or voice call.
  4. Back in Salesforce, pick the number, write the auto-acknowledgement message and choose routing: a new queue, or an Omni-Channel flow set up later.
  5. Work through Salesforce’s activation checklist and click Activate Channel. Salesforce says to activate within 14 days, or you must verify the number again.

A few limits from Salesforce’s setup and considerations pages are worth knowing before you commit:

  • One org per account. A WhatsApp Business Account can’t be linked to more than one Salesforce org, and a sandbox and production org are two separate orgs. Plan your testing number accordingly.
  • Templates: up to 250 messaging templates per WhatsApp Business Account in enhanced channels.
  • No group chats in enhanced WhatsApp channels.
  • Moving a number from another provider is treated as a migration: Salesforce asks you to turn off two-step verification first, and suggests testing with a low-traffic number.

WhatsApp in Marketing Cloud Engagement

Marketing Cloud Engagement is a separate product with its own WhatsApp setup. Salesforce’s note is direct: WhatsApp channels in Marketing Cloud Engagement and in Service Cloud need separate WhatsApp Business Accounts. Salesforce’s Service Cloud considerations page adds the exception: a number or account linked to Marketing Cloud Engagement can be used for a Service Cloud channel if you create that channel with Unified Messaging.

  • Setup uses Meta’s embedded sign-up from Mobile Studio, and Salesforce says a new account can take up to 48 hours for Meta to approve.
  • The sending number can’t already be linked to a personal or business WhatsApp account.
  • Each business unit needs its own WhatsApp Business Account; business units can’t share one.
  • Messages are template messages, which need WhatsApp approval, and session messages, which answer a conversation the customer started. Both are used in Journey Builder journeys.

This route suits teams that already build journeys in Marketing Cloud and want WhatsApp as one more step. It isn’t a team inbox, so pair it with a service channel if people need to reply.

Does Automate AI connect to Salesforce?

No. Automate AI has no Salesforce connector, so there is nothing to switch on for Salesforce inside the app. Here is what it does connect to, and how Salesforce users can still link the two:

CRM or toolHow it connectsPlans
HubSpotDirect connection: new contacts without duplicates, an optional chat note, Lead status updates, new HubSpot contacts inEvery plan
LeadSquaredDirect connection with your keys: new contacts become leads, status changes move the lead stage you chooseEvery plan
Zoho BiginDirect connection: contacts matched by phone or email, with an optional dealEvery plan
SalesforceNo connector: use the REST API and developer webhooks with a middle layer you buildAPI and webhooks: AI + Automation Plan and Series 4

If HubSpot is also an option for your team, the HubSpot WhatsApp integration guide shows what a ready-made connection does. The wider picture, including statuses and follow-ups inside the app, is on our WhatsApp CRM page.

Build a bridge with the API and webhooks

A bridge is a small service, or a workflow in a tool such as n8n, that listens to Automate AI’s webhooks and writes to Salesforce’s REST API, and calls Automate AI’s API when Salesforce needs to send something. Owners and managers set up API keys and webhooks on the app’s Developer page.

  1. Add an external ID field to the Salesforce Lead (or Contact) object to hold the WhatsApp number in international format.
  2. Create an API key on the Developer page. It’s shown once, so store it in your bridge’s secrets.
  3. Create a developer webhook pointing at your bridge, pick the events you need and save the signing secret.
  4. Check every delivery. The X-Webhook-Signature header is a hex HMAC-SHA256 of the body, made with that secret.
  5. Upsert, don’t insert. Salesforce’s REST API can create or update a record by external ID with a PATCH request: no match creates a record, one match updates it, and more than one returns an error.
  6. Press Test on the webhook. Sample events carry "test": true, so your bridge can ignore them.

A sample event map (sample data)

Automate AI eventWhat the bridge could do in Salesforce
contact.createdUpsert a Lead keyed on the WhatsApp number, with name, email and custom fields
contact.updatedUpdate the same Lead’s fields
message.receivedLog a short activity on the Lead with the message text and time
message.status.updateUsually skip; it’s a lot of traffic for little value in a CRM

Contact events carry the name, phone, email, address, groups and your custom fields. A failed delivery is tried up to 3 times, so make the bridge reply quickly and do slow work afterwards. Details and a worked example are in the n8n guide.

Sending WhatsApp messages from Salesforce

Going the other way, the bridge calls Automate AI’s API, for example POST /chats/<phone>/template to send an approved template when a Lead reaches a stage you choose. The contact must exist first (POST /contacts), or the call returns “No contact found”. Free text only reaches people who wrote to you in the last 24 hours, so a message started from Salesforce should almost always be a template. See sending templates through the API and the 24-hour window.

Facebook lead ads into Salesforce and WhatsApp

Many Salesforce users get leads from Facebook and Instagram lead forms. Meta’s list of CRM integrations for lead ads includes Salesforce as a direct integration (and a separate Salesforce by Zapier option), which you set up from your Page’s Leads Setup.

Automate AI’s Facebook Lead Ads integration reads the same leads from Meta and sends each one a WhatsApp template, so the two run side by side. One detail for bridge builders: contacts created by the Facebook Leads integration don’t send the contact.created webhook, so let Meta’s Salesforce integration carry those leads into Salesforce rather than your bridge.

The full two-connection setup, and why status changes need one agreed home, is in connecting Facebook lead ads to your CRM.

Which option should you pick?

If this sounds like youConsider
Support team working cases in the Service ConsoleSalesforce’s enhanced WhatsApp channel
Marketing team building journeys in Marketing CloudMarketing Cloud Engagement WhatsApp, plus a service channel for replies
Sales team selling on WhatsApp, with campaigns and chatbots, reporting in SalesforceA WhatsApp platform with a bridge to Salesforce
No developer and no budget for a bridgeA CRM with a ready-made connector, or Salesforce’s own channel
Mostly lead ads, followed up on WhatsAppMeta’s Salesforce lead ads integration plus a WhatsApp platform’s lead ads connection

Whichever you choose, write down which system owns each fact: who changes a lead’s status, where notes go, and which tool sends the first message. Two systems both “owning” status is how CRMs end up wrong.

Being in Salesforce isn’t permission to message someone on WhatsApp. Meta requires opt-in that names your business before you send messages, and you must respect opt-out requests. Store the opt-in date and source as fields in Salesforce, and have your bridge skip anyone without them.

Keep sensitive data out of chats too: WhatsApp’s Business Messaging Policy says not to ask people for full payment card numbers, financial account numbers or ID card numbers. More in WhatsApp opt-in. Plans that include the API and webhooks are on our pricing page.

Frequently asked questions

Does Salesforce have a WhatsApp integration?

Yes. Service Cloud has an enhanced WhatsApp channel for service reps, and Marketing Cloud Engagement can send WhatsApp messages from Journey Builder. Salesforce’s docs say they need separate WhatsApp Business Accounts unless you set the channel up with Salesforce’s Unified Messaging.

Does Automate AI have a Salesforce connector?

No. Automate AI connects directly to HubSpot, LeadSquared and Zoho Bigin. For Salesforce, use its REST API and developer webhooks, which are included in the AI + Automation Plan and Series 4.

Can I use one WhatsApp Business Account with two Salesforce orgs?

No. Salesforce says one WhatsApp Business Account can’t be linked to more than one org, and a sandbox and production org count as two.

How do I stop a bridge creating duplicate leads?

Store the WhatsApp number in an external ID field and use Salesforce’s upsert by external ID. One match updates the record, no match creates one.

Can Salesforce send WhatsApp messages through Automate AI?

Yes, through a bridge that calls Automate AI’s API. Outside a 24-hour window after the customer’s last message, it must send an approved template.

How do Facebook lead ads reach Salesforce?

Meta lists Salesforce as a direct CRM integration for lead ads. You can run it alongside Automate AI’s Facebook Lead Ads integration, which sends each lead a WhatsApp template.

Sources

  1. Salesforce Help: Create or migrate to an enhanced WhatsApp channel
  2. Salesforce Help: Considerations for WhatsApp channels
  3. Salesforce Help: Set up your WhatsApp account in Marketing Cloud Engagement
  4. Salesforce Help: WhatsApp message types and use cases for Marketing Cloud Engagement
  5. Salesforce Developers: Create a record (REST API)
  6. Salesforce Developers: Upsert a record using an external ID
  7. Meta Business Help: Available CRM system integrations for lead ads
  8. Meta: Get opt-in for WhatsApp

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.