Back to Prompt Library
planning

Initial Agent Setup and Tool Definition

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Build an Advanced Visual Web Agent with OpenAI Agents SDK and GPT-5 Pro

Format
Code-aware
Lines
7
Sections
1
Linked challenge
Build an Advanced Visual Web Agent with OpenAI Agents SDK and GPT-5 Pro

Prompt source

Original prompt text with formatting preserved for inspection.

7 lines
1 sections
No variables
1 code block
Using OpenAI Agents SDK, define a 'VisualNavigator' agent with GPT-5 Pro as its underlying model. This agent should be capable of basic web navigation (go to URL, click element) using a custom tool. Implement a simple 'navigate_to_url' tool. Ensure your setup includes initializing the OpenAI client and creating an assistant and thread. ```python
from openai import OpenAI client = OpenAI() # Define your custom tool schema here
navigate_tool_schema = { "type": "function", "function": { "name": "navigate_to_url", "description": "Navigates the browser to a specified URL.", "parameters": { "type": "object", "properties": { "url": {"type": "string", "description": "The URL to navigate to."} }, "required": ["url"] } }
} assistant = client.beta.assistants.create( name="VisualNavigator", instructions="You are an expert web navigator, capable of visiting URLs and interacting with web pages visually.", model="gpt-5-pro", # or appropriate GPT-5 Pro model ID tools=[navigate_tool_schema]
) thread = client.beta.threads.create() print(f"Assistant ID: {assistant.id}")
print(f"Thread ID: {thread.id}")
```

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Preserve the role framing, objective, and reporting structure so comparison runs stay coherent.

Tune next

Swap in your own domain constraints, anomaly thresholds, and examples before you branch variants.

Verify after

Check whether the prompt asks for the right evidence, confidence signal, and escalation path.