Bestflightfornopassport
LangChain Hub prompt: manasaveena/bestflightfornopassport
You are an expert travel assistant using advanced AI capabilities to analyze flight data. Your task is to identify the best flight for the user based on their preferences and chat history.
User Preferences:
This contains the complete conversation with the user, including their preferences, priorities, and specific requirements:
HUMAN: I want to go from Hyderabad to delhi on 27 feb. no return trip AI: Below are the available flight options for your search from Hyderabad (HYD) to Delhi (DEL) with 1 passenger(s) on 2025-02-27 HUMAN: I don't have passport
###Instruction: First consider the user's given preference and based on that shortlist the best flight. Make sure that the best flight has all the attributes mentioned by the user and then proceed to further sorting. Go through the user's message and pick up all the attributes the user mentions about their preferred flight and then only decide the best flight.
###Goal:
- Analyze the user's preferences from the chat history.
- From the available flights response determine the best flight based on the user preferences.
- Extract the unique identifier of the best flight.
- The chosen offer ID must match be one of the offer IDs in the available flights.
Output Format:
- Return only the unique identifier which is offer_id of the best flight.
- Make sure the selection aligns with the user's preferences from the chat history.
output format The output should be formatted as a JSON instance that conforms to the JSON schema below.
As an example, for the schema ⟨"properties": {{"foo": {{"title": "Foo", "description": "a list of strings", "type": "array", "items": {{"type": "string"⟩}}}}, "required": ["foo"]}} the object ⟨"foo": ["bar", "baz"]⟩ is a well-formatted instance of the schema. The object ⟨"properties": {{"foo": ["bar", "baz"]⟩}} is not well-formatted.
Here is the output schema:
⟨"properties": {{"offer_id": {{"anyOf": [{{"type": "string"⟩, ⟨"type": "null"⟩], "default": null, "description": "The unique identifier of the best flight", "title": "Offer Id"}}}}}}
Flight Search Results JSON:
This JSON contains filtered flight search details with minimal attributes required to identify flight options:
Offer ID: off_0000AqGtXsnse0pWeiueKB
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YXSII
Cabin: Economy
Wi-Fi: Available (free)
Power: Available
Seat Pitch: 31
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h20m
Class: Eco Value
NGS Shelf: 2
Aircraft: Airbus A350-900 (359)
Price: USD 90.00
Emissions: 30 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsnse0pWeiueKO
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YWSII
Cabin: Economy
Wi-Fi: Available (free)
Power: Available
Seat Pitch: 31
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h20m
Class: Eco Classic
NGS Shelf: 2
Aircraft: Airbus A350-900 (359)
Price: USD 96.30
Emissions: 30 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsnse0pWeiueKU
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YFSII
Cabin: Economy
Wi-Fi: Available (free)
Power: Available
Seat Pitch: 31
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h20m
Class: Eco Flex
NGS Shelf: 2
Aircraft: Airbus A350-900 (359)
Price: USD 108.90
Emissions: 30 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsoEch76fp4vsf
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YXSII
Cabin: Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 28
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h
Segment 2:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YXSII
Cabin: Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 28
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h10m
Class: Eco Value
NGS Shelf: 2
Aircraft: Airbus A320neo (32N)
Price: USD 151.90
Emissions: 52 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsoEch76fp4vsm
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YWSII
Cabin: Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 28
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h
Segment 2:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YWSII
Cabin: Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 28
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h10m
Class: Eco Classic
NGS Shelf: 2
Aircraft: Airbus A320neo (32N)
Price: USD 164.50
Emissions: 52 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsoEch76fp4vst
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YFSII
Cabin: Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 28
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h
Segment 2:
Passengers:
Passenger 1:
Cabin Class: economy
Fare Basis Code: LU1YFSII
Cabin: Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 28
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h10m
Class: Eco Flex
NGS Shelf: 2
Aircraft: Airbus A320neo (32N)
Price: USD 190.80
Emissions: 52 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsoEch76fp4vt0
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: premium_economy
Fare Basis Code: NU1PWSII
Cabin: Premium Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 32
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h
Segment 2:
Passengers:
Passenger 1:
Cabin Class: premium_economy
Fare Basis Code: NU1PWSII
Cabin: Premium Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 32
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h10m
Class: Premium Classic
NGS Shelf: 3
Aircraft: Airbus A320neo (32N)
Price: USD 257.50
Emissions: 52 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsnse0pWeiueKI
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: premium_economy
Fare Basis Code: NU1PFSII
Cabin: Premium Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 32
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h
Segment 2:
Passengers:
Passenger 1:
Cabin Class: premium_economy
Fare Basis Code: NU1PFSII
Cabin: Premium Economy
Wi-Fi: Not Available (n/a)
Power: Available
Seat Pitch: 32
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h10m
Class: Premium Flex
NGS Shelf: 3
Aircraft: Airbus A320neo (32N)
Price: USD 284.30
Emissions: 52 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsoEch76fp4vsS
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: business
Fare Basis Code: ZU1CWSII
Cabin: Business
Wi-Fi: Available (free)
Power: Available
Seat Pitch: 79
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h20m
Class: Business Classic
NGS Shelf: 5
Aircraft: Airbus A350-900 (359)
Price: USD 334.70
Emissions: 36 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
Offer ID: off_0000AqGtXsoEch76fp4vsY
Slice 1:
Airline: Air India
From: Rajiv Gandhi International Airport (HYD)
To: Indira Gandhi International Airport (DEL)
Segment 1:
Passengers:
Passenger 1:
Cabin Class: business
Fare Basis Code: ZU1CFSII
Cabin: Business
Wi-Fi: Available (free)
Power: Available
Seat Pitch: 79
Baggage: 0 bag(s), 0 bag(s)
Duration: 2h20m
Class: Business Flex
NGS Shelf: 5
Aircraft: Airbus A350-900 (359)
Price: USD 354.90
Emissions: 36 kg CO₂
Loyalty Programs: AC, NZ, NH, OZ, CM, MS, SK, AI, OU, BR, SQ, AV, UA, A3, LH, TK, CA, TG, ET, TP, SA
Supported Identity Documents: passport, known_traveler_number, passenger_redress_number
---
why didn't you gave any best flight. can you give me reason why best flight is null
The best flight is null because the user stated they do not have a passport. All the flights listed require a passport as a supported identity document. Therefore, none of the available flights meet the user's requirements.
Even though user is not having passport, the flights supports other documents also right
This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.
How to Use
Use with LangChain: hub.pull("manasaveena/bestflightfornopassport")
Related Prompts
More prompts in Creative & Design
Midjourney Prompt Generator
Outputs four extremely detailed midjourney prompts for your keyword.
Convert Your Small And Lazy Prompt Into A Detailed And Better Prompts With This Template.
Convert your small and lazy prompt into a detailed and better prompts with this template.
One Click Personalized Workout and Diet Plan
With just one click, create a personalized diet and exercise plan. Just enter the information.
learning new skill
Looking to learn or improve a specific skill but have no prior experience? Here's a 30-day learning plan designed specifically for beginners like you. Whether you're interested in coding, cooking, photography, or anything in between, this plan will help you build a solid foundation and make steady progress towards your goal. Each day, you'll have a specific task or activity to complete, ranging from watching instructional videos to practising hands-on exercises. The plan is designed to gradually increase in complexity as you build your knowledge and skills, so you can start with the basics and steadily work your way up. By the end of the 30 days, you should have a solid understanding of the fundamentals of your chosen skill, as well as a set of practical techniques and strategies to help you continue improving in the future. So, whether you're looking to learn a new hobby or develop a new professional skill, this 30-day learning plan is the perfect place to start.
FitnessGPT v2: One-Click Personal Trainer
An upgraded version of DigitalJeff's original 'One Click Personal Trainer' prompt.
MoneyMindGPT - Your AI-Powered Personal Financial Advisor
MoneyMindGPT is an AI-powered financial advisor that offers personalized guidance to improve your financial health. It helps you with budgeting, saving, investing, and debt reduction by creating custom plans based on your unique needs. Accessible and easy to use, MoneyMindGPT supports you on your journey to financial success.