Skip to main content

Reach a goal

Describe the goal in plain words; the AI model works the page in a browser session until the goal is reached, cannot be reached, or the step limit. Can start from an address and return its findings in a given shape (JSON Schema), also as a file.

Command in the Web goal agent toolkit · id ooa.web_agent/run · 21 inputs, 8 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
GoalStringNoWhat to achieve, in plain words; ${...} interpolation allowed. Empty when goals lists them.
SessionStringNobrowserBrowser session (from Start web agent session or Open browser).
Maximum stepsNumberNo15Most actions to take, 1 to 60.
Allowed sitesListNoHost names the agent may visit (sub-domains included), e.g. ["portal.example.com"]; any site when empty.
SecretsDictionaryNoName to Credential, e.g. {"password": a Credential}. The model types them as {{secret:password}} and never sees the values.
InstructionsStringNoExtra rules, e.g. "Never press Delete or Pay."
ProviderStringNoopenaiWho runs the model: OpenAI, Azure OpenAI, Anthropic, OpenAI-compatible (LiteLLM, vLLM, Ollama), Hugging Face (its router or your own TGI server), AWS SageMaker (a model on an Amazon SageMaker endpoint), AWS Bedrock or Google Vertex AI (Gemini).
ConnectionStringNoName of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action.
ModelStringNoModel name; the deployment name for Azure OpenAI; the endpoint name for AWS SageMaker; the model or inference profile id for AWS Bedrock.
API keyCredentialNoAPI key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token.
Endpoint addressStringNoEndpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1).
Hide personal dataBooleanNotrueReplace emails, phone and card numbers, IBANs and similar before sending; restored in the answer.
AWS access key IDCredentialNoAWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key).
AWS regionStringNoAWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1.
Timeout (seconds)NumberNo0Seconds to wait for the model on each step; 180 when 0.
Start address (URL)StringNoOpen this address before the first step; the page already open when empty.
Output schemaDictionaryNoJSON Schema the data output must match; the model is shown it and asked to correct an answer that does not match.
Output pathFileNoAlso write the data output to this JSON file when the goal is reached.
Save trajectory toFileNoKeep a record of the run in this JSON file: each step's action, the model's reasoning and a screenshot (saved in a folder next to it). Secrets appear only as placeholders.
GoalsListNoMore goals, reached one after another in the same browser (after goal, when it is given); each gets its own result in goal_results, and a goal not reached stops the rest (G4).
Time limit (seconds)NumberNo0Most time for the whole step, all goals together; no limit when 0. A goal is not started once the time is used up (G4).

Outputs​

OutputTypeWhat it is
successBooleanWhether the model reports the goal reached.
answerStringWhat was done or found.
dataDictionaryValues the goal asked for, if any.
stepsListEach step taken, in words.
urlStringAddress of the page at the end.
input_tokensNumberTokens sent to the model in all steps.
output_tokensNumberTokens the model answered with in all steps.
goal_resultsListWith several goals or a time limit: each goal with its success, answer and data (G4).