LLM action sequences

An action sequence defines how the application works with one Web provider page: opening it, locating controls, entering a prompt, waiting for completion, and collecting the result. Steps run from top to bottom, so their order matters as much as their settings.

Step types

Navigation: Open page, Navigate to URL, and Reload page. Preparation: Wait, Wait until ready, Maximize window, Dismiss popup, and New chat. Interaction: Click, Click element, Enter text, Scripted input, Scripted click, Submit prompt, Scroll, and Press key. Results: Wait for response, Copy response, Wait for image, and Save images. Checks: Wait for element and Check element.

Choosing a type shows only its relevant settings. A typical text workflow prepares the page, inserts the prompt, submits it, waits for completion, and copies the response.

Sequence templates

Basic creates New chat → Wait until ready → Enter text → Submit prompt. Full also dismisses popups, while With scroll adds a pause and scrolling after submission. Applying a template replaces the complete current list after confirmation and fills in saved selectors for the selected provider. Export a configuration first if you may need it again.

Element selectors

A selector identifies a page element by a stable property such as id, data-testid, aria-label, placeholder, role, text, CSS, or XPath. Fields marked JSON describe one element. Multiline popup fields accept several alternatives, one per line, and try them in order.

The target button requires a CDP-launched browser. Click the button and then the element on the open page; the result is written to the field. Recapture a broken selector and retest the complete sequence after a site redesign.

Opening and navigation

Open page opens the provider's main page and can use its saved URL automatically. Navigate to URL requires an exact address for another page; Reload page refreshes the current one. The completion condition can be HTML loaded, the full page loaded, or network activity nearly idle. HTML loaded is usually faster and more stable.

Page load timeout limits navigation itself; Pause after navigation is a separate delay afterward. On the main page, Open page can load cookies before the first request, allow them to settle, refresh automation protection, and check the URL, login, and required selectors. Disable that check for intermediate pages.

Delays and timeouts

Wait is an unconditional delay. Timeout is the maximum period in which a step may satisfy its condition; it is not a delay. Pause after action starts only after a successful action. Prefer a dedicated element or response wait over a long fixed pause.

Dismissing popups

Dismiss popup tries provider selectors and common close-button alternatives in order. Add custom lines or remove irrelevant ones. Large overlay cleanup helps when a dimming layer blocks the page without a stable close button; disable it if the site uses a similar layer as part of its working interface.

New chat

New chat starts a clean conversation before prompt input. It either clicks the saved selector or navigates to the provider's main page. Allow manual button selection permits manual assistance when automatic lookup fails. Skip if the page was just opened treats a fresh page as an already prepared conversation.

Text input and keys

Enter text fills the located or currently active field; {prompt} is replaced with the current request. Clear field before input removes previous content. Scripted input is for pages where normal input does not trigger the required events, including elements in an open shadow DOM. Press key sends the selected key or combination to the browser.

Click actions

Click accepts a JSON selector or coordinates and can perform a double-click. Click element searches by CSS, visible text, or both. Scripted click works in the document and open shadow DOM; optional text narrows the matching elements. Prefer a stable selector to coordinates after page changes.

Submitting a prompt

Submit prompt focuses the input field when its selector is supplied, then clicks the submit button. Send Enter if the button is not found provides a fallback when the button selector is empty or outdated. Disable it when Enter inserts a new line or could submit twice on that site.

Waiting for readiness and responses

Wait until ready waits for a usable page and input field; an empty selector uses the provider's standard readiness check. Wait for response waits for text generation to finish. With a Stop button or generation-indicator selector, it waits for the indicator to appear and then disappear. Treat missing indicator as an error only when the site always shows it, even for short answers.

Capturing a response

Copy response clicks the located copy button; an empty field uses the provider's shared selector. Post-processing is optional: No processing preserves the captured text, while Clean Perplexity links removes Perplexity-specific link decoration. Place this step after response completion.

Waiting for images

Wait for image waits for the expected number of completed images within the overall timeout. A Stop indicator may be used as with text responses. A custom JavaScript expression is only needed when a normal selector cannot identify a completed image; Poll interval controls how often it is checked. Very frequent polling adds load, while slow polling delays detection.

Saving images

Save images stores results that have already appeared. Auto chooses a suitable method. Other choices use a download button, a normal download, strict waiting for a download event, or clipboard image copying. Save count limits the files and Download timeout limits the browser event wait. Button-based methods need a button selector; result lookup needs a completed-image selector.

Scrolling

Scroll moves the page or active container down, up, left, or right by the selected number of pixels. Use it when a required element appears only after scrolling; one larger step is usually clearer than several adjacent scroll steps.

Waiting for an element

Wait for element waits for a JSON-selected element to appear before the timeout. Wait for element disappearance reverses the condition for loaders, dialogs, and temporary indicators. It is more reliable than a fixed Wait when page speed varies.

Checking an element

Check element verifies that an element is present or absent. It can detect a CAPTCHA, quota message, error, or required readiness marker. Stop execution on error ends the sequence when the expectation is not met; without it, processing continues to the following steps.

Optional steps and errors

Do not stop the sequence if the element is not found turns a missing element into a skipped Click element or Scripted click step. Use it only for genuinely optional banners or interface variants. Keep the stop behavior when the result cannot be obtained without that element; otherwise the later failure will be harder to diagnose.

Validating and testing

Validate checks structure, required settings, step order, and prompt insertion for a text provider. Test runs the sequence on the real page and requires a configured URL, a running browser, and an active connection. After entering a test prompt, the report shows each step's result. A passing test proves the current page and selectors, not site quotas or a full project run.