> ## Documentation Index
> Fetch the complete documentation index at: https://darwin.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n

> Build a durable Darwin workflow in n8n.

Use an HTTP Request or code node for Darwin's REST API. Store credentials in n8n credentials and Action identifiers in workflow data.

For dynamic MCP tool discovery, import the [credential-free Darwin MCP workflow](https://github.com/darwin-studios/darwin-integrations/blob/main/templates/n8n/darwin-mcp-agent.json), then attach your own n8n model and MCP OAuth credentials. The public template is self-serve; verification of a future native Darwin node is a separate reviewed process.

<Note>
  The workflow template works now. A native verified Darwin node is not yet listed and requires an npm package with
  provenance plus n8n Creator Portal review.
</Note>

Branch on Darwin's structured status:

* continue polling for `running`
* wait for input on `awaiting_user`
* send an explicit review for `approval_required`
* open a first-party Darwin link for connection or payment
* finish only on `completed` or `stopped`

Configure retries to preserve the same `requestId` for the same logical mutation.

## Suggested node sequence

```text theme={null}
Trigger → Search → Select or review → Start Action → Store actionId
                                                   ↓
                                     Wait → Get Action → Switch on state
```

Use n8n's wait-and-resume behavior for human input and first-party browser interactions. Before any mutation after the wait, read the current Action again so stale workflow data cannot override a newer state.
