I’m using Rasa version 2.8.7 in my simple project in order to understand main product features.
I wrote a custom action, some stories and a custom entity extractor.
I’d like to know if there is a way to get the next prediction action within my custom action or in every other place.
Ok, but my question is: the predictionn should be related to some conversation with a user, instead in your body there is not any reference to user (conversation id / user id), so the prediction returned from API is related to…?
And finally, timestamp parameter within body what does it represent?
Anyway, I’ve tried to call that API but I get the following error:
{
"version": "2.8.7",
"status": "failure",
"message": "Failed to validate the events format. For more information about the format visit the docs. Error: 'user' was expected\n\nFailed validating 'const' in schema[0]['properties']['event']:\n {'const': 'user'}\n\nOn instance['event']:\n 'slot'",
"reason": "BadRequest",
"details": {},
"help": "https://rasa.com/docs/rasa/pages/http-api",
"code": 400
}
EDIT
Ok, I think to have solved. My body must contains one or more events I want to simulate in order to get the prediction about the next event.