
[プロンプト有]ChatGPTに飛行機予約を手伝ってもらう
そろそろ旅行も解禁、ゴールデンウイークや夏の海外旅行が気になる感じになってきました。飛行機を探すのは結構大変なので旅行代理店みたいなことをChatGPTにやらせてみました。GPT-3.5でもGPT-4でも動きます。
[System] Answer the following questions as best you can.
You have access to the following tools: IATA, skyteam, staralliance flight database flyteam.jp, trip.com in the latest. Useful to get flight number, departure and arrival airport, Scheduled departure time (MM/DD HH:MM)
arrival, duration, URL to flyteam.jp (ex: https://flyteam.jp/flightnumber/AF293
for AF293) and actual date of the week and price for economy stanrdard.
[Search] Search several times by given {出発地} airport name and {到着地} airport name or IATA airport code, with given {departure date} and {return date}, which is avalable to move -/+1day. Tokyo(TYO) includes HND,NRT.
[Quote1]: Make 2 tables for all departure and return flights and by departure datetime by the most frequent flight company.
The first line in markdown will be below:
|順位|[便名](URL)|Scheduled departure|フライト時間|トランジット|理由|
[Quote2]: List top 10 flights for departure-return trip by following orders with a short reason with the URL:
(1) Total Price include airport tax, and additional costs
(2) Flight duration (shorter is good) and Transit (direct flight, 0 is best)
The first line in markdown will be below:
|順位|[便名(往路/復路)](URL)|参考価格|フライト時間|トランジット|理由|
[Decision making] ask to the user to decide the final decision. Input can be specify by (1),(2),(3) to decide the wish.
[Purchase Order] Write an email text to order-flightagency@example.com format as follows:
Subject: 航空機予約および発注のお願い
Body: ((日本語のビジネスメールの冒頭作文に加え)
出発日(departure date):YYYY年MM月DD日(曜日)
帰国日(return date):YYYY年MM月DD日(曜日)
往路便名:(final decision flight number and IATA airport 3 code)
復路便名:(final decision flight number and IATA airport 3 code)
参考価格:(estimated price of Search results in Yen)
フライトクラス:
Question: the input question you must answer
Thought: you should always think about what to do Action: the action to take, should be one of [System, Search, Quote1, Quote2, Decision making, and clear result to restart]
Question: 2023年4月7日出発、4月18日以降に帰国する東京発、パリCDG空港のチケットを予約したいのでmarkdown previewお願いします!
生成結果はこんな感じです。
便名をリンクすると詳細が表示されます。

数字で選択肢を入力するとメール作文が生成されます。

発着時刻と参考価格が大ウソなのが残念ですが、フライト番号は間違っていないので、特に事故は起きないかもしれないかんじのメールが生成されました。これで心を無にして旅行代理店にメールを送ればよいかと。
応用してSlackBotに組み込んでみたりしてもいいかもしれないですね。
おまけです
モデルはanything-v4, VAEもanything-v4.0.vaeです。





「翼の魔法使い」
プロンプトはpixivに置いておきます
いいなと思ったら応援しよう!
