Whatsapp Integration With SuiteCRM

How to integrate Whatsapp with SuiteCRM ? for free >

1 Like

You could look into coding you own extension that would require your own Whatsapp API Key and knowledge of SuiteCRM development or you could use on of the many Whatsapp extensions you can find here

Explanation:

Follow the above video here:

The repo used in the video example:

More code examples:
https://github.com/search?q=whatsapp+api+business+language%3APHP&type=repositories&l=PHP

Is it Applicable for the suitecrm also? is it free or cost…

@Ragavendran
You would need to buy a license, subscribe to a license, or code your own custom SuiteCRM module or extension to communicate through the WhatsApp Business API, and reach Targets, Leads, Contacts and Accounts thru WhatsApp.

Every WhatsApp Business Account receives 1,000 free “service” conversations each month.

When customers send a message from an Ad that clicks to WhatsApp or Facebook Page call-to-action button, that conversation is free for 72 hours.

Businesses using WhatsApp platform are charged per 24-hour conversation, with different rates by conversation category.

There are four conversation categories on the WhatsApp Business Platform: marketing, utility, authentication, and service.

Businesses can initiate a marketing, utility or authentication conversation with a template message.

Scroll to the bottom of the above page “Business Platform Pricing”, to find out how many cents does WhatsApp Business API charge your business, per conversation, in your business’s country.

Example: Business in India, Cost per 24 hour conversation, in Indian Rupee:
Marketing: 0.7265 inr (0.0088 usd at today’s rate)
Utility 0.3082 inr (0.0037 usd)
Service 0.2906 inr (0.0035 usd)
Authentication: N/A inr (0.0000 usd)

But Paying for the msg is fine…How do I Integrate please the steps one by one …By using api for Intregration is fine only no Tell the methods for that?

Here is a step-by-step guide showing how to send messages in WhatsApp Business API:

Step 1: Create a WhatsApp Business Account To use the WhatsApp Business API, you need to create a WhatsApp Business Account. You can do this by downloading the WhatsApp Business app and setting up a business profile.

Step 2: Set up a server You need to set up a server to handle the API requests. WhatsApp provides a Docker container that you can use to set up your server. Here are the steps to set up a server:

  1. Download and install Docker.
  2. Download the WhatsApp Business API client (Developer Single Instance) from the relevant Facebook Developer page with all client types.
  3. Extract the files and navigate to the “docker-compose.yml” file.
  4. Open the file and set the environment variables as described in the documentation.
  5. Run the following command in your terminal: “docker-compose up -d”. This will start the server.

Step 3: Obtain an authorization token To use the WhatsApp Business API, you need to obtain an authorization token from WhatsApp. Here are the steps to obtain a token:

  1. Register for the WhatsApp Business API using your business phone number and follow the verification process.
  2. Follow the steps on the Facebook Developer website to create a Facebook Business Manager account, a Facebook Page, and a WhatsApp Business Account.
  3. Generate a QR code for your WhatsApp Business Account.
  4. Use the WhatsApp Business app to scan the QR code.
  5. Follow the instructions on the Facebook Developer website to generate an authorization token.

Step 4: Send a message Here is an example code in PHP using cURL to send a message through the WhatsApp Business API:

$phone_number = "whatsapp_number"; // The phone number of the recipient in international format
$message_text = "Hello, this is a test message from the WhatsApp Business API!"; // The message text

$api_endpoint = 'https://graph.facebook.com/v18.0/<WHATSAPP_BUSINESS_ACCOUNT_ID>/messages';
// for more details https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/

$api_token = "YOUR_API_TOKEN"; // Replace with your own API token
$data = [
'phone' => $phone_number,
'body' => $message_text
];
$ch = curl_init($api_endpoint);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json', "Authorization: Bearer $api_token"));
$result = curl_exec($ch);
curl_close($ch);

Replace whatsapp_number with the phone number of the recipient in international format (e.g. “+1234567890”). Replace YOUR_API_TOKEN with your actual API token obtained from WhatsApp.

In the example code, we are sending a message to the WhatsApp Business API using cURL. We set the appropriate headers and parameters to authenticate and send the message. The API endpoint should be replaced with your own server URL.

Note that the process of setting up and using the WhatsApp Business API can be complex and requires technical expertise.

It is important to carefully read and follow WhatsApp’s policies and guidelines to avoid violating their terms of service.

2 Likes

Hi @chris001
This is fine I am going to use the Cloud Api for the Whatsapp Integration.
This is workout for this scenairio

1 Like

Hi @chris001
we can send and receive whatsapp message to multiple number using this api url
https://graph.facebook.com/v18.0

1 Like

The latest API URL version is:
https://graph.facebook.com/v20.0

See docs here: