Documentation › Start here

n8n

The OSPP node for n8n runs an AI call on the model you choose, returns the answer with its passport, fetches a passport's details, and reports the outcome afterwards. One node, for self-hosted n8n, on OSPP Cloud or on your own OSPP installation.

What it does#

The OSPP node puts the AI steps of an n8n workflow through OSPP. It is one node with three operations:

OperationWhat it does
AI CallSends a message to the model you choose. The answer comes back with its passport and its outcome address
Get PassportFetches the details of one call's passport: status, links, model, cost and the outcome reported so far
Report OutcomeTells OSPP what happened after a call: a score, a count, or your own metrics

Every AI Call is an ordinary call to the endpoint, so it gets the same checks, the same passport and the same figures on the Platform as a call from your own code.

On OSPP Cloud you need an OSPP API key, from Settings > API & keys on the Platform. On a Self-hosted installation you need its settings file instead: see Self-hosted.

Install#

The node is for self-hosted n8n. It is installed by hand from this file; it is not in n8n's community node list, so n8n Cloud cannot install it.

https://www.ospp.it.com/n8n/n8n-nodes-ospp-1.1.0.tgz

As the user that runs n8n:

mkdir -p ~/.n8n/nodes
cd ~/.n8n/nodes
npm install https://www.ospp.it.com/n8n/n8n-nodes-ospp-1.1.0.tgz

Restart n8n. The node is then in the node list as OSPP. The package has no dependencies of its own.

In n8n, add a credential of the type OSPP API. Under Connect To, leave OSPP Cloud and paste your API key. For your own OSPP installation, choose Self-Hosted Installation: see Self-hosted.

The credential's test asks for the model list the way a call would go, so a green test means the node reaches OSPP.

AI Call#

FieldMeaning
ModelA list of the models your organisation can call, loaded from OSPP with your key. Each entry shows the provider, what the model supports and its price. OSPP never substitutes another model
System PromptThe fixed instructions
MessageThis item's input to the model
Node NameOptional. Names the task in OSPP, for example support-triage, so its calls, costs and outcomes are shown together. See request headers

The model can also come from an expression, so one workflow can run the same step on different models.

Under Options: Temperature, Max Tokens, JSON Output, Earlier Messages (the earlier turns of a conversation), Reference (your own id for the call, such as a ticket number), Trace (groups the calls of one conversation), Idempotency Key (a retried execution returns the same call), and Keep Content for Model Compare (switch it off for a sensitive call).

What comes out#

FieldMeaning
answerThe model's answer. With JSON Output on, the parsed object
modelThe model that ran
passport_idThe passport of this call
passport_statusCERTIFIED, or PENDING when the passport was not issued yet
verify_urlThe passport's public page
passport_file_urlThe download address of the .ospp file
outcome_urlThis call's outcome address
run_id, node, node_name, traceHow OSPP counted the call
usageThe token counts

Store passport_id with the record the answer belongs to. If the outcome is known only later, in another workflow, store outcome_url or passport_id as well.

Get Passport#

Fetches what OSPP holds about one call and its passport. Use it to show a passport next to a record, to check that a pending passport has been issued, or to read the outcome reported so far.

Choose how to name the call under Find By:

Find ByUse it when
Passport IDYou kept the passport_id. This is the default, and it reads the id from the incoming item
Run IDYou kept the run_id. It also finds a call whose passport is still pending
ReferenceYou gave the AI Call a Reference. If several calls carry it, add the Node Name

What comes out#

FieldMeaning
passport_idThe passport, or empty while it is pending
passport_statusCERTIFIED, PENDING, or NONE when the call failed and has no passport
run_statusThe status of the call itself
verify_url, passport_file_urlThe passport's public page and its .ospp file
run_id, created_at, issued_atThe call, when it was made and when its passport was issued
node_name, node, model, providerThe node and version the call was counted under, and the model that ran
reference, traceWhat you sent with the call
duration_s, usage, cost, currencyHow long it took, the token counts and what it cost
outcomeThe latest value of each metric reported on the passport
contentWhether OSPP still holds the prompt and answer: kept, expiring, deleted or own_gateway

Under Options:

OptionAdds
Include Outcome Updatesoutcome_updates: every update reported on the passport, oldest first, with its source
Verify Nowverification: OSPP verifies the passport at that moment and returns the verdict, the passport's current status, whether the latest file is current, and any rule that failed

