Implementing WhatsApp Click to Chat in Salesforce – Begin a Chat With Anyone
A customer is key of business:
“Social media is not a media. The key is to listen, engage, and build relationships.” – David Alston
As the business is growing, the number of customers are also getting increased. Customers are happy if they are felling love with your product and service.
In this era, A business team should be connected to the customer in every medium. Increasing customer also can increase response time. It can be problematic.
After at the end of this blog, You will able to implement a cool way to start contacting your customers an easy way of using WhatsApp Chat. This blog is not going to increase your revenue by 10b. But it can save few or more than few seconds.
The Problem:
You are handling hundreds of contacts and you want to start communication on WhatsApp. One way is that you store a contact phone/mobile number in your cell phone. Then you search for a particular contact in your WhatsApp to start a conversion.
The Solution:
Instead of doing that, You can use WhatsApp’s Click to Chat feature. Now you can start a conversation with anyone without having a number in your contact book.
WhatsApp’s Click to Chat feature allows you to begin a chat with someone without having their phone number saved in your phone’s address book. As long as you know this person’s phone number, you can create a link that will allow you to start a chat with them. By clicking the link, a chat with the person automatically opens. Click to Chat works on both your phone and WhatsApp Web.
This URL should be used for this feature: https://wa.me/whatsappphonenumber/?text=urlencodedtext
Implementing WhatsApp’s Click to Chat in 5 minutes:
Steps in Salesforce classic UI:
1. Click on Setup (Top-Right)
2. In the Left Sidebar go to: Build -> Customize -> Contacts -> Buttons, Links, and Actions
3. Click on New Button or Link
4. Fill out the button information as below:
Label: Start WhatsApp Chat
Name: Start_WhatsApp_Chat
Display Type: Detail Page Button
Behavior: Display in New Window
Content Source: URL
Then put the following URL in the text area then Save it.
5. Add this button to page layout.
Steps in Salesforce Lightning UI:
1. Click on Gear button on the Top-Right corner. Then click on Setup.
2. Search for Object Manager in the left sidebar.
3. Select Contact object.
4. Click on Buttons, Links, and Actions in the sidebar
5. Then Click on New Button or Link.
6. The follow from 4th steps.
Note: You can use this with any custom and standard object. I have taken the example with Contact object.
You have done it. Let’s see your work in action.
Click on the Start WhatsApp Chat from the browser or Salesforce mobile app.
Vishnu Sir I am actually amazed to see its that simple. I anticipated some heavy integrations with WhatsApp and Salesforce 😃.
It is simple. 🙂 It’s not integration. It is just simple URI to open Whatsapp.
After configuration, when I click a link did not find anything, I just found a page of list of languages. Please suggest me what to do?
Can you please post screenshot here. Or try again copying code from here: https://gist.github.com/TheVishnuKumar/af0f5639d77ca7dbd93aafdce5cfa42b#file-whatsapp-click-to-chat-in-salesforce
Hi Vishnu i’m trying to implement WhatsApp Click to Chat in Salesforce. i’m facing the error as follows. could you please help me how it will be.
Error: Syntax error. Missing “
Please copy code and try again.
Its Giving me Syntax error :
Error: Syntax error. Missing ”
Functions
Error: Syntax error. Missing “
Please copy code and try again.
Hi, im getting Error: Syntax error. Missing “
Please copy code again and try again.
Tried many times in my developer org but it is showing same error.
Please copy the code from here: https://gist.github.com/TheVishnuKumar/af0f5639d77ca7dbd93aafdce5cfa42b#file-whatsapp-click-to-chat-in-salesforce
Hi Vishnu Sir,i created thr button,but when i click on it is navigating me the to the page in the following link, can you please help
https://www.screencast.com/t/mbgEbGnbINq
Thanks,
kushvanth.
After redirecting the URL, the controls goes to WhatsApp. I am not sure, Why its happening to you. I will post if i find anything about it.
Hiii Vishnu
I tried to implement this, but i am getting an error as UNKNOWN_URL_SCHEME.
Can u please help me
Can you please post the screenshot here?
Hi Vishnu,
I am facing error “This site cannot be reached”.
Thanks & Regards,
Sathish Kumar S R
Can you please post the screenshot here?
Is it possible to store the WhatsApp chat details back into Salesforce for future reference. Possibly in the notes section?
I believe, There is no public api that we can use. But you can use whatsapp business api.
Hi Vishnu,
I tried to implement this but i got the error(See attached Image).
And when i use Country Code in Phone number then it redirect me to “https://www.whatsapp.com/download/” .
can you please help me to implement this.
Thanks
Manish
Sorry Not getting options for uploading image. The error i got is “Phone number shared via url is Invalid
Are you providing the mobile code ex +91? If no please add this.
Yes i am providing the mobile code. It redirects me to “https://www.whatsapp.com/download/” .
Hi Manish, Can you please check with this article. It is from Whatsapp.
https://faq.whatsapp.com/en/android/26000030/
Yes, Got succeded now. Thanks for your help! 🙂
Not working sir. Thanks
What is the error that you are getting?