Most n8n workflows that touch a web form are simple: fetch a page, pull out a value, post the form, check the result. Then a captcha appears on the form and the workflow stops making sense, because the one value you need is produced by JavaScript in a browser that n8n doesn't run.
This post is about adding that step with stock nodes only: no Code node, no custom JavaScript. It covers where the step goes, how to keep the API key out of your workflow exports, and the part people usually skip, which is what the workflow does when the solve fails.
Scope first: this is for workflows against your own sites or sites where you have permission to automate, such as monitoring that your own contact form still accepts submissions, or a partner portal whose terms allow scripted access. If you control the site, check the cheaper options before you add a solver: the provider's test keys for staging, an allowlist for your monitoring traffic, or an API that skips the form altogether.
Where the step goes
A form-submitting workflow with a captcha has five stages:
- Trigger: Schedule Trigger for monitoring, or Webhook / Manual for one-off runs.
- Load the page: an HTTP Request node that GETs the form page.
-
Read the sitekey: an HTML node that extracts the
data-sitekeyattribute (CSS selector[data-sitekey], return the attribute value). - Solve: an HTTP Request node that sends the sitekey and page URL to a solving API and gets a token back.
- Submit and check: an HTTP Request node that posts the form with the token in the field the site expects, followed by an IF node on the response.
The rule that shapes everything: stage 4 and stage 5 must sit next to each other. Captcha tokens are short-lived and single-use. Google documents that a reCAPTCHA token is valid for two minutes and can be verified once; Cloudflare documents a 300-second lifetime for Turnstile tokens, also single use. Don't put a Wait node, an approval step or a slow batch between solving and submitting. If a run has to pause, pause before the solve, not after.
The solve node, configured without code
Every solving API has a slightly different request format, so here is one concrete shape (from the API disclosed at the end), with the general parts pointed out.
Credential. Create a Header Auth credential (or the Bearer Auth type, which is the same thing with the header name filled in). Name: Authorization, value: Bearer cn-.... Then pick that credential in the HTTP Request node's Authentication → Generic Credential Type setting.
Don't paste the key into a header field on the node itself. n8n's export docs warn that exported workflow JSON includes credential names and IDs, and that HTTP Request nodes imported from cURL may carry authentication headers that you'd need to strip before sharing. A credential reference is safe to share; a header typed into the node is not.
Request. Method POST, URL https://api.captchano.com/v1/solve?wait=60, body type JSON, and a body built with expressions:
{
"type": "recaptcha_v2",
"sitekey": "{{ $json.sitekey }}",
"url": "{{ $('Load page').item.json.url }}"
}
$json.sitekey comes from the HTML node directly before this one. The page URL is pulled from the earlier node by name, which keeps it correct if you later insert a node in between.
wait=60 tells the API to hold the connection open until the task is solved (or 60 seconds pass) instead of returning a task ID you'd have to poll. That's what makes this a single node instead of a polling loop.
Timeout. Open Options → Timeout and set it above the wait value, for example 75000 (n8n takes milliseconds here). If the node gives up before the API answers, you pay for nothing useful and the workflow fails with a timeout that hides the real cause.
Response. On success you get something like:
{
"id": "slv_...",
"status": "ready",
"solution": { "token": "03AGdBq25S..." },
"cost": "...",
"solveTime": 18.4
}
In the submit node, map {{ $json.solution.token }} into the form field the site reads: g-recaptcha-response for reCAPTCHA, cf-turnstile-response for Turnstile.
Handling failure on purpose
A solve can fail for reasons that need different reactions, and n8n gives you enough tools to tell them apart without code.
Turn on the error output. In the solve node's settings, set On Error to Continue (using error output). The node now has two outputs: successes go one way, errors go the other, and the workflow keeps running either way. With the default Stop Workflow, one bad solve kills the whole run, including items that were fine.
Branch on the error code, not the message. Messages change; codes are meant to be stable. In the example API, a failed solve returns HTTP 422 with error.code set, and an empty balance returns 402. Put a Switch node on the error branch and route by code:
-
rate_limited,capacity_unavailable: transient. Retry after a pause. -
insufficient_balance,invalid_api_key: retrying won't help. Alert a human and stop. -
invalid_sitekey,unsupported_type,proxy_required: the workflow is wrong, usually because the page changed. Alert and stop. -
unsolvable,score_not_met: one retry is reasonable; a second failure is a signal, not bad luck.
Be careful with Retry On Fail. The node setting Retry On Fail reruns the node until it succeeds or runs out of tries. That's fine for the transient codes and wasteful for the rest: retrying a wrong sitekey three times only triples the noise. If you use it, keep the try count low, and keep the classification above for anything it can't fix.
Send what's left to an error workflow. For the cases that should stop the run, add a Stop and Error node at the end of that branch. Set an error workflow in the workflow's settings; it must start with an Error Trigger node, and it receives the execution URL, the last node that ran and the error message. Point it at Slack, email or whatever your team watches. One error workflow can serve every workflow you own.
Check the submission, not just the solve. A token that came back ready can still be rejected by the site: wrong page URL, a reCAPTCHA v3 action that doesn't match, a token sent from a different IP than the one the site expects, or a token that sat too long. Put an IF node on the submit response that checks for the success marker your form returns (a redirect, a status code, a "thanks" string). That IF node is the real test that the step works. I wrote up the common reasons a solved token still gets rejected separately.
A checklist before you activate it
- [ ] You own the site or have written permission to automate it.
- [ ] The key lives in an n8n credential, not in a node header or body.
- [ ] The solve node's timeout is above the API's wait value.
- [ ] Nothing slow sits between the solve and the submit.
- [ ] On Error is Continue (using error output), and the error branch routes by code.
- [ ] Retry On Fail is limited to transient errors, with a small try count.
- [ ] An error workflow with an Error Trigger alerts a person.
- [ ] An IF node checks that the form actually accepted the submission.
- [ ] A Schedule Trigger's interval matches how often you really need the check, since each run costs a solve.
Limits of the no-code approach
This pattern works when the form can be submitted with a plain HTTP request. Some can't. If the site builds its request in client-side JavaScript, signs it, or checks that the token came from the same browser session that loaded the page, an HTTP-only workflow will keep failing no matter how good the token is. In that case you need a real browser (a Playwright or Puppeteer service that n8n calls), and the captcha step moves into that script.
Session-bound challenges such as DataDome are a second case: the cookie you get back is tied to the IP and user agent that earned it, so the solve and every following request must use the same proxy and user agent. That's doable in n8n, but it's no longer a two-node change.
And n8n Cloud has one constraint worth knowing: its docs say unverified community nodes aren't available on Cloud and need a self-hosted n8n. The HTTP Request approach above works on both.
About CaptchaNo (disclosure)
I work on CaptchaNo, which is the API in the examples above. It solves reCAPTCHA v2, v3 and Enterprise, Cloudflare Turnstile, DataDome, GeeTest v3 and v4, Yandex SmartCaptcha and image captchas on our own solving infrastructure, and the request format and error codes are documented in the API reference.
For n8n specifically, there's a step-by-step n8n workflow guide for the HTTP Request setup above, and a self-hosted community node, n8n-nodes-captchano, that wraps solve, get-result and balance into one node with the error codes turned into readable messages. If you're building an AI Agent workflow instead, the n8n agent guide shows the solver exposed as a tool. Support questions go straight to the engineers who run the service.
On billing: only successful solves are charged, failed solves are never billed, and credit doesn't expire, so the retry branch above doesn't quietly run up a bill. Per-type prices are on the pricing page.
This article was drafted with AI assistance and reviewed against the n8n, Google and Cloudflare documentation linked above.
Top comments (0)