Skip to main content
misc_action.llm_query sends a prompt directly to an LLM and stores the structured response—no browser state, axtree, or screenshot is involved.

Overview

  • Use when: You need to transform, classify, or reason over data already in memory (e.g., reformat an extracted date, classify extracted text, compute a derived value).
  • Execution: The action sends prompt_instructions to the configured LLM, parses the response according to output_format, and stores results in output_data. Specified fields are optionally promoted to generated_variables.
  • No browser access: Unlike extraction_action.llm, this action does not read the current page. Reference earlier extracted values via {variable_name[index]} in your prompt.

Properties

JSON Example

Output Format

Define the expected response structure with Python type hints:
Only str and List[str] are supported types in output_format.

Using Variables in Prompts

Reference extracted values from earlier nodes using {variable_name[index]}:
After this action, {normalized_date[0]} is available in subsequent nodes.

Storing Output as Variables

Set output_variable_names to promote response fields into generated_variables:
Every key in output_variable_names must appear in output_format. Validation fails at schema load time if a key is missing.

Choosing a Model

Set llm_model_name to any LiteLLM model string: Omit llm_model_name to use the task model, which itself falls back to the LLM_MODEL environment variable. See Model Configuration.

LLM Query vs LLM Extraction

Use misc_action.llm_query after an extraction step to post-process or validate extracted data without consuming a browser round-trip.