Posts tagged with whatsapp

Following to this documentation https://developers.facebook.com/docs/whatsapp/business-management-api/phone-numbers about whatsapp business accounts, it is possible to have multiple phone numbers in one account. Does someone know how you can define from which number a message is send, when sending a message to a client? There is nothing in the api about sending messages.

following to the documentation you can read the phone numbers and their whatsapp id via

curl -X GET \ 'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/phone_numbers' \   -d 'access_token=your-access-token' 

example result

{   "data": [     {       "verified_name": "Jasper's Market",       "display_phone_number": "+1 631-555-5555",       "id": "1906385232743451",       "quality_rating": "GREEN"     },     {       "verified_name": "Jasper's Ice Cream",       "display_phone_number": "+1 631-555-5556",       "id": "1913623884432103",       "quality_rating": "NA"     }   ], } 

I would expect something like a senderId field when sending a message.

While trying Developer setup: Single Instance from WhatsApp Business Api with following documentation at https://developers.facebook.com/docs/whatsapp/installation/dev-single-instance#setup

Getting the following error while trying Initial Setup#Step 7

Their was an error in connecting https://localhost:9090/v1/health 

Using postman collection as suggested in Step 6. Seems to be docker issue, but not sure.

Any idea?

I'm trying to send a document media message in Whatsapp Business API using LINK instead of uploading the file, but I got the following error:

"errors":[         {            "code":1008,          "title":"Required parameter is missing",          "details":"Parameter 'id' is mandatory for type 'document'"       }    ] 

Here is the JSON request object:

{      "recipient_type":"individual",    "to":"TELEPHONE_NUMBER_HIDDEN",    "type":"document",    "document":{         "link":"google-drive/https://drive.google.com/open?id=HIDDEN_DOCUMENT_ID",       "provider":{            "name":"google-drive"       },       "caption":"CAPTION MESSAGE"    } } 

Do you have any idea regarding this? I can't use external services like Twilio.

I'm setting up a new connection between whatsapp and zendesk to support better Cust.service experience. The actual goal is to be able to sendout automated response through whatsapp that is triggered from salesforce, but I'm quite new to this and have limited knowledge about whatsapp API.

In our facebook business manager, I have created the Account API WhatsApp Business and also connected the phone number to the API whatsapp business, but the next step is confusing me, which I need to register the app using /v1/account node account. I dont understand this part.

further step is "Request a Registration Code" Send the telephone number and vname certificate string encoded in your base64 to request the registration code. You can request to receive your code via SMS or voice call.

Use endpoint / v1 / account to request your registration code.

POST /v1/account

{ "cc": "your-country-code", "phone_number": "your- phone-number-without-country-code", "method": "sms" | "voice", "cert": "your-verified-name-cert-in-base64", "pin": "your-existing-6-digit-pin" # required if two-factor verification is enabled }

I expect to have whatsapp template that can be used by our registered phone number and set up auto response, then later we can create trigger in salesforce using something (which I still dont know)