Connect WhatsApp to Click2Reply live chat
Messages your customers send on WhatsApp arrive in Click2Reply as chats, and your agents’ replies go back through WhatsApp.
Connect in the agent app
Section titled “Connect in the agent app”- In the agent app, open Settings > Messaging apps and choose WhatsApp.
- Sign in with Facebook, then pick or create your WhatsApp Business account and number. Meta bills conversations to your account. Or choose to connect with your own app, and fill in the fields below.
- Under New chats go to, pick the group that answers this channel, then connect.
- Finish the steps the app shows in the provider's console, below.
What you need
Section titled “What you need”From your own Meta app: a system user access token with WhatsApp permissions, the number's phone number ID, the WhatsApp Business Account ID, and the app secret, all in Meta's developer dashboard and Business Manager.
| Field | Key | |
|---|---|---|
| Access token | access_token | required, secret |
| Phone number ID | phone_number_id | required |
| WhatsApp Business Account ID | waba_id | required |
| App secret | app_secret | required, secret |
A secret is stored encrypted and never shown again, only a hint of it.
In the provider’s console
Section titled “In the provider’s console”The app lists these under One more step in the provider's console, with the exact values to paste:
- In your Meta app's Webhooks settings, subscribe with the callback URL and verify token the app shows.
- Subscribe to the webhook fields it lists.
Connect with the API
Section titled “Connect with the API”With a token holding channels.manage, connect with one call; group_id is optional:
curl -sS -X POST "https://api.click2reply.com/v1/channels/connections" \ -H "Authorization: Bearer $C2R_TOKEN" \ -H "Content-Type: application/json" \ -d '{"channel":"whatsapp","name":"WhatsApp support","credentials":{"access_token":"<access_token>","phone_number_id":"<phone_number_id>","waba_id":"<waba_id>","app_secret":"<app_secret>"}}'The answer is { connections, manual_steps }: the connection, and each step left to do by hand as a code and the value to paste, such as the webhook URL.