Skip to content

00Integration guide

n8n and Make.com

Add one HTTP request step to a workflow or scenario. No code.

Walkthrough · recorded against a local Ovelin

Both platforms record a step by sending an HTTP request to Ovelin. Add one HTTP step after each action you want on the record.

Prerequisites

  • An n8n instance (cloud or self-hosted) or a Make.com account.
  • For n8n, environment access ($env) for the key, or an n8n credential (see below).

1. Get an API key

  1. In Ovelin, open Settings → API keys.
  2. Under Ingest key, create a key and copy it. It is shown once; Ovelin keeps only a hash.
  3. Copy the Organization ID from the same page.

Put all three values in your environment, not in code:

sh
export OVELIN_URL="https://your-ovelin-host"   # http://localhost:3000 for a local instance
export OVELIN_ORG_ID="your-organization-id"
export OVELIN_API_KEY="agl_live_…"

An organization key can report for any agent. For production, give each agent its own key under Settings → API keys → Agent keys: a leaked agent key can then only write as that one agent, and you can revoke it alone.

2. Install

Nothing to install.

3a. n8n

Import this workflow (Workflows → Import from file), then move the Record in Ovelin node after the step you want recorded:

examples/webhooks/n8n-workflow.json
{
  "name": "Ovelin: record a step",
  "nodes": [
    {
      "parameters": {},
      "id": "6f0b3c55-1d1a-4c39-8a1e-0c6f8f9b7a01",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ $env.OVELIN_URL }}/api/ingest/{{ $env.OVELIN_ORG_ID }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [{ "name": "Authorization", "value": "=Bearer {{ $env.OVELIN_API_KEY }}" }]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"source\": \"n8n\",\n  \"agent_name\": \"{{ $workflow.name }}\",\n  \"action\": \"sent_invoice_reminder\",\n  \"outcome\": \"success\",\n  \"actor\": \"ops@example.com\",\n  \"data_accessed\": [\"financial_data\"],\n  \"metadata\": { \"run_id\": \"n8n-{{ $execution.id }}\", \"workflow_id\": \"{{ $workflow.id }}\" }\n}",
        "options": { "timeout": 10000 }
      },
      "id": "a2d6e0f4-5b8c-4b0e-9f51-3c2a7d9e8b02",
      "name": "Record in Ovelin",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [240, 0],
      "retryOnFail": true,
      "maxTries": 3
    }
  ],
  "connections": {
    "When clicking ‘Execute workflow’": { "main": [[{ "node": "Record in Ovelin", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" }
}

  • $execution.id becomes the run_id, so one workflow execution is one execution under Sessions.
  • Retry on fail is on. A retry is stored as a second record unless the body carries the same timestamp; Ovelin treats an identical body, timestamp included, as one record.
  • If your n8n cannot read environment variables, create a Header Auth credential named Authorization with value Bearer agl_live_… and select it in the node instead of the header parameter.

3b. Make.com

Add an HTTP → Make a request module after the step you want recorded:

  • URL: https://your-ovelin-host/api/ingest/<organization id>
  • Method: POST
  • Headers: Authorization = Bearer agl_live_…
  • Body type: Raw, Content type: JSON (application/json)
  • Request content:
examples/webhooks/make-request-body.json
{
  "source": "make_com",
  "scenario_name": "{{scenario.name}}",
  "scenario_id": "{{scenario.id}}",
  "execution_id": "{{execution.id}}",
  "status": "success",
  "started_at": "{{now}}",
  "actions_taken": ["looked_up_invoice", "sent_invoice_reminder"],
  "data_accessed": ["financial_data"],
  "actor": "ops@example.com"
}

With source: make_com, Ovelin reads Make's own fields: the scenario name becomes the agent and the event name (scenario:Invoice reminders), status: error is recorded as a failure, and execution_id ties the record to Make's execution history.

4. Check the request before building it

examples/webhooks/replay.mjs sends exactly the request the n8n node or Make module would, from your machine, so a key or payload problem shows up before you build the scenario:

sh
cd examples/webhooks
node replay.mjs n8n-workflow.json
node replay.mjs make-request-body.json
# 201 {"ok":true,"seq":14,…}

5. Check it in Ovelin

  1. Open Activity. The newest rows are the events you just sent, each with a sequence number and a seal.
  2. Click one. The detail panel shows the payload as received; Recompute seal checks its seal again.
  3. The n8n event appears under the workflow's name; the Make event as scenario:Invoice reminders. Open Agents: an agent name Ovelin had not seen before is registered automatically, without an owner. Give it one so someone is accountable for it.

To confirm nothing was altered later, open Integrity. It recomputes every seal and every link between records, and reports Trail intact.

Common errors

ResponseCauseFix
401 Invalid API keyThe key is wrong, revoked, or belongs to another organization.Create a key in Settings → API keys and check OVELIN_ORG_ID is the same organization's.
401 Missing API key (use Authorization: Bearer <key>)The Authorization header was not sent.Send Authorization: Bearer $OVELIN_API_KEY. The key never goes in the body.
422 Payload must include a 'source' fieldThe JSON has no source.Add "source": "custom" (or n8n, make_com, openai_api, zapier).
422 Invalid option: expected one of "success"|"failure"|"unknown"outcome has another value, such as warning.Use success, failure or unknown.
400 Invalid organization idOVELIN_ORG_ID is not the organization's UUID.Copy the Organization ID from Settings → API keys.
429 Rate limit exceededMore than 600 events a minute for one organization.Retry after the Retry-After header. To send many events, use the batch endpoint (up to 100 per request).
400 Invalid JSON bodyAn expression rendered a quote or newline into the JSON.In n8n wrap the value in {{ JSON.stringify(...) }}; in Make build the body with a JSON → Create JSON module and map its output.
Body arrives empty in MakeBody type left on form data.Set Body type: Raw and Content type: JSON.

How this guide is tested

Every code block above is copied from examples/webhooks/ by node scripts/sync-guide-snippets.mjs, and pnpm examples:test runs replay.mjs on both files against a local Ovelin and checks the events were sealed. This tests the exact request each platform sends; n8n and Make themselves are not run in the test.