Automation platform integration

Twin Browser + n8n

n8n is a source-available workflow automation tool you can self-host or run in their cloud. Workflows are graphs of nodes, and the HTTP Request node calls any REST API — which is all a Twin integration needs.

Automation platform4-step setupBearer key auth

How Twin plugs into n8n

There is no Twin community node to install. Drop an HTTP Request node into the workflow, POST to `/api/v1/run` with your Bearer key in a header credential, and the structured result flows into the next node. That covers the case n8n cannot otherwise reach: the step in a workflow where the system on the other end has no API and somebody has been doing it by hand.

Twin is the browser execution layer your stack calls. The first run cold-compiles a skill via skill compilation; every similar request after that is matched from the cache and replayed deterministically, so your marginal cost per run trends toward zero rather than climbing with usage.

app.example.com
  1. Receive goal from n8ndone
  2. Compile DOM → token-efficient indexed statedone
  3. Match the semantic dispatch cacherunning
  4. Replay compiled skill — 0 LLM callsqueued

Wire it up

Drop Twin into n8n.

Copy, paste, and swap in your Bearer key. The first run compiles a skill; repeats match the semantic dispatch cache and replay deterministically.

HTTP Request node — POST /api/v1/runjson
// Method:  POST
// URL:     https://twin-browser.com/api/v1/run
// Auth:    Header Auth credential → Authorization: Bearer ab_live_…
// Body:    JSON

{
  "url": "https://app.acme.com/billing",
  "prompt": "Sign in and download the latest invoice as CSV",
  "success": { "kind": "textVisible", "value": "Invoice" }
}

// A long run should not hold a workflow open. Use the async path instead:
//   POST /api/v1/jobs            -> { jobId }
//   GET  /api/v1/jobs/{jobId}    -> poll for the result
// or pass callbackUrl + callbackSecret and let n8n receive an HMAC-signed webhook.

Base URL https://twin-browser.com/api/v1 · auth Authorization: Bearer ab_live_… · over MCP the same engine is run_goal, compile_skill and run_skill the full tool table.

  1. Create a credential

    In n8n, add a Header Auth credential with name Authorization and value Bearer ab_live_… so the key is not typed into the node.

  2. Add an HTTP Request node

    Method POST, URL https://twin-browser.com/api/v1/run, and attach the credential.

  3. Send the body

    JSON body with url, prompt and success — success is required alongside url and prompt.

  4. Use the result

    Map the structured response into the next node in the workflow.

FAQ

n8n on Twin — common questions

Is there an n8n community node for Twin Browser?
No. The HTTP Request node is the supported path, and it needs no installation or approval in a self-hosted instance — which is usually an advantage rather than a compromise.
What if the browser task takes minutes?
Use the async endpoints. POST /api/v1/jobs returns a job id immediately; either poll GET /api/v1/jobs/{id} or supply callbackUrl and callbackSecret so Twin POSTs the completed result to an n8n webhook, HMAC-signed.

Wire up n8n in minutes.

Free to start. Usage-based credits from $29/mo — each call billed the higher of its flat action price or its metered cost.