Why does the API sometimes return type:stop instead of the action?
Sometimes I get:
{'entities': {'intent': [{'value': 'class fetch', 'confidence': 0.9942279478428431}]}, 'type': 'stop', 'confidence': 0.17692120631776423}
Even though wit seems pretty confident that I'm asking for a class fetch (I am). What is the type: stop representing? I don't see it referenced in the docs. It makes it difficult to interface the action when I get this unpredictable result.
Thanks in advance!
Hi,
this is something like the system thinks that a story is reached the end...
You can see this in the Logs when e.g. the bot responds with a final answer at the end of a story.

All 9 of my stories have actions or jumps at the end. Wit got the intent right, "class fetch". Here is a screenshot of the only story with that intent where you can see it has the getClasses action associated with the story. Is this a bug?

stop means that your bot has finished doing actions and sends, and must wait for the next user input (it could have been called prompt). You can learn more here: https://wit.ai/docs/http/20160330#converse-link
If I understand well, you get stop before you get getClasses? In interactive Node.js mode or in the Chat window in console? Can you please paste what you see?
I'm using the python api like this:
resp = wit_client.converse(self.id, msg, {})
Anyway, I found what I was doing wrong, your link pointed me in the right direction, thank you. I wasn't calling converse after receiving an action. Apparently I need to call converse after receiving an action even though I'm not sending up any message or new context. I guess wit.ai expects me to do that in case I have new context to send up as a result of the action.
When my bot sends multiple replies at once, it doesn't send "stop" afterwards, thus causing WitError: Max steps reached. Any idea why this happens? How is it determined in Wit.ai when "stop" should be sent? Here is the link to my app: https://wit.ai/jiajiazhang/Gooroo/logs/-1 The issue occurs after the "answerQuestions" action is executed. "Stop" is supposed to follow {askfdbk}. I'm using the interactive mode in Python. The chat window in console works fine though.
Thanks a lot!