← Back to tutorials

AI Travel Planning Assistant

Multi-modal trip planning with preferences and constraints

AI Travel Planning Assistant

Overview

Multi-modal trip planning with preferences and constraints.

Implementation

python
from openai import OpenAI
client = OpenAI()

def run(query: str) -> str: r = client.chat.completions.create( model="gpt-4o-mini", messages=[ {"role":"system","content":"You are an AI expert for: ai travel planning assistant"}, {"role":"user","content":query} ] ) return r.choices[0].message.content

print(run("How do I implement ai travel planning assistant?"))

Key Steps

Resources

  • OpenAI Platform: https://platform.openai.com/docs
  • Best practices for multi-modal trip planning with preferences and constraints
  • Also available in 中文.