TP
Trip Purpose Prediction
/travel/predictions/trip-purpose
Returns the forecast purpose of a trip
Returns the forecast purpose of a trip
liveunknown~3s typical
trip-purpose-predictiontrip
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run oa-amadeus-com-amadeus-trip-purpose-prediction /travel/predictions/trip-purpose for me.
Input
| Field | Type | Description |
|---|---|---|
| originLocationCode* | string | city/airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx) from which the traveler will depart, e.g. BOS for Boston default null |
| destinationLocationCode* | string | city/airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx) to which the traveler is going, e.g. PAR for Paris default null |
| departureDate* | string | the date on which the traveler will depart from the origin to go to the destination. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2017-12-25 default null |
| returnDate* | string | the date on which the traveler will depart from the destination to return to the origin. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2018-02-2 default null |
| searchDate | string | the date on which the traveler is performing the search. If this parameter is not specified, current date will be used. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YY default null |
Call it
curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
-H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
-d '{"provider":"oa-amadeus-com-amadeus-trip-purpose-prediction","endpoint":"/travel/predictions/trip-purpose","input":{"originLocationCode":"...","destinationLocationCode":"...","departureDate":"...","returnDate":"...","searchDate":"..."}}'cli
npx cracked-ai run -p oa-amadeus-com-amadeus-trip-purpose-prediction -e /travel/predictions/trip-purpose -i '{"originLocationCode":"...","destinationLocationCode":"...","departureDate":"...","returnDate":"...","searchDate":"..."}'mcp
run_tool({ provider: "oa-amadeus-com-amadeus-trip-purpose-prediction", endpoint: "/travel/predictions/trip-purpose", input: {"originLocationCode":"...","destinationLocationCode":"...","departureDate":"...","returnDate":"...","searchDate":"..."} })Try it
Runs against your signed-in workspace balance. Sign in if you have not.