Problem connecting rasa chatbot with facebook messenger

I am trying Connecting rasa chatbot to Facebook Messenger,The rasa chatbot works perfectly in rasa shell. I am trying to integrate this rasa chatbot to facebook messenger. I have created a facebook page. Also developed a facebook app messenger from developers.facebook.com and added the access token and secret in credentials.yml and validated the webhooks through ngrok but when i Starts a Rasa server using command:rasa run. i am getting this problem

2019-12-09 10:21:22 INFO     root  - Starting Rasa server on http://localhost:5005
2019-12-09 10:21:28.437090: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)

please help me to solve this issue.

The error seems to be related to cuda. How did you installed rasa? What version of tensorflow are you using?

Can you please start your bot in debug mode, just add the --debug flag, and paste the log output here? Thanks.

Hello , i have installed rasa following rasa installation guide.using this command: pip3 install rasa-x --extra-index-url Simple Index and i am currently using tensorflow version:1.14.0 and my result is :

What rasa version are you using?

You mentioned that in rasa shell the bot is actually working. Do you see any other error when you try to connect to Facebook Messenger? Just to be sure, you followed all steps described here: Facebook Messenger ?

Hi , i am using Rasa Core version: 0.14.5 , rasa-nlu version: 0.15.1 and rasa-sdk version :1.4.0 . yes, I followed all steps described in rasa doc to integrate chatbot with facebook messenger, i faced a problem to Set up a Webhook and select at least the messaging and messaging_postback subscriptions but after that i solved that issue, this the screenshot for that.

I have already added verify token, secret and page_access_token to the credentials file. Here, is the screenshot of that.

I have already added verify token, secret and page_access_token to the credentials file. Here, is the screenshot of that.

I have already added the endpoint for receiving Facebook messenger messages Here, is the screenshot of that:

mmhh… and you do not see any other error in the output?

Did you considered updating your Rasa version? We are already at 1.5.2.

it looks like your action_endpoint is pointing at the facebook webhook, that shuold just stay as is (localhost:5055/webhook if you’re using rasa run actions)

Thank you for your reply. i integrated my chatbot with facebook messenger , now it is chatting with me.But when when i tried to perform some custom action that time won’t work.it throwing this error:

yep, just a small error there. your custom action is (or should be running) on port 5055, not 5005. 5005 is the rasa server

thank you for your reply, i know 5005 is the rasa server but where to add port:5055

in your endpoints.yml

yes i added in endpoints.yml but still i am getting error.this the screenshot for that.

you need to start you action server. To do that, open a new terminal tab and run rasa run actions, see Actions

Thank you for your reply. i also ran rasa run actions but it was not working custom action. now i am getting another problem “The Callback URL or Verify Token couldn’t be validated. Please verify the provided information or try again later” . Because ngrok webhook session expried within 7 .54 hours, so i am trying to established connection again for this reason the is comming.Is their any solution for this. this the screenshot for that.

Hi there, i am successfully conntected my chatbot with facebook messenger but one problem is their ,it can not perform custom action and showing warning massage “Facebook API currently allows only up to 3 buttons. If you add more, all will be ignored.” Please anyone can help me to write custom and solve this error.his the screenshot for that

This is my action.yml file : This is my chat screen shot

reading the error, it looks like you are trying to add more buttons than facebook allows. If you just include 1-2 buttons, does it work correctly?

Thank you for your reply,yes chatbot is working fine when i added 1-3 buttons.But i want to add more than 3 button, how can i add ? this the screenshot for working 3 button.