5min

Supported commands

Custom Data

Sometimes you may need to pass your own custom data from your NLP system into your website (e.g. adding an item to the users shopping cart). Any fields you set in the instructions field will be passed on to your web page via Instructions message (build your own via SDK).

If you are using Hosted Experience, custom data will be made available via JS Events. For more detail, see Event handling (advanced) .

JSON
|



Display HTML

Passes through either HTML content, or an HTML src file as a message for the client to display. If you are using Hosted Experience, this content will be rendered into the page for you automatically. For more detail, see Displaying content .

html: Allows you to pass the HTML you wish to display. Must be stringified.

src: Allows you to instruct the client to load the referenced HTML file by absolute URL.

JSON
|



Add speech-to-text hint phrase

Hint phrases describe likely responses from the user in reply. These are used to increase the accuracy of voice transcription. Values set will apply until replaced.

JSON
|