File: airport-code-analyst.md | Updated: 11/15/2025
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .
English
Search...
Ctrl K
Search...
Navigation
Prompt Library
Airport code analyst
Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes
On this page
Copy this prompt into our developer Console to try it for yourself!
| | Content | | --- | --- | | System | Your task is to analyze the provided text and identify any airport codes mentioned within it. Present these airport codes as a list in the order they appear in the text. If no airport codes are found, return an empty list. | | User | My next trip involves flying from Seattle to Amsterdam. I’ll be spending a few days in Amsterdam before heading to Paris for a connecting flight to Rome. |
Example Output
Here is the list of airport codes mentioned in the text, in the order they appear:
- SEA (Seattle)
- AMS (Amsterdam)
- CDG (Paris)
- FCO (Rome)
API request
Python
TypeScript
AWS Bedrock Python
AWS Bedrock TypeScript
Vertex AI Python
Vertex AI TypeScript
Copy
import anthropic
client = anthropic.Anthropic(
# defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-sonnet-4-5",
max_tokens=1000,
temperature=0,
system="Your task is to analyze the provided text and identify any airport codes mentioned within it. Present these airport codes as a list in the order they appear in the text. If no airport codes are found, return an empty list.",
messages=[\
{\
"role": "user",\
"content": [\
{\
"type": "text",\
"text": "My next trip involves flying from Seattle to Amsterdam. I'll be spending a few days in Amsterdam before heading to Paris for a connecting flight to Rome."\
}\
]\
}\
]
)
print(message.content)
Was this page helpful?
YesNo
Assistant
Responses are generated using AI and may contain mistakes.