The node does not return the prompt or the answer of a past call. Those are opened on the Platform, by a member who may see content.

Report Outcome#

Outcomes are optional. Report one when your workflow knows something OSPP cannot know: the answer was accepted, the ticket was solved, the customer gave a rating. See outcomes.

Choose how to name the call under Report By:

Report ByUse it when
Outcome AddressYou have the outcome_url of the AI Call. This is the default, and it reads the address from the incoming item
Passport IDYou kept the passport_id
ReferenceYou gave the AI Call a Reference. If several passports carry it, add the Node Name

Under Metrics, add one row per metric: a name and a whole number. Every node has score and count without any setup. Your own metrics are defined per node on the Platform.

Under Options: Observed At (when it happened, in UTC), Idempotency Key (a replayed workflow does not report twice), and Wait for Passport (how long to keep trying while the call's passport is not issued yet; 30 seconds unless you change it).

The outcome address works without the API key, so treat outcome_url as a secret: whoever holds it can report an outcome for that one call. The node only posts to an outcome address of the OSPP installation named in the credential.

Self-hosted#

An organisation that runs its own gateway cannot call the Cloud endpoint: OSPP must not see the conversation. The node then calls your installation's own endpoint, and your gateway calls the model. You do not type an address or a key in n8n: the installation exports one settings file, and the node reads it.

  1. In your installation's admin UI, open Endpoint. Under Where it listens, choose On this server and over HTTPS when n8n runs on another machine or in a container.
  2. On the same page, under n8n, choose Download the settings file.
  3. In n8n, add a credential of the type OSPP API, choose Self-Hosted Installation, and paste the contents of the file into Settings File. Or import the file as it is: n8n import:credentials --input=<the file>.
  4. Delete the file. It holds the endpoint's token: whoever has it can make calls in your organisation's name.

The file holds three things: the address of your installation's endpoint, the endpoint's token, and OSPP's own address. It does not hold your organisation's OSPP API key; that key stays inside the endpoint.

RequestWhere it goes
AI Call and the Model listYour installation's endpoint. The conversation is sealed to your gateway before anything leaves your server
Get Passport, and Report Outcome by passport ID or referenceYour installation's endpoint, which passes them on to OSPP. They carry figures and passport details, never a conversation
Report Outcome by outcome address, and Verify NowOSPP directly. Neither needs a key

Things that differ from Cloud:

  • The token. After Make a new token on the Endpoint page, download the settings file again and import it again. The file carries the same credential id, so the import replaces the credential.
  • n8n on the same server. When the endpoint listens on the server only, the file works for an n8n that runs on that server itself, outside a container. An n8n in a container cannot reach 127.0.0.1 of the server: publish the endpoint over HTTPS.
  • A retried call. With an Idempotency Key, a retry of a call that already started is refused (409 IDEMPOTENCY_CONFLICT) instead of answered again.
  • Version. The installation must run a package release from 20 November 2026 or later, and the node must be 1.1.0 or later. With the SDK's own ospp proxy instead of the package, use SDK 0.4.4 or later; that proxy has no export, so write the settings by hand as the local proxy page shows.

A first workflow#

  1. A trigger that delivers a record, for example a new support ticket.
  2. OSPP, operation AI Call: choose the model, write the system prompt, map the ticket text to Message, and give the Node Name support-triage.
  3. Your own steps: write answer and passport_id back to the ticket.
  4. OSPP, operation Report Outcome, in the workflow that runs when the ticket is closed: Report By Passport ID, with the id you stored, and the metric score.
  5. OSPP, operation Get Passport, wherever a workflow needs the passport's status, links, cost or outcome again.

The calls then appear under the node support-triage on the Platform, with cost, speed and outcome per model. To compare models, change the Model field or run kept calls again in the Model Arena.

What to know#

  • The passport covers the AI call that went through OSPP. It does not cover the other steps of the n8n workflow.
  • n8n keeps the data of its executions. Whoever administers your n8n can read the messages and answers that pass through it.
  • A refusal from OSPP is shown in the node as OSPP's own message, with its status and code. See errors.
  • The node works on OSPP Cloud and on a Self-hosted installation. On Self-hosted it was run through the local proxy against OSPP; a complete installation with its own gateway has not been part of that test yet.