Skip to content

Kadmo for n8n

Kadmo's n8n node lets a workflow hand work to your account's AI coding agents and read the result back, and its trigger starts a workflow when a job has finished, when it needs a person and when a task is done.

What Kadmo does in n8n

Kadmo’s package for n8n holds two nodes, and n8n has verified both. The Kadmo node is a step a workflow takes to hand work to your Kadmo account or to read it back. The Kadmo Trigger starts a workflow when work in your account reaches a point the workflow waits for.

The Kadmo node has five operations, two on jobs and three on tasks:

  • Job › Dispatch puts one of your account’s workflows in the queue of a workspace, and one of the account’s agents picks it up.
  • Job › Get reads a job back: its status, the agent on it, a question it waits on, and its result once it has ended.
  • Task › Create files a task, either in the tracker project its workspace is linked to or as a task Kadmo keeps itself. The new task waits in Tasks and does not start by itself.
  • Task › Get reads a task back with its playbook and its runs.
  • Task › Run Playbook approves a task with a playbook. Either the run begins at once, or the answer names what holds it, such as a task it depends on, a workspace that already runs as many playbooks as it may, or a step only a person can take.

The workspace, the workflow and the playbook are chosen from lists the node reads from your account: the active workspaces, the enabled workflows and the enabled playbooks. Choosing a workflow shows the inputs it takes. An AI Agent node can use the Kadmo node as one of its tools, and the agent’s model then decides when to call it. The trigger is never a tool.

The Kadmo Trigger listens for three events, and a workflow picks one or more of them:

  • Job Finished: a job succeeded, failed or was cancelled. The event leaves Kadmo half a minute to ten minutes after the job’s end, once its report and its files are in.
  • Job Needs Input: a job waits for a person. That is an agent’s question, a plan to approve, a permission the agent asks for, a session held by a usage limit, or a gate that waits for approval. The event leaves two minutes after the ask, and only if nobody has answered it by then.
  • Task Done: a task’s run resolved it, or closed it with nothing left to do. This one leaves within seconds.

The trigger hears every job and every task of your account, or of the one workspace picked in the node, whoever started them, and not only the work the same workflow handed over. Whatever happened before the workflow was published is not sent afterwards.

Kadmo makes no model call to answer the node or to send an event. The work itself is done by your account’s agents, like any other work in Kadmo.

Who installs the node, and what it needs

  • A Kadmo account and a member’s API token. Every member can make tokens of their own under Settings › Assistant › API tokens in the app, unless the account’s trial has lapsed, which leaves revoking open and creating closed. Kadmo shows a new token a single time, and it begins with kadmo_api_. The token acts as the member who made it, on that account, and it opens the API and no other part of Kadmo. Whatever role the member holds, it reaches every active workspace of the account and every job and task there. How tokens are made and revoked is in the docs’ token guide.
  • n8n Cloud or a self-hosted n8n. Because n8n has verified the node, an owner or an admin of the n8n instance installs it from the nodes panel of the editor, on n8n Cloud and on a self-hosted n8n alike. A self-hosted n8n can also install the community package @kadmo/n8n-nodes-kadmo by its name.
  • A Kadmo API credential in n8n. It holds the token and the address of the Kadmo app, https://app.kadmo.ai. n8n tests the credential by asking Kadmo who the token belongs to.
  • For the trigger, a public https address. Kadmo sends events only to an https address on the public internet and refuses to subscribe any other. n8n Cloud gives a workflow one. A self-hosted n8n needs an address that reaches it from outside.

The node’s code and its README are in its repository on GitHub, and the head of this page leads to Kadmo’s page at n8n.

How the trigger subscribes, and how a delivery is checked

Publishing a workflow that starts with the Kadmo Trigger subscribes its webhook address in Kadmo, with one subscription for the events picked and, if one was picked, for that workspace alone. The subscription then shows under Integrations › Outgoing webhooks as the member’s own, and an admin of the account sees every member’s subscriptions there.

Kadmo signs each delivery with a secret that belongs to this one subscription. The node checks the signature on the very bytes it received and refuses a delivery whose time stamp lies more than five minutes from the clock of the n8n host, in either direction, so a host whose clock runs wrong refuses every delivery. A delivery that fails either check is answered with a 401 and starts nothing.

A delivery that n8n has not taken within ten seconds is tried again, with at most eight attempts in all within about a day, and each time it is the same event with the same id. An event can therefore come twice, and events can come in another order than they happened, so a workflow that must act only once checks the id. The webhooks guide sets out the signature and the retries in full.

If nothing was taken for a whole day, or as soon as the address answers 410, Kadmo switches the subscription off, drops the deliveries still waiting and sends its owner a mail. Enable under Outgoing webhooks switches it back on, and what happened while it was off is not sent later.

