Customizing the Oracle Bots Node.js SDK Component Template by Frank Nimphius


The Oracle Bots Node.js SDK  includes a command line utility that you can install globally on your local computer and that lets you easily create new custom component and custom component projects.

The custom components created by the Oracle Bots Node.js SDK contain a “hello world” content that contains examples fo the two main function calls: metadata() and invoke(). In addition, the invoke() function implementation shows example code for how to access input parameters (“human” in the example), how to print responses to the bot (“conversation.replay(…)) and how to pass control back to the bot (“done()”).

Unless “hello world” is all you need to build, or if this is the first time you use the Oracle Bots Node.js SDK to create custom components, you may be interested to learn how to customize the template to contain e.g. the author name, a use license and more. Especially when working in teams you may want to enforce consistency across custom components that are integrated, which includes a common set of input parameters (e.g. always use “variable” as an input parameter for the reference to the dialog flow variable to update (like system components do).

This article explains how to modify the component template in a global Oracle Bots Node.js SDK installation. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic


Leave a Reply

Fill in your details below or click an icon to log in: 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.