How to build custom components for use in Oracle Intelligent Bots

ustom components for use in Oracle Intelligent Bots


About Bot Custom Components


As Figure 1 illustrates, a custom component service in Oracle Intelligent Bots is a Node. js-based REST service that hosts one or many custom components and that exposes two HTTP methods: GET and POST.

Figure 1: Bot custom component service architecture
The GET method is invoked at design time by the bot when the custom component is registered with the Oracle Intelligent Bots instance. The POST method is invoked at runtime when the dialogue flow navigates to a state that is associated with a custom component hosted by the component REST service. When invoked, the custom component REST service receives the name of the custom component to invoke; looks up the custom component implementation JavaScript module; and dispatches the request, along with a reference to the custom component SDK. How to build custom components for use in Oracle Intelligent Bots?

A custom component is a Node module built with JavaScript that exposes two functions:

metadata. This function returns information about the custom component upon custom component service registration in the bot. The information includes the component name, the definition of the component input parameters (properties), and the action strings returned by the component to enable the bot designer to decide how to continue the dialogue flow.


invoke. This function is called at runtime and executes the custom component business logic. The logic may access dependent resources such as Oracle Mobile Cloud connectors, platform services, and custom APIs.
The custom component SDK consists of four files and provides functions for reading the incoming bot-message and sending a component response:


Registry. The registry.js file contains a mapping of custom component names and their physical JavaScript files.


Shell. The shell.js file contains the dispatcher logic that reads file locations from the registry.js file and loads the requested custom component implementation.


SDK. The sdk.js file is passed as a reference to the custom component’s invoke function.


MessageModel. The MessageModel.js file contains helper functions for the Oracle Intelligent Bots conversation message model and helps component developers build rich UI bot responses.
Open a browser, and access the Oracle Mobile Cloud Enterprise homepage.
Authenticate with the user credentials you defined when you provisioned the cloud service.
Click the hamburger icon at the upper left to open the Oracle Mobile Cloud Enterprise menu.
Click the Bots menu item (shown in Figure 2), which opens the Oracle Intelligent Bots dashboard in a separate browser window or tab.(How to build custom components for use in Oracle Intelligent Bots?)

  • Figure 2: Oracle Mobile Cloud Enterprise with Oracle Intelligent Bots selected

  • Click Import Bot at the upper right of the dashboard.
  • In the opened dialogue box, navigate to the location to which you extracted the downloaded zip file and open the starter-bot folder.
  • Select the OracleMagazineOnlinePizzaBot4.zip import file, and click Open.
    Note: You cannot import two bots with the same name. If you need to import the starter bot more than once or if you share an Oracle Intelligent Bots instance, rename any previous imports of the starter bot before importing the new bot. You can rename a bot by opening it, clicking the Settings icon renaming the bot, and exiting the bot.
  • Close the upload confirmation dialogue box, by clicking the X on the right side.
  • Keep the browser window open.(How to build custom components for use in Oracle Intelligent Bots?)

Required Services and Roles

For this solution, you require access to Oracle Digital Assistant and Oracle Mobile Hub.

You’ll also need access to a system of record. We assume Oracle Autonomous Data Warehouse in this Solution, but you can use any system that exposes its data through a REST API.

These are the roles needed for each service.

Service Name: Role Required to…
Oracle Mobile Hub: ServiceDeployer Allows configuration and metadata manipulation.
Oracle Mobile Hub: ServiceDeveloper Allows typical development and test access.
Oracle Digital Assistant: ServiceDeveloper Allows typical development and test access.
If using Oracle Autonomous Data Warehouse as the system of record: DWROLE or ADMIN Allows access and use of Oracle Autonomous Data Warehouse.

How to build custom components for use in Oracle Intelligent Bots?

 

₹25,000.00

SAP SD S4 HANA

SAP SD (Sales and Distribution) is a module in the SAP ERP (Enterprise Resource Planning) system that handles all aspects of sales and distribution processes. S4 HANA is the latest version of SAP’s ERP suite, built on the SAP HANA in-memory database platform. It provides real-time data processing capabilities, improved…
₹25,000.00

SAP HR HCM

SAP Human Capital Management (SAP HCM)  is an important module in SAP. It is also known as SAP Human Resource Management System (SAP HRMS) or SAP Human Resource (HR). SAP HR software allows you to automate record-keeping processes. It is an ideal framework for the HR department to take advantage…
₹25,000.00

Salesforce Administrator Training

I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
₹25,000.00

Salesforce Developer Training

Salesforce Developer Training Overview Salesforce Developer training advances your skills and knowledge in building custom applications on the Salesforce platform using the programming capabilities of Apex code and the Visualforce UI framework. It covers all the fundamentals of application development through real-time projects and utilizes cases to help you clear…
₹25,000.00

SAP EWM

SAP EWM stands for Extended Warehouse Management. It is a best-of-breed WMS Warehouse Management System product offered by SAP. It was first released in 2007 as a part of SAP SCM meaning Supply Chain Management suite, but in subsequent releases, it was offered as a stand-alone product. The latest version…
₹25,000.00

Oracle PL-SQL Training Program

Oracle PL-SQL is actually the number one database. The demand in market is growing equally with the value of the database. It has become necessary for the Oracle PL-SQL certification to get the right job. eLearning Solutions is one of the renowned institutes for Oracle PL-SQL in Pune. We believe…
₹25,000.00

Pega Training Courses in Pune- Get Certified Now

Course details for Pega Training in Pune Elearning solution is the best PEGA training institute in Pune. PEGA is one of the Business Process Management tool (BPM), its development is based on Java and OOP concepts. The PAGA technology is mainly used to improve business purposes and cost reduction. PEGA…
₹27,000.00

SAP PP (Production Planning) Training Institute

SAP PP Training Institute in Pune SAP PP training (Production Planning) is one of the largest functional modules in SAP. This module mainly deals with the production process like capacity planning, Master production scheduling, Material requirement planning shop floor, etc. The PP module of SAP takes care of the Master…

 

Interested in this Oracle Classes in Pune? Fill Your Details Here

 

Error: Contact form not found.

Leave a Reply

X
WhatsApp WhatsApp us
Call Now Button