# Connect rasa with whatsapp api without using twilo or any other providers

**URL:** <https://forum.rasa.com/t/connect-rasa-with-whatsapp-api-without-using-twilo-or-any-other-providers/44904>\
**Category:** Rasa Open Source\
**Created:** [June 22, 2021, 7:21am UTC](https://forum.rasa.com/t/connect-rasa-with-whatsapp-api-without-using-twilo-or-any-other-providers/44904 "2021-06-22T07:21:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sage](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sage](https://forum.rasa.com/u/sage)\
**Post date:** [June 22, 2021, 7:21am UTC](https://forum.rasa.com/t/connect-rasa-with-whatsapp-api-without-using-twilo-or-any-other-providers/44904/1 "2021-06-22T07:21:28Z")

</div>

So I have my whatsapp business account verified and I can use whatsapp api to send messages and receive messages on my whatsapp business number. I made a flask webhook to receive messages sent to my whatsapp business number and send messages back to users , is there any way I can connect that to my rasa chatbot or any guide lines I should follow to make it happen?

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [June 23, 2021, 7:56pm UTC](https://forum.rasa.com/t/connect-rasa-with-whatsapp-api-without-using-twilo-or-any-other-providers/44904/2 "2021-06-23T19:56:17Z")

</div>

You can create a [custom connector](https://rasa.com/docs/rasa/connectors/custom-connectors/) to do this; it sounds like you’d need to base it off of the REST connector. Since the Whatsapp API isn’t generally available, there’s no maintained connector directly to it.

---

<div class="post-metadata">

**Author:** ![sage](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sage](https://forum.rasa.com/u/sage)\
**Post date:** [June 24, 2021, 5:42am UTC](https://forum.rasa.com/t/connect-rasa-with-whatsapp-api-without-using-twilo-or-any-other-providers/44904/3 "2021-06-24T05:42:54Z")

</div>

Hi @mloubser , so I was able to make the input channel and the bot replies to user messages from whatsapp but in the terminal. could you guide on how I could send the response back to the users whatsapp.

Like for example how where do I pass in my whatsapp URL, Headers with token and body. Like does Rasa have an object which lets me send messages to an output.

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [June 24, 2021, 3:21pm UTC](https://forum.rasa.com/t/connect-rasa-with-whatsapp-api-without-using-twilo-or-any-other-providers/44904/4 "2021-06-24T15:21:42Z")

</div>

Can you share your connector code? It should define the output channel to send messages back to.
