I have done the setup as says in Facebook Messenger. But not getting the response in FB messenger when type Hi, Hello, etc?
Is there anything additional I need to do.please help
I have done the setup as says in Facebook Messenger. But not getting the response in FB messenger when type Hi, Hello, etc?
Is there anything additional I need to do.please help
Hi @developercitus, can you describe a bit more how is your setup? are you using ngrok? if so, do you get a 200 OK response when testing on facebook ?
are tou actually running :
rasa run --credentials credentials.yml
@jusce17 No am not using ngrok. I have deployed rasa in a test server. Yes am using the same command that you have given. The callback URL added successfully in FB app webhook.
What will be the problem. Am not getting the solution. please help
I have just create a setup here on my side,
I misspelled on purpose the page-access-token on credentials, and I noticed that:
Even if the page-access-token
is wrong, the callback url will be added successfully on facebook, (because the Verify Token
would still give the right answer )
After that I ran some tests on FB,
I started the server on debug mode: I would get 200 OK on my ngrok tunnel, my model would predict the answer but wouldn’t fire it, so I advise you to check if the page-access-token
is correct or to generate a new one
Also, run it on debug mode << rasa run --credentials credentials.yml --debug
>> so you can have more information.
cheer
@jusce17 Please see the debug mode response. Stll not found any hit here
(venv) root@test:/opt/pmv/rasa/venv# rasa run --credentials credentials.yml --debug
2020-05-05 04:04:55 DEBUG rasa.cli.utils - Parameter ‘endpoints’ not set. Using default location ‘endpoints.yml’ instead. 2020-05-05 04:04:55 DEBUG rasa.model - Extracted model to ‘/tmp/tmp2nri8mic’. 2020-05-05 04:04:56 DEBUG sanic.root - CORS: Configuring CORS with resources: {’/’: {‘origins’: [’’], ‘methods’: ‘DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT’, ‘allow_headers’: [’.’], ‘expose_headers’: None, ‘supports_credentials’: True, ‘max_age’: None, ‘send_wildcard’: False, ‘automatic_options’: True, ‘vary_header’: True, ‘resources’: {’/*’: {‘origins’: ‘’}}, ‘intercept_exceptions’: True, ‘always_send’: True}} 2020-05-05 04:04:56 DEBUG rasa.core.utils - Available web server routes: /webhooks/rasa GET custom_webhook_RasaChatInput.health /webhooks/rasa/webhook POST custom_webhook_RasaChatInput.receive /webhooks/facebook GET fb_webhook.health /webhooks/facebook/webhook GET fb_webhook.token_verification /webhooks/facebook/webhook POST fb_webhook.webhook / GET hello 2020-05-05 04:04:56 INFO root - Starting Rasa server on http://localhost:5005 2020-05-05 04:04:56 DEBUG rasa.core.utils - Using the default number of Sanic workers (1). 2020-05-05 04:04:56 INFO root - Enabling coroutine debugging. Loop id 90382232. 2020-05-05 04:04:56 DEBUG rasa.model - Extracted model to ‘/tmp/tmp6a7pyr3c’. 2020-05-05 04:04:56 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-05-05 04:04:56.881101: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303) 2020-05-05 04:04:57 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-05-05 04:04:57 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-05-05 04:04:58 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-05-05 04:04:58 DEBUG rasa.nlu.classifiers.diet_classifier - Failed to load model for ‘ResponseSelector’. Maybe you did not provide enough training data and no model was trained or the path ‘/tmp/tmp6a7pyr3c/nlu’ doesn’t exist? 2020-05-05 04:04:58 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore. 2020-05-05 04:04:58 DEBUG rasa.core.lock_store - Connected to lock store ‘InMemoryLockStore’. 2020-05-05 04:04:58 DEBUG rasa.model - Extracted model to ‘/tmp/tmpt8rzq86p’. 2020-05-05 04:04:58 DEBUG pykwalify.compat - Using yaml library: /opt/pmv/rasa/venv/lib/python3.6/site-packages/ruamel/yaml/init.py 2020-05-05 04:04:58 DEBUG rasa.utils.tensorflow.models - Loading the model … 2020-05-05 04:04:59 DEBUG rasa.utils.tensorflow.models - Finished loading the model. 2020-05-05 04:04:59 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph… 2020-05-05 04:04:59 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph. 2020-05-05 04:04:59 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’.
Sorry @developercitus, couldnt get nothing from it.
but going back to my previous comment, the page-access-token you are using, your’re sure it is the right one?