Access Backends Using Custom Components

Oracle Digital Assistant has many built-in components to support basic actions like setting variables and prompting for user input. In cases where your bot design calls for actions outside of the provided components, such as calling REST APIs, implementing complex business logic, and customizing messages, you can write custom components.

Tip:

If the logic or processing is needed in the context of a composite bag entity, consider using entity event handlers, which you can create directly from the composite bag's configuration page. See Entity Event Handlers.

To use a custom component, complete these tasks:

  1. Implement: Using JavaScript and the Oracle Digital Assistant Node.js SDK, implement a custom component that transfers data to and from the skill using the SDK's metadata and conversation objects. See Implement Custom Components.

  2. Deploy: If you are hosting the components on Oracle Mobile Hub backend, Oracle Cloud Infrastructure Functions, or a Node.js server, deploy the component package. See Deploy the Component Package to a Service.

  3. Add to Skill: Make the components available to a skill by adding a component service for it. See Add Component Package to a Skill.