I m trying to build an react based UI, to fetch conversations, domain, stories, nlu training data using https://rasa.com/docs/rasa-x/api/rasa-x-http-api/. I have successfully completed to fetch the
bearerAuth and fetch the messages deployed on GCP. i have successfully update the NLU data using POST and PUT method and also was able to fetch the chatTokens etc.
My issue is i m trying to update the stories, domain and actions data using POST or PUT using https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#operation/uploadStories but all i get is an empty array and nothing is updated. When i try doing this using PUT, the entire stories is removed and an empty array is uploaded.
The problem is that the stories need to be passed as data instead of in the body of the message. In postman choose binary and select a markdown file instead of using raw.
I have some Typescript code you can also use as an example in this repo. My rasacli project has a bunch of other example api calls.
As mentioned by @stephens The stories need to be passed as text binary and .md format rather than in Json format. I also figured it out yesterday. rest are mostly passed in json format. All the HTTP API are also working perfectly for me.
We are working on it. Till now we are getting all responses from curl request in postman and have implemented a voximplant single chatbot. Will share a video tutorial soon and share it as rasa contribution.
Hi @amn41. Project is going good. We have build an Bot builder UI and have been able to create parallel VM instance to deploy bot over cloud. We are passing nlu, stories and domain from UI server to individual bot server. Currently the issue we are facing are creating credentials files and custom actions as there is no way to create Then using RASA X HTTP API. Also i have been facing a lot of issue with integration also with platform like slack, telegram etc. I believe a better tutorial is expected from rasa for them and some documentation if creating custom action server using RASA X HTTP API. We are connected already on LinkedIn, i will send a greetings message there, so that we can be connected. Thanks for your follow ups.
Hey stephens, one quick question.
I have Rasa-X on gcp deployed with docker-compose quick install.
When trying to post to rasa-x with postman at [IP]:5005//webhooks/rest/webhook, I don’t get any response, while when I remove the port I get a URL not found.
Any idea if such a thing is possible, in order to ditch the authentication?
I have a working version already with /api/auth and /api/chat but was wondering if this can happen too.
If you do a docker-compose ps you should see the nginx container is running that it has port 80 mapped to 8080. The API calls are routed via nginx to the API endpoint in rasa-production so you should be using port 80.
Is the rest interface enabled in your credentials.yml:
Hey @stephens@athenasaurav,I am running my rasa x on my local server and was looking to train my model using the http api.Can you help me out here as in the rasa x http api docs its mentioned some project_id that i have to pass which i am not able to find.