Files
Dorod-Sky/skyvern/forge/prompts/skyvern/parse-input-or-select-context.j2
2024-10-08 13:50:58 +08:00

23 lines
903 B
Django/Jinja

You are a browser agent performing actions on the web. You are instructed to take an INPUT or SELECT action on the element(id: "{{ element_id }}"). Extract some detailed information from the context/reasoning, and double-check the information by analysing the HTML elements.
MAKE SURE YOU OUTPUT VALID JSON. No text before or after JSON, no trailing commas, no comments (//), no unnecessary quotes, etc.
Reply in the following JSON format:
{
"thought": str, // A string to describe how you double-check the information to ensure the accuracy.
"field": str, // Which field is this action intended to fill out?
"is_required": bool, // True if this is a required field, otherwise false.
"is_search_bar": bool, // True if the element to take the action is a search bar, otherwise false.
}
Existing reasoning context:
```
{{ action_reasoning }}
```
HTML elements:
```
{{ elements }}
```