
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@oracle/bots-node-sdk
Advanced tools
Oracle Bots SDK for custom component development and webhook integrations
This SDK is the main developer resource for Oracle Digital Asistant (ODA) integrations in a Node.js express environment. It provides two primary solutions for custom implementations against the ODA platform:
To install globally
npm install -g @oracle/bots-node-sdk
To install locally in your current directory:
npm install @oracle/bots-node-sdk
When installed locally use npx @oracle/bots-node-sdk
instead of just bots-node-sdk
to run the command-line interface (CLI) commands described below in getting started section.
This section explains the basic CLI commands to get your component service up and running. See the CLI documentation for a complete list of all the arguments and options you can configure with each command.
bots-node-sdk init MyComponentService
This creates a new commponent service named MyComponentService
in a directory by the same name.
The component service includes one sample custom component named helloWorld
.
bots-node-sdk init component myCustomComponent custom
This creates a new custom component named myCustomComponent
. Instead of typing custom
for the component type argument, you can type c
as a shortcut.
bots-node-sdk init component myEventHandler entityEventHandler
This creates a new entity event handler named myEventHandler
. Instead of typing entityEventHandler
for the component type argument, you can type e
as a shortcut.
npm pack
This creates a component service package .tgz file that can be uploaded to the ODA embedded container.
npm start
This creates a component service running on a local node server. The following command returns the metadata of all deployed components:
curl -X GET localhost:3000/components
To deploy to a docker container, you can use the following commands:
npm run-script docker-build
docker-compose up
The SDK has full support for typescript. If you want to use typescript to write your custom components and event handlers, all you need to do is specify the language option when creating the component service:
bots-node-sdk init --language typescript MyComponentService
or the shorter format:
bots-node-sdk init -l t MyComponentService
This will set up your project for typescript, if you subsequently use the init component
command to add a component to the service, it will create a typescript component instead of a javascript component.
When you run any of the other CLI commands described above after setting up your project with typescript, the typescript files will be automatically transpiled to javascript.
The benefit of using typescript over javascript is that it is strongly typed, so if you use an editor like Visual Code Studio, you will get code completion features and compile-time type checking, similar to Java.
See the README.md created in your scaffolded typescript project for more information.
@oracle/bots-node-sdk
is an open source project. See
CONTRIBUTING for details.
Copyright © 2018-2021, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
FAQs
Oracle Digital Assistant SDK for custom component development and webhook integrations
The npm package @oracle/bots-node-sdk receives a total of 62 weekly downloads. As such, @oracle/bots-node-sdk popularity was classified as not popular.
We found that @oracle/bots-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.