n8n — Workflow Automation
Connect DPX to n8n using the HTTP Request node. n8n’s no-code interface lets you build settlement workflows, trigger alerts on peg deviations, and route transactions based on live ESG scores.
Workflow: Price a settlement
Section titled “Workflow: Price a settlement”- Trigger — Webhook, Schedule, or any upstream node
- HTTP Request — GET
/esg-scorefrom ESG Oracle - Set — Extract
scores.averageinto a variable - HTTP Request — GET
/quotewithamountUsd,hasFx=true,esgScore - HTTP Request — GET
/reliability - IF — Branch on
isHealthyandstability.currentScore >= 90 - HTTP Request — POST to your settlement system with
quoteId
HTTP Request node config — Get quote
Section titled “HTTP Request node config — Get quote”| Field | Value |
|---|---|
| Method | GET |
| URL | http://localhost:3000/quote |
| Query Parameters | amountUsd, hasFx, esgScore |
| Authentication | None |
| Response Format | JSON |
HTTP Request node config — Check reliability
Section titled “HTTP Request node config — Check reliability”| Field | Value |
|---|---|
| Method | GET |
| URL | http://localhost:3000/reliability |
| Authentication | None |
| Response Format | JSON |
Example: Peg alert workflow
Section titled “Example: Peg alert workflow”- Schedule Trigger — every 5 minutes
- HTTP Request — GET
localhost:3000/reliability - IF —
{{ $json.peg.deviationBps }} >= 50 - Slack / Email — Send alert with deviation value
- Else — No action
Self-hosted n8n
Section titled “Self-hosted n8n”If running n8n locally, both oracle URLs are reachable at localhost:3000 and localhost:3001.
For n8n Cloud, you’ll need the hosted production endpoints — these are provided upon beta approval.
Credentials
Section titled “Credentials”No API keys required. All DPX pricing and discovery endpoints are public.