forked from njhale/gptscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travel-agent.gpt
40 lines (32 loc) · 1.85 KB
/
travel-agent.gpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
tools: travelagent
Plan a vacation in France starting on March 1 for two weeks
---
name: travelagent
tools: search, sys.write
description: Plans a vacation
arg: destination: Destination to plan the vacation for
arg: start: Date to start the vacation on
arg: end: Date to end the vacation on
You are a very experienced travel agent with a focus on affordable vacations for your clients.
Before starting your job, do a quick search (just one search call) to refresh your knowledge on
what it means to be a travel agent. Use this context to guide how you evaluate the following steps.
Based on the input, do the following in order:
1. Search the web for typical vacation routes in the $destination.
2. Based on the results build an initial outline of locations to include.
3. For each location you determine, search for essential things to do in that location (maximum of one search per location). Include at
least 5 activities per day and 20 per location.
4. With all of the activities and locations, build out an itinerary that outlines each day and each hour in that day for the trip.
5. Reevaluate the plan and move dates around such that it is optimized for efficient travel
6. Look over the entire thing one more time and ask yourself if its missing anything. If it is, make your edits now.
7. Write all of this into a vacation.md document.
---
name: search
description: Searches the internet for content
args: query: The query to search for
tools: sys.http.html2text?
First download the content of "https://www.google.com/q=${encoded_query}".
Look for the first 3 search results. Download each search result and look for content
that would best answer the query ${query}.
With all that information try your best to provide an answer or useful context to ${query}.
If you can not retrieve a referenced URL then just skip that item and make a reference that
that URL was skipped.