conversational-interfaces / dms-compiler

Compiles DM Script to DMPL JSON
https://w3c.github.io/dms/
5 stars 0 forks source link

How to run a JSON output? #11

Closed nurzaman7 closed 4 years ago

nurzaman7 commented 4 years ago

After the compilation, how to further run JSON output such as- { "@do": [ { "@act": "Guess the number!" }, { "@act": "Please input your guess." }, { "@fork": [{ "@do": [{ "@act": ["+", "You guessed", "_nlu"] }] }], "await": ["input"] } ]

BinRoot commented 4 years ago

Hi, thank you for your interest. Great question!

To run the JSON generated by the dms-compiler, you'll need a DMPL runtime.

A working example of the DMPL runtime in JavaScript is demonstrated here: https://github.com/conversational-interfaces/dms-scratchpad

Specifically, the runtime is dm.js, which is used by worker.js.

nurzaman7 commented 4 years ago

Thanks..! I am closing this issue.