version: "3.0"
intents:
  - greet
  - ask_details
  - provide_details
  - goodbye

entities:
  - passenger_id
  - first_name
  - last_name

slots:
  passenger_id:
    type: text
    mappings:
      - type: from_entity
        entity: passenger_id

  first_name:
    type: text
    mappings:
      - type: from_entity
        entity: first_name

  last_name:
    type: text
    mappings:
      - type: from_entity
        entity: last_name
    
responses:
  utter_greet:
    - text: "Hello! How can I assist you today?"
  utter_ask_details:
    - text: "Please provide your Passenger ID, First Name, and Last Name."

  utter_flight_details:
    - text: "Here are your flight details: {flight_details}"

  utter_no_details:
    - text: "Sorry, no flight details found for the provided information."

  utter_goodbye:
    - text: "Happy to assist you!"

actions:
  - action_get_flight_details
