whatsapp-integration.mdx 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ---
  2. title: "WhatsApp"
  3. description: "Learn how to integrate your agents with WhatsApp using Twilio"
  4. icon: "whatsapp"
  5. ---
  6. ## Feature Overview
  7. Seamlessly connect your **agents** to **WhatsApp** using **Twilio**, a messaging service that significantly simplifies WhatsApp Sender Business profile setup.
  8. ![Screenshot 2025-02-17 at 13.24.37.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_13.24.37.png)
  9. 🔒 All chats, conversations and messages are not stored in our database to ensure your or your client’s privacy.
  10. ---
  11. ## Prerequisites
  12. - A verified **Twilio Account** ([Sign up here](https://login.twilio.com/u/signup)) with a provisioned phone number.
  13. - A verified **Facebook Business account** ([Learn more](https://www.facebook.com/business/help/1710077379203657)) and a verified **WhatsApp Business Portfolio** ([How to verify your WhatsApp Business Account](https://www.facebook.com/business/help/2087193751603668?id=2129163877102343)).
  14. ## Creating a WhatsApp Agent via Twilio
  15. <Steps>
  16. <Step title="Create a WhatsApp Sender via Twilio">
  17. 1. Go to [Twilio Console](https://console.twilio.com/us1/develop/sms/senders/whatsapp-senders) and click on the **'Create New Sender'** button to begin the setup.
  18. ![Screenshot 2025-02-17 at 13.40.04.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_13.40.04.png)
  19. 2. Follow all the necessary steps on **Twilio's** end to complete the integration.
  20. Twilio has already documented the entire process, so you can refer to their official guides via this link: https://www.twilio.com/docs/whatsapp/self-sign-up
  21. ![Screenshot 2025-02-17 at 13.48.59.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_13.48.59.png)
  22. 3. Once you have a **verified** WhatsApp Sender with the status set to **Online**, you can proceed to the next steps.
  23. </Step>
  24. <Step title="Create a New WhatsApp Integration">
  25. 1. Go to https://agencii.ai/whatsapp/ and click on the **'Connect WhatsApp'** button to begin the setup.
  26. 2. Enter your Agent details
  27. ![Screenshot 2025-02-17 at 14.51.15.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_14.51.15.png)
  28. </Step>
  29. <Step title="Select or Create your Twilio Account">
  30. 1. **Select your Twilio account** from the dashboard.
  31. ![Screenshot 2025-02-17 at 15.27.03.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_15.27.03.png)
  32. 2. To add a new account, copy and paste your **Account SID** and **Auth Token** from the bottom of the Twilio dashboard.
  33. ![Screenshot 2025-02-17 at 15.27.55.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_15.27.55.png)
  34. 3. (Optional) If you have a Subaccount, paste the Subaccount SID as well.
  35. 4. Click **Create**
  36. </Step>
  37. <Step title="Add your WhatsApp Sender SID">
  38. 1. Find your WhatsApp Sender SID in the Twilio Console under **Messaging** → **Senders** → **WhatsApp Senders**, then copy it from the URL. Example: https://console.twilio.com/us1/develop/sms/senders/whatsapp-senders/details/XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  39. ![Screenshot 2025-02-17 at 15.40.42.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_15.40.42.png)
  40. 2. Add whatsapp sender on agencii
  41. ![Screenshot 2025-02-17 at 15.29.05.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_15.29.05.png)
  42. </Step>
  43. <Step title="Finalize Integration">
  44. Copy each webhook integration URL and paste it into the **Twilio WhatsApp Sender configuration profile**, ensuring each URL is placed in the corresponding textbox.
  45. ![Screenshot 2025-02-17 at 15.43.40.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_15.43.40.png)
  46. ![Screenshot 2025-02-17 at 15.42.34.png](/images/integrations/whatsapp-integration/Screenshot_2025-02-17_at_15.42.34.png)
  47. </Step>
  48. </Steps>
  49. ✅ **That's it!** Now you can chat with your Agent via WhatsApp.