Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save plindberg/0c606b97a48c7dae8b58028df8fb6702 to your computer and use it in GitHub Desktop.
Save plindberg/0c606b97a48c7dae8b58028df8fb6702 to your computer and use it in GitHub Desktop.
Capture anything using IBM Watson Dialog.
<?xml version="1.0" encoding="UTF-8" ?>
<dialog xsi:noNamespaceSchemaLocation="WatsonDialogDocument_1.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<flow>
<folder label="Main">
<output>
<prompt>
<item>Write stuff and I’ll echo it back to you.</item>
</prompt>
</output>
<getUserInput>
<input>
<grammar>
<item>(ANYTHING)={anything}</item>
</grammar>
<action varName="anything" operator="SET_TO">{anything.source}</action>
<output>
<prompt>
<item>{anything}</item>
</prompt>
</output>
</input>
</getUserInput>
</folder>
</flow>
<entities>
<entity name="ANYTHING">
<value>
<grammar>
<item>!.*</item>
</grammar>
</value>
</entity>
</entities>
<variables>
<var_folder name="Home">
<var name="anything" type="TEXT" />
</var_folder>
</variables>
</dialog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment