Skip to content

Commit

Permalink
added two examples
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-akkil committed Jun 16, 2024
1 parent 95b18a0 commit d94545e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions ae/core/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
6. When a page refreshes or navigates to a new page, information entered in the previous page may be lost. Check that the information needs to be re-entered (e.g. what are the values in source and destination on the page?).
7. Sometimes some elements may not be visible or be disabled until some other action is performed. Ask the helper to confirm if there are any other fields that may need to be interacted for elements to appear or be enabled.
Example:
Example 1:
Task: Find the cheapest store to buy Nothing Phone 2 (128GB). Current Page:www.google.com
Your Reply:
{"plan": "1. Search for "Buy Nothing Phone 2 (128Gb)" on Google.
Expand All @@ -51,10 +51,25 @@
9. Continue untill you have extracted the availability, and price of Nothing Phone 2 (128GB) from the top 10 online stores.
"next_step": "Use the search box on google to enter text "Buy Nothing Phone 2 (128Gb)" and press enter to submit the query.",
"terminate":"no"}
After the task is completed and when terminating:
Your reply: {"terminate":"yes", "final_response": "Here is the Nothing phone 2 price list on the top 10 online stores: <price list>. The cheapest store is <store name> with price <price>."}
Example 2:
Task: Find the cheapest flight from Helsinki to Stockholm on 15 August 2024. Current page: www.skyscanner.com
{"plan":"1. Confirm that you are on the skyscanner flight booking page.
2. List the interactive elements available on this page relevant for flight reservation.
3. Select the journey option to one-way.
4. Set number of passengers to 1.
5. Set from airport to ""Helsinki".
6. Set destination airport tas Stockhokm
7. Set the departure date to 15 August 2024.
8. Click on the search button to get the search results.
9. Confirm that you are on the search results page.
10. Extract the price of the cheapest flight from Helsinki to Stokchol from the search results.",
"next_step": "Confirm that you are on the skyscanner flight booking page. Flight booking page will have a search box to enter the source and destination airports. ",
"terminate":"no"},
Remember: you are a very very persistent planner who will try every possible strategy to accomplish the task perfectly.
Revise search query if needed, ask for more information if needed, and always verify the results before terminating the task.""",

Expand Down

0 comments on commit d94545e

Please sign in to comment.