# Integrate WhatsApp Business Api to a project

**URL:** <https://forum.wixstudio.com/t/integrate-whatsapp-business-api-to-a-project/10625>\
**Category:** Ask the community\
**Created:** [November 13, 2022, 11:20pm UTC](https://forum.wixstudio.com/t/integrate-whatsapp-business-api-to-a-project/10625 "2022-11-13T23:20:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blinkco16](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/blinkco16/32/16503_2.png) [@blinkco16](https://forum.wixstudio.com/u/blinkco16)\
**Post date:** [November 13, 2022, 11:20pm UTC](https://forum.wixstudio.com/t/integrate-whatsapp-business-api-to-a-project/10625/1 "2022-11-13T23:20:48Z")

</div>

Hello Everybody! I’m more of a wix front end developer and not too familiar with how to use a webhook to call an external api  
whatsapp has just opened its api to customize templates and use them in our projects, we just have to have a developer account on facebook create a new app and ready we can use its api with a web hook, the following video at minute 4:40 shows how to use a webhook for an app external to facebook but how can it be integrated into wix?

[https://youtu.be/UvE5G2oTjdM](https://youtu.be/UvE5G2oTjdM)

I also found an npm that can be used to call the whatsapp api but I’m not sure how to integrate it

[https://www.npmjs.com/package/whatsapp-business](https://www.npmjs.com/package/whatsapp-business)

any advice would be a great help :clap:

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [November 14, 2022, 1:38pm UTC](https://forum.wixstudio.com/t/integrate-whatsapp-business-api-to-a-project/10625/2 "2022-11-14T13:38:22Z")

</div>

Try asking this question on the Discord server. I know that a couple of developers there did this already using velo and providers like Twilio and MessageBird.

---

<div class="post-metadata">

**Author:** ![info-senerality](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/info-senerality/32/35672_2.png) [@info-senerality](https://forum.wixstudio.com/u/info-senerality)\
**Post date:** [November 25, 2022, 3:21pm UTC](https://forum.wixstudio.com/t/integrate-whatsapp-business-api-to-a-project/10625/3 "2022-11-25T15:21:50Z")

</div>

@blink Innovations Did you find a solution to this? I’m looking for the same! 😉

---

<div class="post-metadata">

**Author:** ![John\_David](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/john_david/32/101654_2.png) [@John\_David](https://forum.wixstudio.com/u/John_David)\
**Post date:** [January 9, 2025, 10:42am UTC](https://forum.wixstudio.com/t/integrate-whatsapp-business-api-to-a-project/10625/4 "2025-01-09T10:42:03Z")

</div>

Hi @blinkco16,

Great question! Integrating the WhatsApp Business API into a Wix project can be a bit tricky since Wix has some limitations when working with server-side code and webhooks directly. Here’s how you can approach it:

1. **Using Wix Velo (Wix Code):**  
Wix Velo allows you to work with APIs and webhooks. You can use the `fetch` function in the backend to call the WhatsApp Business API.

- Set up your Facebook Developer account and WhatsApp Business API as explained in the video.
- Use Wix Velo to create backend functions for sending and receiving messages via the API.
- For handling webhooks, you’ll need to create an HTTP function in Wix Velo to process incoming requests. Here’s Wix’s guide on handling webhooks.

1. **Using NPM Package:**  
Wix doesn’t directly support npm packages, but you can use external server environments like AWS Lambda, Firebase Functions, or a Node.js server to utilize the `whatsapp-business` npm package. After setting up the server, you can connect it to your Wix site via APIs or HTTP requests.

If you need a simple approach, I’d recommend starting with Wix Velo’s built[-](https://modfcmobile.com/)in `fetch` function to integrate the API without relying on external servers. For webhooks, ensure you have a clear endpoint that Wix can listen to.
