Updated on November 10, 2026
There are four ways to connect Salesforce to WhatsApp: the native (enhanced) WhatsApp channel in Agentforce Service, formerly Service Cloud; WhatsApp in Marketing Cloud; Partner Messaging (formerly Bring Your Own Channel), which plugs an external provider into the service console; and a custom integration, where your own service receives webhooks from the official WhatsApp API and writes leads, contacts and tasks through the Salesforce REST API. The first two use a WhatsApp account created by Salesforce itself; the last two let you use whichever API provider you choose.
The four options side by side
| Option | Best for | Who connects the number to Meta | Where the team works |
|---|---|---|---|
| Enhanced WhatsApp in Agentforce Service | Customer service with Omni-Channel | Salesforce, through its own setup flow | Service Console |
| WhatsApp in Marketing Cloud | Journeys and campaigns | Salesforce, through the Marketing Cloud flow | Journey Builder and marketing tools |
| Partner Messaging | Teams that already have a messaging provider and want the Salesforce console | The external provider | Service Console |
| Custom integration | Sales and operations teams that need events in the CRM | The API provider of your choice | Whatever system you already use for customer conversations |
The deciding question: will customer conversations happen inside Salesforce or outside it?
Option 1: enhanced WhatsApp channel in Agentforce Service
Salesforce offers the enhanced WhatsApp channel, which you create yourself under Setup > Messaging Settings > New Channel > WhatsApp. The flow asks you to log in with Facebook and then creates or selects the business portfolio, the WhatsApp Business account (WABA) and the business profile, verifying the number by SMS or phone call.
What the Salesforce documentation makes clear:
- You need Messaging and Omni-Channel. The Trailhead module states that the channel requires Messaging and that routing runs on Omni-Channel, with a fallback queue and presence statuses for agents.
- The WhatsApp account is born in the Salesforce flow. According to Trailhead, a WhatsApp account created separately in Meta Business Manager can’t be used in a Salesforce channel.
- One account per org. Salesforce doesn’t let you associate the same WhatsApp account with more than one org, and sandbox and production count as different orgs.
- Activation within 14 days. The channel must be activated within 14 days of creation; after that, the number has to be verified again.
- Templates. Every automated message on the enhanced channel must use a Meta-approved template, and the limit is 250 templates per WhatsApp account.
- No groups. WhatsApp group conversations aren’t supported.
- Billing. With the Agentforce Contact Center Digital add-on, WhatsApp is billed through message credits in the Digital Wallet, purchased before you create the channel. For pricing and SKUs, talk to your Salesforce account executive.
Bringing over a number from another provider
The article “Create or Migrate to an Enhanced WhatsApp Channel” describes how to migrate a number that’s already on the official API with another provider:
- Turn off two-step verification for the number in WhatsApp Manager (or ask your current provider to turn it off if you don’t have access).
- In the Salesforce flow, create the WhatsApp account and the profile with names that exactly match the original account and profile.
- Select the number and confirm the code by SMS or phone call.
- Copy your templates from the original account to the new one (in the channel settings, by entering the original account’s ID) and recreate any that can’t be copied; both accounts must be in the same business portfolio (same Business ID).
- Activate the channel within 14 days. To minimize downtime during the migration, Salesforce suggests starting with a test or low-traffic number.
Since September 23, 2026, Meta has separated the WhatsApp account (the number) from the messaging account (templates, billing and webhooks). In practice, switching providers now means sharing the WhatsApp account with the new partner. Our guide on how to switch WhatsApp API providers covers the precautions that keep you from losing the number.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Option 2: WhatsApp in Marketing Cloud
In Marketing Cloud Engagement, WhatsApp is configured from Mobile Studio, and Salesforce also documents Unified WhatsApp, which brings marketing and service into a single channel. Two notes in the documentation weigh heavily on your design:
- Separate accounts. The WhatsApp channels in Marketing Cloud Engagement and Service Cloud require different WhatsApp accounts, unless the channel is created with Unified WhatsApp.
- A free number. The number used in Marketing Cloud Engagement can’t be associated with an existing personal or business WhatsApp account.
Option 3: Partner Messaging (formerly Bring Your Own Channel)
Bring Your Own Channel for Messaging was renamed Partner Messaging, and BYOC for CCaaS became Partner Contact Center Messaging. The idea is to connect an external messaging service to the Salesforce conversation platform so conversations show up in the Service Console with Omni-Channel routing.
There are two ways to use it:
- A partner package from AppExchange. The admin installs the managed package of a provider that has already built the integration. Some settings appear only if the partner supports them.
- Your own build. A developer sets up the connection with an access token, a custom platform event and a Conversation Channel Definition record, and implements the message exchange between Salesforce and the WhatsApp API.
It’s the most labor-intensive option, but it puts a number that stays with your own provider right inside the Salesforce console.
Option 4: custom integration through the API
In many sales projects, Salesforce doesn’t need to be the inbox: it needs to know the customer reached out and to trigger messages when a record changes.
| Flow | Trigger | What happens |
|---|---|---|
| WhatsApp → Salesforce | messages webhook from the official API | Your service looks up the lead or contact by phone number, creates it if it doesn’t exist and logs a task |
| Salesforce → WhatsApp | Record change (opportunity stage, case closed) | A Flow calls your URL or the provider’s API with the template for that stage |
For the second flow, Flow Builder has the HTTP Callout action, which calls an HTTP API without code. First, the admin creates an external credential and a named credential for authentication; then, in the Flow, they add an Action > Create HTTP Callout element, enter the endpoint and method (POST is available), and Flow Builder generates the reusable action. If your team prefers code, an Apex callout does the same thing.
Outside the 24-hour customer service window, only approved templates go out: proposal sent or payment pending usually counts as utility; an offer for a lost opportunity is marketing (see template categories).
Example: WhatsApp webhook creating a task in Salesforce
The code receives the webhook from the official API, looks up the lead by phone number with SOQL, creates it if it doesn’t exist and logs the message as a Task. SF_TOKEN and SF_INSTANCE come from your connected app’s OAuth.
import express from "express";
const app = express();
app.use(express.json());
const SF = `${process.env.SF_INSTANCE}/services/data/${process.env.SF_API_VERSION}`;
const sfHeaders = {
Authorization: `Bearer ${process.env.SF_TOKEN}`,
"Content-Type": "application/json",
};
const seen = new Set(); // in production, use a database or Redis
async function sf(path, opts = {}) {
const r = await fetch(SF + path, { ...opts, headers: sfHeaders });
if (!r.ok) throw new Error(`Salesforce ${r.status}: ${await r.text()}`);
return r.status === 204 ? null : r.json();
}
app.post("/webhook/whatsapp", async (req, res) => {
res.sendStatus(200); // respond fast and process afterwards
const value = req.body.entry?.[0]?.changes?.[0]?.value;
const msg = value?.messages?.[0];
if (!msg || seen.has(msg.id)) return;
seen.add(msg.id);
const phone = msg.from; // digits only, with country code
if (!phone) return; // customer with a username: handle by BSUID
const name = value.contacts?.[0]?.profile?.name ?? phone;
// Store the phone in the same format as WhatsApp so the lookup works
const q = encodeURIComponent(
`SELECT Id FROM Lead WHERE Phone = '${phone.replace(/\D/g, "")}' LIMIT 1`
);
const search = await sf(`/query?q=${q}`);
let leadId = search.records?.[0]?.Id;
if (!leadId) {
const created = await sf("/sobjects/Lead", {
method: "POST",
body: JSON.stringify({
LastName: name,
Company: "WhatsApp",
Phone: phone,
LeadSource: "WhatsApp",
}),
});
leadId = created.id;
}
const text = msg.type === "text" ? msg.text.body : `[${msg.type}]`;
await sf("/sobjects/Task", {
method: "POST",
body: JSON.stringify({
WhoId: leadId,
Subject: "WhatsApp received",
Description: text,
Status: "Completed",
}),
});
});
app.listen(3000);
The example leaves out signature validation, queuing and contact lookup. For production, see integration architecture with queues, retries and idempotency and the pattern for webhook signature validation.
If you’d rather not run a server, the same logic works in n8n. The general CRM patterns (logging conversations, creating leads, sending a template per stage) are covered in how to connect the official WhatsApp API to your CRM; for other CRMs in this same format, see Pipedrive and Zoho CRM.
How to choose
- Support will work in the Service Console and you’re fine with Salesforce as the number’s provider: enhanced channel.
- The goal is marketing journeys inside Marketing Cloud: Marketing Cloud WhatsApp, with its own WhatsApp account.
- You want the Salesforce console, but the number stays with your provider: Partner Messaging, with a partner package or your own build.
- Salesforce is the CRM, while customer service, AI or campaigns run in another system: custom integration.
Decide up front where the number will live so you don’t have to migrate twice.
How to do this with Vectalk
Vectalk is a proxy for the official WhatsApp API and fits option 4 and, with your own build, option 3 (Vectalk has no AppExchange package). You register your service’s URL with POST https://apis.vectalk.com.br/api/webhooks and receive Meta’s payload unchanged; to send the template for a stage, the Flow (HTTP Callout) or your service calls POST https://apis.vectalk.com.br/api/messages with the same JSON as the Cloud API. Vectalk has no built-in inbox, AI or bulk messaging: customer conversations stay in Salesforce (via Partner Messaging, with your own build) or in whatever tool you connect. Billing is prepaid: you pay the monthly plan fee, top up a balance, and each delivered message is deducted from that balance, with no card registered with Meta. See the webhooks documentation and sending a template, or create your account at apps.vectalk.com.br/register.
Frequently asked questions
Does Salesforce have a native WhatsApp integration?
Yes. Agentforce Service has the enhanced WhatsApp channel, and Marketing Cloud has its own WhatsApp channels. In both cases, the WhatsApp account is created through the Salesforce flow.
Can I use a number that’s already with another provider on the native Salesforce channel?
Yes, by migrating it. Salesforce documents the migration: turn off two-step verification, create a profile with the same name, verify the number and copy (or recreate) the templates within the same business portfolio. After that, the number is served by the Salesforce channel.
Can I use the same number in Service Cloud and Marketing Cloud?
The Marketing Cloud Engagement documentation says its WhatsApp channels and those in Service Cloud require separate WhatsApp accounts, except when the channel is created with Unified WhatsApp. Otherwise, plan for different numbers or keep marketing outside Salesforce.
How much does each message cost?
It depends on who sends it. On the native channel, Salesforce charges message credits; outside Salesforce, Meta’s rate card applies, passed through by your provider. Meta’s rates for recipients in Brazil, in Brazilian reais (BRL), since October 1, 2026: marketing R$ 0.3217; utility, authentication and service R$ 0.0350, with an allowance of 1,000 service messages per month per number. Run the numbers in the WhatsApp API cost calculator.
Official sources consulted on November 10, 2026: Create or Migrate to an Enhanced WhatsApp Channel (Salesforce), Considerations for WhatsApp Channels (Salesforce), Send Template-Based Automated Messages in WhatsApp (Salesforce), WhatsApp for Service Cloud (Trailhead), Get Started with WhatsApp Messaging in Marketing Cloud Engagement (Salesforce), Migrate to Unified WhatsApp (Salesforce), Create a Bring Your Own Channel for Messaging Channel (Salesforce), Configure an HTTP Callout Action (Salesforce), Pricing (Meta), Template categorization (Meta), Vectalk webhooks.
Put your business on the official WhatsApp
Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.
