watsn-conversation-tool
v0.5.0
Published
Tool to manage and debug dialogs from the IBM Watson Conversation Service
Downloads
12
Readme
watsn-conversation-tool
An assortment of tools for working with conversation workspace files exported from IBM Watson Conversation Service
Setup
Install via npm:
npm install watsn-conversation-tool -g
This will make the command watsncv
available on your console.
Usage
Run watsncv --help
for list of commands.
Run watsncv <command> -h
for help on a specific command.
For example to output a conversation having only intents with the word 'hello' and pretty print the output:
watsncv search --only --intents --pretty car_workspace.json hello
watsncv search --context <context variable> --pretty car_workspace.json
Will search for nodes that contain the search string within its context object (if exists)
watsncv search -h
will show you all search options.
To search for a specific node within your JSON file, you need the m
or --node
flags.
First pass in the node ID (case sensitive), then the filename of the JSON. For example:
watsncv search --node node_123456 car_workspace.json
Debugging
watsn-conversation-tool
uses the debug module to output debug messages to the console. To output all debug messages, set the DEBUG
environment variable:
DEBUG=app:watsncv
This will output debugging messages from the tool.
Contributing
Contributions are welcome and the tool is designed to accept contributions for new commands.
New commands can be placed inside the src/cassettes
folder and will be loaded automatically.
See the src/cassettes
folder for more information on how to create a cassette.