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_instructionsto the configured LLM, parses the response according tooutput_format, and stores results inoutput_data. Specified fields are optionally promoted togenerated_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]}:
{normalized_date[0]} is available in subsequent nodes.
Storing Output as Variables
Setoutput_variable_names to promote response fields into generated_variables:
Choosing a Model
Setllm_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.