How to stop it

  • Unpublish the workflow. The node then deletes its subscription in Kadmo.
  • Or delete the subscription in Kadmo, under Integrations › Outgoing webhooks. Kadmo stops sending to it, and its delivery log goes with it.
  • Revoke the token last. A revoked token refuses the node’s next call, but a delivery is no call, so the subscription keeps sending. With the token revoked, unpublishing can no longer delete the subscription either. Unpublish or delete first, then revoke.

What a workflow sends to Kadmo

Every call of the node carries the token. Beyond the token, a call carries only what the workflow put into the node:

  • A dispatch: the workspace, the workflow, the inputs typed or mapped in the node, as text, and an effort tier if one is set.
  • A new task: its workspace, title, description, type and priority, and whether it is filed in the workspace’s tracker or kept in Kadmo.
  • A run: the task’s key, the playbook, a hint for the agents and the run’s options.
  • A subscription: the webhook’s address, the events and the workspace, where one is picked.

A dispatch, a new task and a run each carry a key built from the n8n execution, the node, the run and the item. When n8n retries such a call, Kadmo recognises the key, hands back its first answer and starts nothing twice.

Work started from n8n passes the checks that work started in the app passes, the trial, the daily cap, credit and budgets among them, and it can spend the account’s credit like any other job.

What Kadmo sends to n8n

  • To the credential test: the member’s name and e-mail address, the account’s name and short name, the member’s role and the token’s name, each with its id.
  • In the lists: each active workspace with its name and where it files new tasks; each enabled workflow with its description and its inputs, which of them are required and their defaults; each enabled playbook with its description and its steps.
  • For a job, in an answer and in an event: its status, workflow, workspace and task; the inputs it was started with; the member it is recorded under, by name, or by e-mail address where they have set no name; the name of its agent and its run; an open question with its options; the report’s verdict, summary, pull requests and links; its files by name, each linked to its page in Kadmo, which opens only after signing in; and why it failed or was cancelled.
  • For a task: its key, title, type, status, tracker, workspace, priority, playbook and runs, and no person’s name.
  • Around an event: its own id, its type, the time it was made and the subscription’s id.

Kadmo sends the whole job or task each time, and for Run Playbook the run and what holds it beside the task. In a workflow, the node’s Simplify option, on by default, shows ten of the fields, and the others are there with Simplify switched off; as a tool of an AI Agent node, its Output option picks those ten fields, the whole answer or the fields named. Where the node is a tool of an AI Agent node, Kadmo’s answer goes to the model chosen in n8n, which decides what comes next. On n8n’s side, the token is kept as the credential and the subscription’s signing secret with the workflow.

What Kadmo keeps

  • Of the token: a hash of it, never the token itself, with its name, its first characters, and when it was made and last used. When a token is revoked, its record stays, marked revoked, until the account is deleted or the member is erased.
  • Of the subscription: its address, events, workspace and owner, the token that made it, whether it is on, and its signing secret, encrypted.
  • Of each delivery: the event as Kadmo sent it and n8n’s last answer to it, that is its status, its time and its first 256 characters. A delivery is kept for seven days, and deleting the subscription deletes all of them at once.
  • Of each dispatch, new task and run: Kadmo’s answer, for 24 hours, so that a retry receives the same answer.
  • The work itself, with the rest of the account’s work. A dispatched job is recorded under the member whose token sent it. A task Kadmo keeps itself names that member as its creator, and a ticket in a tracker is filed through the account’s own connection to that tracker. A run started with Run Playbook is created under the account’s first member and records the token’s member as the one who approved it, with the token named.
  • A log line for each call that writes: the operation, the ids of the account, the member and the token, and the outcome. It never holds the token or what the call sent.

When a member is removed from the account, their tokens are revoked and their subscriptions deleted with their delivery logs. The app refuses that removal while the member still owns agents, jobs or pipelines, and a job dispatched with their token is theirs. Deleting the account deletes the tokens, the subscriptions and their logs, and the account’s jobs, tasks and runs, though a run’s step records are kept.

To receive a copy of what Kadmo holds about you, or to have it erased, write to the address on the support page. How Kadmo treats personal data in general is described in the privacy policy.

  • Claude

    Give your agents a job from a chat in Claude and read the outcome there.

  • Cursor

    Hand a ticket to your agents from Cursor's chat or from its CLI.

  • Playbooks

    The steps for each kind of ticket, each with a role, and a gate at every handoff.

  • AI coding agents

    Agents in the roles you define, each on its own machine, on Kadmo or on yours.

  • Self-hosted agents

    Inside your perimeter: one outbound connection and no inbound port, on Ubuntu, Docker or Kubernetes.