Set up Salesforce with your AI assistant
Would you rather be guided than read a guide? Copy the prompt below and paste it into ChatGPT, Claude, Gemini, Copilot or whichever AI assistant you use. It walks you through connecting Salesforce to Wassenger one step at a time, waits for you at each screen, and helps you if Salesforce shows an error.
- Click the copy button on the prompt below, or the download button to save it as a file.
- Open a new conversation with your AI assistant and paste it, or attach the file.
- Answer its first questions and follow along with Salesforce and Wassenger open in other tabs.
Even quicker: click Copy page at the top of this page and choose Open in ChatGPT, Open in Claude, Open in Gemini or Open in Grok. It copies this whole page for you and opens your assistant: just paste it into the chat.
Never paste your Consumer Secret, passwords or verification codes into the chat. Your assistant doesn't need them: they only go into Salesforce or into the Connect Salesforce page. The prompt tells it never to ask for them.
The prompt
You are going to guide me, step by step, to connect my Salesforce organization to
Wassenger, the WhatsApp platform my team uses. Once connected, every WhatsApp
conversation and call on the numbers I choose is logged as a Task on the matching
Salesforce Contact or Lead. Everything you need is below. Treat it as the only source
of truth: if something I see doesn't match it, ask me to describe the screen instead
of guessing.
HOW TO GUIDE ME
- Reply in the language I write to you in. Keep button and field names in English,
exactly as quoted here, because that's what my screens show, and write them in bold.
- Give me one step at a time, short, and wait until I tell you it's done before the
next one.
- If I'm stuck, ask me what I see on the screen or what the message says, word for
word.
- SECURITY: never ask me for my Consumer Secret, passwords or verification codes, and
tell me not to paste them if I start to. I may share the Consumer Key or an error
message if it helps. Never suggest extra OAuth scopes or settings that aren't listed
here.
START BY ASKING ME, one question at a time:
1. Am I the owner or an administrator of the Wassenger account? (Required.)
2. Which Salesforce edition do we have? It works with Enterprise, Unlimited,
Performance and Developer, and with Professional only if it includes API access. It
does not work with Starter, Essentials or Group.
3. Does my organization already have an External Client App for Wassenger? If
yes, skip to STEP 3.
4. If not: does my Salesforce user have the "Create, edit, and delete External Client
Apps" permission? Salesforce administrators have it. If I don't, a Salesforce admin
has to do STEP 2.
5. Is this a production Salesforce or a sandbox?
OTHER REQUIREMENTS (mention only if relevant)
- Each WhatsApp number to connect needs the Platform plan in Wassenger. A number
without it is gray on the connect screen and says **Needs a Platform plan**. Up to 50
numbers per connection.
- The Salesforce user who signs in to connect must be able to read Contacts and Leads,
and create and edit Tasks. To create Leads for calls from unknown numbers, they also
need to create Leads.
- A Salesforce organization can only be connected once at a time.
STEP 1. In Wassenger: copy the callback URL
- Go to "Developers" > "Connected apps", click "Connect an app" and choose
"Salesforce". Direct link:
https://app.wassenger.com/developers/apps/connect?bridge=salesforce
- On the "Connect Salesforce" screen, in the "Before you start" block, click "Copy"
next to the callback URL. Keep that screen open.
- The callback URL is only for pasting into Salesforce. Opening it in a browser shows
an error, which is normal.
STEP 2. In Salesforce: create the External Client App
2.1 Open "Setup" (gear icon, top right) > "Apps" > "App Manager". Click "New App" >
"New External Client App".
2.2 Basic Information: "External Client App Name": any name, such as WhatsApp (the API
Name fills itself in). "Contact Email": my email. "Distribution State": "Local".
Leave everything else empty.
2.3 Open "API (Enable OAuth Settings)" and tick "Enable OAuth". In "Callback URL",
paste the URL from STEP 1, exactly. In "OAuth Scopes", select "Manage user data
via APIs (api)" and click the right arrow (โธ) to move it to "Selected OAuth
Scopes"; do the same with "Perform requests at any time (refresh_token,
offline_access)". Only those two scopes.
2.4 "Flow Enablement": leave every option off. "Security": tick "Require secret for
Web Server Flow" and "Require secret for Refresh Token Flow". PKCE, refresh token
rotation and the refresh token time-to-live are already on and locked: leave them.
2.5 Click "Create". The app opens marked "Local" and "Enabled".
2.6 Open the "Settings" tab > "OAuth Settings" > "Consumer Key and Secret". Salesforce
emails a verification code first. Copy the Consumer Key and the Consumer Secret,
but keep them out of this chat.
Note: Salesforce can take a few minutes to start accepting a new app.
STEP 3. Connect the numbers
- Back on the "Connect Salesforce" screen in Wassenger, choose the WhatsApp
numbers and click "Connect Salesforce".
- On the confirmation page, check the numbers and click "Continue to Salesforce"
(valid for 10 minutes).
- A page called "Connect Salesforce" opens (valid for a day). Under "Then, paste them
here": choose "Production" or "Sandbox". If the organization signs in on its own
address instead of the standard Salesforce login, open "My organization does not use
the standard Salesforce login" and paste any URL from that Salesforce. Paste the
"Consumer Key" and "Consumer Secret" and click "Connect".
- The page never keeps the Consumer Secret: after any error the field is empty, so it
has to be pasted again before clicking "Connect".
STEP 4. Sign in and allow
- Salesforce asks to sign in, then shows what the app may do: click "Allow" (within
about 10 minutes).
- Wassenger checks the API version and access to Contacts and Leads, then shows
the connection page with the status "Connected".
STEP 5. Check it works
- In Salesforce, a Contact or Lead must have the customer's WhatsApp number in "Phone"
or "Mobile", ideally in international format such as +34 600 111 222.
- If that record was just created or edited, wait 15 minutes before testing.
- Exchange a WhatsApp message with that number from a connected number (the test phone
must not be one of the connected numbers). The record's activity shows a completed
Task like "WhatsApp (Cloud API) ยท Sales ยท 1 message".
- In Wassenger, the chat's contact panel shows a "Connected apps" card with
"Salesforce" and a link to the record.
FIXING ERRORS ON THE CONNECT SALESFORCE PAGE
- "Salesforce does not recognize this Consumer Key": the app was created minutes ago
(wait 2 or 3 minutes and retry), the key was copied incompletely or with a space,
Production/Sandbox is wrong, or the organization needs the custom login option.
- "Salesforce recognized the Consumer Key, but your External Client App has a
different Callback URL": paste the exact callback URL from the page into the app's
"Settings" > "OAuth Settings" > "Callback URL", save, wait a few minutes, retry.
- "Salesforce refused the Consumer Secret for this Consumer Key": copy the secret
again from the same app.
- "Salesforce does not know this Consumer Key in the organization you signed in to":
the browser is signed in to another Salesforce organization. Sign out or use a
private window, and sign in to the one that has the app. Check Production/Sandbox.
- The link no longer works: it expires after use, after a day, or when a newer one
replaces it. Start again from "Connected apps".
FIXING ERRORS AFTER ALLOW
- "You chose Deny in Salesforce": start again and click "Allow".
- "Your Salesforce admin needs to give you access": the app only admits approved
users. A Salesforce admin gives the user access on the app's "Policies" tab in
"External Client App Manager", or someone with access connects instead.
- "Your Salesforce is blocking" the app: a Salesforce admin enables OAuth for the app
again in "Setup" > "External Client Apps" > "OAuth Usage".
- "Salesforce didn't finish connecting": try again; if it repeats, contact
Wassenger support.
- "Salesforce is not connected" followed by: "already connected to another install"
(use or revoke that connection), "connected to a different Salesforce organization"
(Reconnect only works with the same organization; a refreshed sandbox counts as
different), "revoked while you were connecting it" (connect again), "could not
finish checking the connection" (retry in a few minutes), a missing permission (the
user needs to read Contacts and Leads and create and edit Tasks), or no API access
(the edition can't be connected).
IF A CONVERSATION DOESN'T APPEAR IN SALESFORCE
- The number must be in "Phone" or "Mobile" of exactly one Contact (or, with no
Contact, exactly one Lead). Two records with the same number means nothing is
logged.
- Messages that arrived before the record existed are never logged afterwards. After
a record is created or fixed, logging starts about 15 minutes later.
- Not logged: messages sent by the API, chatbots, automations or campaigns; replies
typed in the WhatsApp app on a phone instead of in Wassenger; history from
before connecting.
- Tasks group messages per record, per WhatsApp number and per UTC day.
- Calls are logged only on WhatsApp Business API numbers without coexistence. Calls
from numbers not in Salesforce are logged only if "Calls from unknown numbers" is
set to "Create a contact", which creates a Lead. That option is on the connection
page in "Connected apps".
TO DISCONNECT
- In "Developers" > "Connected apps", click "Revoke" on the Salesforce row and
confirm. Tasks and Leads stay in Salesforce.
- To confirm the access was cancelled: in Salesforce, "Setup" > "External Client Apps"
> "OAuth Usage", click the app's "User Count" and click "Revoke" on the user if one
is still listed.
FULL GUIDES, if I want to read more:
- Setup: https://app.wassenger.com/help/salesforce-connect
- What gets logged: https://app.wassenger.com/help/salesforce-logging
- Troubleshooting: https://app.wassenger.com/help/salesforce-troubleshooting
- Disconnect: https://app.wassenger.com/help/salesforce-disconnect
Start now with your first question.
