oci-generativeai-agent

n8n custom node using OCI SDK for Generative AI Agent Runtime

Package Information

Released: 9 mo ago
Downloads: 18 weekly / 167 monthly
Latest Version: 0.3.14
Author: Alexandru Banu

Documentation

n8n-nodes-oci-generativeai-agent

This is an n8n community node. It lets you use OCI Generative AI Agent in your n8n workflows.

Installation (in n8n)

Follow the official guide: https://docs.n8n.io/integrations/community-nodes/installation/

  • In n8n, go to Settings > Community Nodes > Install, then search for n8n-nodes-oci-generativeai-agent (after it’s published) or paste the package name.

Operations

  • Create session
  • Get session
  • Delete session
  • Chat

Note: The current implementation contains a placeholder "Chat" operation that echoes the provided message. You can wire this to the OCI Generative AI Agent Runtime SDK by replacing the placeholder call with actual SDK client calls.

Credentials

If your node needs OCI credentials (tenancy OCID, user OCID, private key, etc.), create an n8n Credential type and reference it from this node’s credentials property. For now, this sample does not use credentials.

Development

Prerequisites:

  • Node.js LTS
  • npm

Install dependencies:

npm install

Build the node:

npm run build

For development with live rebuilds:

npm run build:watch

Lint:

npm run lint
npm run lint:fix

Local test in n8n:

  • Build the project (npm run build).
  • Copy the produced dist into your n8n custom nodes directory or install the package from a local tarball created by npm pack.

Publishing to npm

  1. Ensure package.json has a unique name, correct version, and n8n section points to your built node file in dist.
  2. Build the project: npm run build.
  3. (Optional) Verify the package contents: npm pack and inspect the generated .tgz.
  4. Log in to npm: npm login (if not already logged in).
  5. Publish: npm publish.

License

MIT © Vivek Chakraborty

Discussion