Skip to content

The n8n node

n8n-nodes-i3-academy (in integrations/n8n-nodes-academy, MIT licence, ADR 0067) brings the automation API into n8n as two nodes:

  • Academy Trigger starts a workflow on Academy’s events. It subscribes itself as a REST hook (POST /v1/integration-api/subscriptions) when the workflow is activated, unsubscribes when it is deactivated, and checks every delivery’s signature (webhooks).
  • Academy does the steps of onboarding and offboarding: people, teams, required trainings, classes, enrolments, programmes, courses, course runs, live sessions, mentoring, training records and certificates. The node’s README lists every operation.

Every write sends an Idempotency-Key made of the execution, the node and the item, so a step n8n retries (Retry On Fail) is done once.

The organisation administrator’s setup, step by step, is in the Manage handbook: n8n.

Version 0.1.0. The package is not on npm yet ("private": true until its first release), so n8n’s Community Nodes → Install can’t find it. Until then, build it from the repository and install it in a self-hosted n8n by hand. n8n Cloud installs only verified nodes from npm, so it can’t use the node yet; use n8n’s HTTP Request node with the automation API there.

In a checkout of the repository (after pnpm install):

Terminal window
pnpm --filter n8n-nodes-i3-academy build # compiles to integrations/n8n-nodes-academy/dist
cd integrations/n8n-nodes-academy && pnpm pack # makes n8n-nodes-i3-academy-0.1.0.tgz

On the n8n server, install the file into n8n’s nodes folder and restart n8n, as n8n’s documentation describes for manual installation of community nodes:

Terminal window
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install /path/to/n8n-nodes-i3-academy-0.1.0.tgz

For n8n in Docker, do this in the volume mounted at /home/node/.n8n.

Type Academy API, with:

  • API Address: the API’s address without a path, for example https://api.academy.example.com;
  • Client ID and Client Secret of a machine client (authentication) with the scopes the workflow’s nodes need.

n8n exchanges them for a 15-minute token at /v1/integration-oauth/token and gets a new one when it runs out. The credential test calls /healthz.

  • Academy delivers events only to an address it can reach: in production a public HTTPS address. Behind a reverse proxy, set n8n’s N8N_WEBHOOK_URL so n8n registers the right one.
  • Each trigger is one subscription; an organisation has at most 20 webhooks.
  • Fields the organisation’s HR system leads are refused when they differ (409 field_owned_by_hr). Teams synced from a directory, teams that grant a role, and administrators are changed in the portal only.
  • Course runs never wait for an approval any more (ADR 0253), so the event Course Run Awaiting Approval the node still offers never arrives. A run whose cost caps are above the organisation’s caps per course is refused (409 above_budget).
Terminal window
pnpm --filter n8n-nodes-i3-academy typecheck
pnpm --filter n8n-nodes-i3-academy test

The tests run against stand-ins for n8n and check every request body against the API’s own schemas (@academy/contracts), so a change to the API that would break the node fails here. Three example workflows are in integrations/n8n-nodes-academy/examples/.