patchwell

Patchwell for n8n: clean and deduplicate data from any node's items, transcribe recordings, research with cited sources, and run any other Patchwell tool. Pay per result.

Package Information

Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.2.0

Documentation

n8n-nodes-patchwell

Patchwell inside n8n: clean and deduplicate data, transcribe recordings, research with cited
sources. You pay per result; a failed or refused call costs nothing.

Install

In n8n: Settings → Community Nodes → Install, enter n8n-nodes-patchwell. Self-hosted:
npm install n8n-nodes-patchwell in your n8n folder.

Create a Patchwell API credential with your key (pw_live_...). A free key with $1 of credit is one form at
patchwell.io. The credential test calls GET /v1/me.

Operations

Clean Data: put it after any node. With Data: All Input Items, every item becomes one row, cleaned in a single
call; the output is one item per clean record (duplicates merged), or the whole result with the change log, the
review list, column types and quality. It also takes a file URL, a binary file (CSV, XLS, XLSX, JSON) or CSV text.
Options:

  • Only new rows: give the feed a name, and a scheduled workflow passes on only rows it hasn't seen before.
  • Rules (JSON): [{"column": "Age", "range": [0, 120]}, {"column": "Plan", "one_of": ["free", "pro"], "fix": true}].
    Failing records are flagged and listed.
  • Import template (JSON): map columns onto your target format.
  • Make spellings consistent, Check email domains, phone region and format, required and key columns.

Transcribe: a recording URL in, a transcript with word timings, speaker labels, SRT and VTT out. The node waits
for long recordings; turn Wait off to get a job ID and use Get Job later.

Research: a question in, an answer with a cited source for each claim and a list of what it couldn't confirm.
$0.02 per answered question; declined and unanswered questions are free. When the answer has to be worked out from
several facts (an age at an event, a difference between two years), the first sentence states it and its claim is
marked derived, with the facts it rests on and the arithmetic, re-checked by code. Options:

  • Depth: Standard (default) or Deep. Deep costs $0.06 per answered question and searches about twice as wide, for
    hard multi-step questions. Sent as depth.
  • Private: the question stays inside Modal, the cloud Patchwell runs on, and never goes to a model company. Same price. Sent as private.

Each question has a spending limit, so it never costs more than its price. It declines questions about private
individuals and about anyone's personal details.

Run Any Tool: pick any Patchwell tool from a list read live from the API, so tools added after this node version
appear without an update. Its inputs come from the tool itself: fill them in as fields, or paste the whole input as
JSON. Long jobs are waited for like the other operations.

Every call carries an Idempotency-Key that stays the same for every retry of one execution, so n8n's Retry On Fail
never pays twice. Set Idempotency Key to your own record id (e.g. {{$json.id}}) and a later run with the same
record returns the first result too. Errors carry Patchwell's code
(insufficient_credit, invalid_input, rate_limited...); with Continue On Fail the code is on the output item.

The node is marked usable as a tool, so n8n's AI Agent can call it.

Discussion