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?)
- 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?
Find Your Preferred Courses
SAP SD S4 HANA
SAP HR HCM
Salesforce Administrator Training
Salesforce Developer Training
SAP EWM
Oracle PL-SQL Training Program
Pega Training Courses in Pune- Get Certified Now
SAP PP (Production Planning) Training Institute
SAP Basis Training in Pune
Courses For Sap HANA Administration Training
Courses For Sap BW On HANA Training
Courses For Sap Hana Simple Logistics Training
Courses For Sap ABAP On HANA Training
Courses For Sap Hana Training
Oracle HRMS (Human Resource Management System) Course Details, Syllabus and Fees
Oracle Apps SCM (Supply Chain Management) Training & Certification Courses
Oracle Apps R12 Technical Training Course and Module Overview
SAP FICO ( Financial Accounting) Online Training And Certification in Pune
SAP SD (Sales & Distribution) Training Course Admission Details
Be an Certified Professional in SAP WM (Warehouse Management)
Training for SAP MM (Material Management) Course Modules
SAP ABAP Training Institute in Pune, SAP ABAP Courses Online
Interested in this Oracle Classes in Pune? Fill Your Details Here
Error: Contact form not found.