A wit.ai sample story - order pizza
Wit.ai provides some powerful constructs to manage intelligent conversations and behavior within your app or chatbot. The stories feature (which is currently in public beta) enables branching between statements, jump to bookmarks, and allows you to prompt the user for missing keys when they are detected. Wit.ai learns by example. By creating sample input statements in the 'understanding' tab, the AI engine can be trained to understand similar phrases. Stories enable you to save a group of statements, and specify the actions and responses that need to take place to complete a conversation or call flow. Conversations can be designed to be either slot based or flow based.
The following screenshots shows you how easy it is to create a simple story for ordering pizza. The story is based on sample recipes on the Wit.ai website. You may download my sample public story HERE, and import it into your own app. View the video demo HERE.
How to prompt the user when the pizza type isn't specified.
Prompt for pizza size.
Call flow complete.
The user decides to restart his order after completing the call flow.
In this case, the user decides to restart his order half way through the conversation, requiring a jump back to a previous statement.
To learn how to integrate Wit.ai into your app or chatbot, please visit their website.
Published July 24, 2016