NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

AI and automation

How do RPA bots deal with CAPTCHAs?

The usual way is to add a small subprocess: detect the challenge, read its parameters, call a solving API over HTTP, put the answer into the page, and let the bot continue.

Why RPA meets CAPTCHAs

Robotic process automation bots work through the same web portals people do: supplier portals, government filing sites, shipping trackers, bank and insurer back offices. Many of those portals put a CAPTCHA on login, search or download, often to stop abuse that has nothing to do with your bot. The bot is doing legitimate work for an account the company owns, but it still has to pass the same check.

The standard pattern

  1. Detect. After each navigation, check for a widget element, an iframe from the CAPTCHA vendor, or a known challenge page title.
  2. Read parameters. Get the page URL and the site key for token widgets, or capture the image for text CAPTCHAs.
  3. Call the API. An HTTP request activity posts the task to createTask, then a short loop calls getTaskResult until the answer is ready.
  4. Insert the answer. Type the text into the field, or inject the token into the hidden field with a small JavaScript step, then click the button.
  5. Verify and continue. Confirm the page moved on; if not, retry once with a new task, then raise an exception for a person.

Every major RPA platform has an HTTP request activity and a way to run JavaScript in the browser, which is all this needs. No plugin or package is required.

The HTTP calls as a bot would make them

POST https://gatesolver.com/createTask         (once per challenge)
{"clientKey": "{{asset:GateSolverKey}}",
 "task": {"type": "ImageToTextTask", "body": "{{captchaImageBase64}}"}}

POST https://gatesolver.com/getTaskResult      (repeat every 1 s for images, 3 s for tokens)
{"clientKey": "{{asset:GateSolverKey}}", "taskId": "{{taskId}}"}

The double-brace placeholders stand for your platform's variable syntax; store the key in the platform's credential vault, not in the workflow file.

Image CAPTCHAs in legacy portals

Older portals often use a distorted text image. Take the image element's screenshot or its source, convert to base64 without the data: prefix, and send an Image to Text task. Answers come back under 1 seconds at $0.28 per 1,000. If the portal is case-sensitive, type the text exactly as returned. Capture the image in the same browser session that submits the form, or the answer will not match.

Token widgets in modern portals

For reCAPTCHA or Turnstile, the bot does not need to click anything. It sends the site key and URL, receives a token, and sets it with a JavaScript step such as document.querySelector('[name="g-recaptcha-response"]').value = token, then calls the page's callback if there is one. The page on finding the reCAPTCHA callback helps when the form ignores the field.

Design tips for RPA

  • Keep sessions alive. Logging in once a day instead of every run reduces CAPTCHAs more than anything else.
  • Put the CAPTCHA step in a reusable component. One tested workflow, used by every bot, is easier to maintain.
  • Log task ids and outcomes. When a portal changes its widget, the logs show it the same day.
  • Check the balance. A nightly job can call getBalance and alert before credit runs low.

Fair use

Automate only portals and accounts your organization is entitled to use, at a pace similar to a person doing the same work. RPA with a solving step is meant to save staff time on permitted tasks, not to create accounts in bulk or get around a portal's explicit terms. If a portal offers an API or file export, prefer it. The comparison of AI agents and RPA discusses where each fits, and no-code CAPTCHA handling covers similar steps in workflow tools.

Common questions

Do RPA platforms need a plugin for CAPTCHA solving?

No. An HTTP request activity and a JavaScript step in the browser are enough.

Where should the API key live in an RPA project?

In the platform's credential store or asset vault, never inside the workflow file.

How does a bot enter a reCAPTCHA token?

It sets the hidden g-recaptcha-response field with a JavaScript step and triggers the page callback if needed.

Why do image answers fail in my bot?

Often the image was captured in a different session or resized; capture it in the session that submits the form.

Is it allowed to automate a portal with a CAPTCHA?

For accounts and tasks your organization is entitled to, at a human-like pace, it is a common and accepted use.

Keep reading