# n8n Integration — Certify AI Executions

URL: https://docs.nexart.io/docs/integrations/n8n

Integrate NexArt into n8n workflows with HTTP Request nodes: certify each step, capture the returned certificate hash and verify records after the run.

Early integration

## Best For

- Workflow automation with minimal custom code
- No-code / low-code certification pipelines
- Automated reports with verifiable AI outputs
- Customer-facing workflows requiring audit trails
- Compliance pipelines that need tamper-evident records

## Overview

NexArt integrates with n8n workflows via the standard HTTP Request node. When an AI step produces output, the HTTP Request node sends the execution data to the NexArt API and returns a `verificationUrl` linking to the public verification portal.

This is the recommended path if your AI logic already runs inside n8n workflows.

## How It Works

AI Step (e.g. OpenAI, Claude)
↓
HTTP Request (POST /v1/cer/ai/certify)
↓
verificationUrl + receipt

- An AI step produces output (text, image, or structured data).
- The HTTP Request node sends it to `POST /v1/cer/ai/certify`. NexArt creates a CER, signs it via the attestation node, and returns a `verificationUrl`.
- Store, share, or pass the `verificationUrl` to downstream steps.

## Configuration

Set your API key as a Bearer token credential in the HTTP Request node:

```
NEXART_API_KEY=your-api-key
```

## Quick Demo

### 1. Start n8n

```
npx n8n
```

Open the editor at `http://localhost:5678`.

### 2. Create a workflow

Add a Manual Trigger followed by an HTTP Request node:

| Method | POST |
| --- | --- |
| URL | https://node.nexart.io/v1/cer/ai/certify |
| Authentication | Bearer Auth |
| Header | Content-Type: application/json |

Request body:

Request Body

```
{
  "executionId": "n8n-demo-001",
  "provider": "openai",
  "model": "gpt-4o-mini",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": "Should this automated report be approved?"
      }
    ]
  },
  "output": {
    "decision": "approve",
    "reason": "policy_passed"
  },
  "metadata": {
    "projectId": "demo",
    "appId": "n8n-demo"
  }
}
```

### 3. Execute and verify

Run the workflow. The API returns a CER with a verification link:

Certify Response

```
{
  "verificationUrl": "https://verify.nexart.io/c/sha256:<certificateHash>",
  "certificateHash": "sha256:...",
  "receipt": { ... },
  "signatureB64Url": "..."
}
```

Attestation data lives at `meta.attestation` in the CER bundle.

Open the `verificationUrl` to confirm the record at verify.nexart.io.

## Use Cases

- Certify AI-generated content in automated publishing pipelines
- Attach verification links to customer-facing reports
- Create audit trails for AI decisions in compliance workflows
- Store verifiable records alongside workflow outputs

## Official Example Repo

github.com/artnames/nexart-n8n - runnable integration example for n8n workflows.

## Next Steps

- Verification: understand how CER verification works
- Examples: copy-ready API requests and response shapes
- LangChain: for teams moving from workflow automation into code
