Wit.ai converse API not responding with bookmarks

I feel like I should be doing something wrong in the API. I follow the example of weather with a missing location. The story works great.

However, when I use the API via http, using postman for testing, I cannot get it to take action after sending back from the user's location. It always returns a stop message. I think I should not send the right context through or similar.

My understanding is this:

send a message "I want to know the weather" raises an action from wit: "Weather" (works correctly) Answer with 'missingLocation' wit answers with msg "What place do you want to know about the weather?" (works correctly) I reply with “Paris” in the message (without context, everything is with the same session) wit answers with finding the essence of “Paris”, but “stopping” and no action. Here, I would expect to receive an action request again with everything I need to know this time. This is what happens when I use storytelling and testing using a bot messenger.

Any ideas from anyone? I expect I need to respond with something more than just “Paris” in the message

Thank.

Note: the question was asked by “scruffjinks” on github before unanswered https://github.com/wit-ai/wit/issues/301

+4
source share

Source: https://habr.com/ru/post/1659975/


All Articles