Verdika / Guides / Automation
Automation

n8n: how to verify a decision before the workflow executes it

In short

Between the node that decides and the node that executes, add an HTTP request to verification and a Switch on the verdict. On approve the workflow continues, on review it notifies a person, and on block it stops. There is a template ready to import.

The problem with workflows that decide alone

An n8n workflow with an AI node can read the CRM, conclude that a price should change and change it, with nobody watching. While the action is reversible and cheap, that is fine. When it touches money, customers or contracts, you need a control point between deciding and executing.

The structure: three nodes

NodeRole
HTTP RequestSends the proposed action and the evidence to POST /v1/verify.
SwitchBranches on the verdict field.
Three branchesapprove executes; review notifies a person and waits; block ends and notifies.

The request

In the HTTP Request node: POST method, JSON body and an Authorization header with your key. Store the key as an n8n credential, not typed into the node.

POST https://verdika.pro/v1/verify
Authorization: Bearer vk_TU_CLAVE
Content-Type: application/json

{
  "action": "{{ $json.accion_propuesta }}",
  "evidence": [{"content": "{{ $json.dato }}", "source": "CRM"}],
  "agent": {"name": "n8n", "run_id": "{{ $execution.id }}"}
}

Raise the node timeout to 120 seconds: a verification takes as long as an analysis. The run_id with the execution id lets you tie the audit record to the n8n run later.

Files, directly

If the workflow has the income statement or a CRM export as a file, you do not need to summarize it. Pass it in the files field with the name and the content in base64, or convert it first with POST /v1/ingest, which needs no key and does not store the file. It accepts CSV, TSV, Excel, JSON and text up to 2 MB.

The template

Download n8n-verdika-verify.json and import it from the canvas menu. It ships with the manual trigger, the request and the Switch with three outputs; you only change the key and connect your nodes to each branch. The template uses standard n8n nodes; on an old version it may ask you to update the Switch node.

Closing the loop

When a person resolves a review, add a call to POST /v1/audit/{id}/resolution with who decided and whether it was executed. That way the record does not stop at “verification said review”, but states what was done and under whose authority.

Add the control point to your workflow.

Import the template and change the key.

Read the API documentation

Frequently asked questions

Do I need a special node?

No. The HTTP Request node and a Switch, both built into n8n, are enough.

Does it work the same in Make or Zapier?

Yes: it is a POST request with JSON and an authorization header. The OpenAPI specification is at /openapi.json.

How long does the step take?

As long as an analysis, on the order of tens of seconds. Use it before critical actions, not on every trivial run.

You may also find useful: AI agent guardrails API · Audit trail for AI agent decisions