Special Actions
Advanced actions for CAPTCHA solving, popup handling, AI-powered page interaction, lead outcome tracking, and package retry workflows.
captcha
Solve a CAPTCHA using a third-party solving service. Auto-detects the CAPTCHA type (reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile), captures the challenge, sends it to the solver from the same IP as the browser (proxied solving), and injects the token. If a CAPTCHA is detected but not solved, the script stops to avoid submitting behind a closed gate.
| Param | Type | Description |
|---|---|---|
| captcha_typeoptional | string | Force type: "recaptcha", "turnstile", "hcaptcha". Auto-detected if omitted. |
| selectoroptional | string | Hint selector to help locate the CAPTCHA widget on the page. |
| siteKeyoptional | string | Override the site key (auto-extracted from the page if omitted). |
| optionaloptional | boolean | If true, skip quietly when no CAPTCHA is found on the page. Default: false. |
| allow_unsolvedoptional | boolean | If true, continue even if the CAPTCHA cannot be solved (not recommended). |
| provideroptional | string | Solver service to use. Uses the configured default if omitted. |
| proxyoptional | string | Override proxy for solving. Uses the profile's proxy by default. |
| timeoutoptional | number | Max time to wait for a solution in ms. Default: 180000 (3 min). |
| submitSelectoroptional | string | Click this element after solving (e.g. submit button that follows the CAPTCHA). |
// Auto-detect and solve (most common usage)
{ "type": "captcha" }
68
{ "type": "captcha", "optional": true }
164
{ "type": "captcha", "captcha_type": "turnstile", "selector": "#cf-turnstile" }
288
{ "type": "captcha", "submitSelector": "#submit-btn" }popup_close
Click a popup/modal close button if visible. Non-fatal — if the element is not found, the script continues without error. Searches both the main page and iframes by default.
| Param | Type | Description |
|---|---|---|
| selectorrequired | string | array | CSS selector(s) for the close button to click. |
| include_framesoptional | boolean | Search inside iframes too. Default: true. |
| max_framesoptional | number | Max frames to search. Default: 8. |
| delayoptional | number | Wait this many ms after clicking. Default: 350ms. |
| indexoptional | number | Which visible match to click (0 = first). Default: 0. |
{ "type": "popup_close", "selector": ".modal-close-btn" }
{ "type": "popup_close", "selector": ["#dismiss", ".close-icon", "[aria-label='Close']"] }
{ "type": "popup_close", "selector": "#cookie-accept", "delay": 500 }ai_solve
AI-powered dynamic page solver. Sends the page context and the current row data to an AI model that analyzes the page, identifies form fields and buttons, and generates actions to complete the task. Best for complex SPA questionnaires where static selectors are unreliable. The solver runs multiple rounds and reports success/failure.
| Param | Type | Description |
|---|---|---|
| selectoroptional | string | array | Presence gate — only run the solver when this element is visible on the page. Skips silently if not found. |
// Run the AI solver on the current page
{ "type": "ai_solve" }
65
{ "type": "ai_solve", "selector": "#questionnaire-container" }click_random_package
Selects a random package/plan from a leveled list for VCC (Virtual Credit Card) billing workflows. Each package has a level number and a selector. On first run, picks randomly from available levels. On retry (after a VCC decline with insufficient funds), automatically picks the next lower level.
| Param | Type | Description |
|---|---|---|
| packagesrequired | array | Array of { level: number, selector: string } objects. Higher level = more expensive. |
{
"type": "click_random_package",
"packages": [
{ "level": 1, "selector": "#basic-plan .select-btn" },
{ "level": 2, "selector": "#standard-plan .select-btn" },
{ "level": 3, "selector": "#premium-plan .select-btn" }
]
}retry_package
Retries VCC package selection after a card decline. Only runs if a retry is active (triggered by decline detecting insufficient funds). Closes any popups, selects the next lower-level package, and re-submits.
| Param | Type | Description |
|---|---|---|
| packagesrequired | array | Same leveled package list as click_random_package. |
| popup_selectorsoptional | array | Selectors for popups to close before/after selecting the fallback package. |
| submit_selectoroptional | string | Submit button to click after selecting the fallback package. |
{
"type": "retry_package",
"packages": [
{ "level": 1, "selector": "#basic-plan .select-btn" },
{ "level": 2, "selector": "#standard-plan .select-btn" },
{ "level": 3, "selector": "#premium-plan .select-btn" }
],
"popup_selectors": [".modal-close", "#dismiss-popup"],
"submit_selector": "#submit-order"
}