WhatsApp Integration
Integrate WhatsApp in ChatDash
Last updated 5 months ago
Prerequisites
A Meta Developer account
A Business Manager account
Your ChatDash agent set up and running
Step 1: Create a Meta App
Go to the Meta for Developers website.
Click “Create App” and select “other” and “Business” as the app type.
Follow the prompts to set up your app with a name and details.
Step 2: Add WhatsApp to Your App
Find “WhatsApp” and click “Set Up”.
Follow the configuration steps provided by Meta.
Step 3: Set Up Business Manager
Go to Meta for Business website.
Navigate to “Settings” > “Users” > “System Users”.
Add a system user.
Step 4: Give Access to the System User
In Business Manager, go to “Settings” > “Accounts” > “Apps”.
Click “Assign people”.
Choose system users and assign full control.
Refresh the page.
Step 5: Generate Access Token
Go to “Settings” > “Users” > “System Users”.
Choose a system user and click “Generate Token”.
Select your app and token expiration.
Assign three permissions: business management, WhatsApp business management, and WhatsApp business messaging.
Copy the Token and click “Done”.
Step 6: Create a ChatDash Integration
Go to your ChatDash agent settings page by clicking on the agent in the Agents page.
Click on the “Channels” tab.
Click on the WhatsApp’s “Connect” button.
Enter the access token you generated in the previous step.
Click on “Create Integration”.
Step 7: Configure and Subscribe to Webhook
Go to Meta for Developers website.
Navigate to “WebHook” under “Configuration”.
Copy “Callback URL” and “Verify Token” from ChatDash and paste them.
Subscribe to “Message”.
Step 8: Test Your Integration
Go to “API Setup” in your Meta app.
Enter your phone number under “To”.
Send a message and check if you receive it.
You can also see the conversation in your client page or preview page.
Step 9: Troubleshooting
If you don’t receive messages, double-check your webhook URL and verify token.
Ensure your agent connected to ChatDash is published and active.
Check Meta’s developer console for any error messages or failed deliveries.
Step 10: Moving to Production
Once testing is successful, you’ll need to go through Meta’s app review process to move your app to production. This involves submitting your app for review and potentially providing additional documentation about your use case.
Important Notes
Keep your access tokens and verify tokens secure.
The test phone number is for development only. For production, you’ll need to use a verified business phone number.
Stay updated with Meta’s WhatsApp Business API documentation, as requirements and processes may change.
Periodically review and rotate your access tokens as part of your security measures.