Hello friends,
I am stuck with HTTP API, Anyone can provide me request format for the Predict the next action API? Also I would be thankful if you could me with an example.
What I am trying is:
curl localhost:5005/conversations/default/predict -d ‘{“text”:“hi”}’
But not getting the response i.e. it must return action to be “utter_greet” but response is like:
{
“confidence”: 0.1080135629,
“policy”: “policy_1_KerasPolicy”,
“scores”: [
{
“action”: “action_listen”,
“score”: 0.1080135629
},
{
“action”: “utter_happy”,
“score”: 0.1028758138
},
{
“action”: “utter_greet”,
“score”: 0.0988124162
},…
}