Pass current url to extract-action prompt (#184)

This commit is contained in:
Kerem Yilmaz
2024-04-13 00:38:01 -07:00
committed by GitHub
parent 7b1c1d5a02
commit cc87844825
2 changed files with 11 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ Each element is tagged with an ID.
If you see any information in red in the page screenshot, this means a condition wasn't satisfied. prioritize actions with the red information.
If you see a popup in the page screenshot, prioritize actions on the popup.
{% if "lever" in url %}
{% if "lever" in starting_url %}
DO NOT UPDATE ANY LOCATION FIELDS
{% endif %}
@@ -41,11 +41,13 @@ Reply in JSON format with the following keys:
Consider the action history from the last step and the screenshot together, if actions from the last step don't yield positive impact, try other actions or other action combinations.
{% endif %}
Clickable elements from `{{ url }}`:
Clickable elements from `{{ current_url }}`:
```
{{ elements }}
```
The URL of the page you're on right now is `{{ current_url }}`.
User goal:
```
{{ navigation_goal }}