index.md
HTML wrapper for HTML-only fetchers; content is shown verbatim.
Raw file
Links (extracted)
Clickable list for reviewers; avoids copy/paste line-wrap issues.
# if.api demo — n8n automation resolver (receipt-backed)
**Audience:** external reviewers + operators
**Reality gate:** demo of a transformation contract, not a deployed n8n integration.
---
## Links (HTML-first)
if.trace receipt:
https://infrafabric.io/static/trace/-aSIHTMOo1-V6B6ez-aKJg
Pack (HTML view):
https://infrafabric.io/static/pack/-aSIHTMOo1-V6B6ez-aKJg
Pack (raw Markdown):
https://infrafabric.io/static/pack/-aSIHTMOo1-V6B6ez-aKJg.md
Source bundle (tgz):
https://infrafabric.io/static/source/9105157cf7e6020a2bf66a76f9b95af9497379ed13384a948218caf6df3096cc.tgz
---
## What this proves (black/white)
This demo proves:
- a known n8n workflow definition can be transformed deterministically into a normalized event envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)
This demo does not prove:
- live n8n API calls, OAuth scopes, or workflow execution
- any shipped if.bus runtime or message broker
---
## Demo artifacts
Source bundle sha256 (tgz):
9105157cf7e6020a2bf66a76f9b95af9497379ed13384a948218caf6df3096cc
Input JSON sha256:
cd988bc1d413c7dd6912ad325fd567597c95597f51bc9e0f64c27fde67bb6f10
Normalized output JSON sha256:
3bac213368b487bc9e71c1164f2ea0cc1e920e9f090165df3a43c8e1804b65aa
---
## How to reproduce (no internal access)
```bash
curl -fsSL -o if-api-n8n-demo-source.tgz "https://infrafabric.io/static/source/9105157cf7e6020a2bf66a76f9b95af9497379ed13384a948218caf6df3096cc.tgz"
sha256sum if-api-n8n-demo-source.tgz
tar -xzf if-api-n8n-demo-source.tgz
python3 resolve_n8n_demo.py n8n_input.json > resolved_event.json
sha256sum resolved_event.json
```
Expected `sha256sum` (source bundle):
9105157cf7e6020a2bf66a76f9b95af9497379ed13384a948218caf6df3096cc if-api-n8n-demo-source.tgz
Expected `sha256sum` (normalized output):
3bac213368b487bc9e71c1164f2ea0cc1e920e9f090165df3a43c8e1804b65aa resolved_event.json
---
## Output (normalized event envelope)
```json
{
"event": "resolve",
"input_sha256": "cd988bc1d413c7dd6912ad325fd567597c95597f51bc9e0f64c27fde67bb6f10",
"integration": "n8n",
"notes": {
"integrity": "see if.trace receipt for output bytes",
"live_lookup": false
},
"requested_at": "2026-01-07T00:00:00Z",
"resolved_at": "2026-01-07T00:00:00Z",
"results": [
{
"metadata": {
"action": "slack.post_message",
"owner": "demo.builder@example.com",
"status": "active",
"trigger": "github.issue_opened"
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://n8n.io/workflows/301",
"workflow_id": "wf_0301"
},
{
"metadata": {
"action": "google.sheets.append_row",
"owner": "demo.builder@example.com",
"status": "inactive",
"trigger": "google.drive.new_file"
},
"resolution_method": "synthetic-map",
"status": "resolved",
"target_url": "https://n8n.io/workflows/442",
"workflow_id": "wf_0442"
}
],
"schema_version": "demo.v1"
}
```