Node.js Modules: Hardcode a Next Module ID

Pasted image at 2017_03_01 11_28 AM

We have added the ability to specify `nextModule` in the nodeJS Module `responseJSON` object.

This will allow you to easily use the nodeJS module as a connector (directly moving the conversation to a specific module)!

One or both of `responseJSON.response` and `responseJSON.nextModule` are required fields. If you populate both, the string set by `responseJSON.response` field will overwrite the initialResponse set in the target `nextModule` but the conversation flow will have moved to the `nextModule`!

We hope that this will allow you to create richer, more dynamic, and more user friendly experiences; looking forward to seeing the awesome bots you come up with!

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s