When the user asks about a vehicle's history, past accidents, title status, or ownership:
- •Call the CarsXE History API:
code
GET https://api.carsxe.com/history?key={CARSXE_API_KEY}&vin={VIN} - •Summarize the history report:
- •Number of previous owners
- •Accident / damage records
- •Title status (clean, salvage, rebuilt, lemon)
- •Odometer history
- •Theft records
- •Clearly highlight any red flags (salvage title, accidents, odometer rollback).
- •If the API key is missing, tell the user to set the
CARSXE_API_KEYenvironment variable.