# Handling Facebook Messenger Bot Custom

**URL:** <https://forum.rasa.com/t/handling-facebook-messenger-bot-custom/12760>\
**Category:** Rasa Open Source\
**Created:** [July 10, 2019, 5:00pm UTC](https://forum.rasa.com/t/handling-facebook-messenger-bot-custom/12760 "2019-07-10T17:00:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [July 10, 2019, 5:00pm UTC](https://forum.rasa.com/t/handling-facebook-messenger-bot-custom/12760/1 "2019-07-10T17:00:48Z")

</div>

Hi, I am working on a chatbot to integrate in facebook messenger. For now, I have a webhook event that tunel to the port 5005, where Rasa is running on my local computer. However, I want to handle specific scenarios that implies that I njeed to use my own server to receive webhook event, and then use rasa to extract intents and make prediction(when I initiate it) using rasa core. Also Is it possible to run rasa core and my own server on the same server in development (localhost). I know we can change the port. The point for me is that I need a way to receive facebook messages on my own server, with the help of rasa for nlu/core ?

It seems like it is possible to achieve this with the HTTP\_API.

Thanks in afvance for your reply.

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [July 11, 2019, 2:21pm UTC](https://forum.rasa.com/t/handling-facebook-messenger-bot-custom/12760/2 "2019-07-11T14:21:18Z")

</div>

I’m not sure if I fully understand what you are trying to achieve.

As you already pointed out, you can change the port the rasa server is running on via the flag `--port` ([Command Line Interface](https://rasa.com/docs/rasa/user-guide/command-line-interface/#start-a-server)). If you want to predict the intent and extract entities you can use the endpoint `/model/parse` ([HTTP API](https://rasa.com/docs/rasa/api/http-api/#tag/Model/paths/~1model~1parse/post)).

What else do you need? Maybe you can rephrase what you want to try. Thanks.
