Omio automation
Book the cheapest Omio train or bus ticket with AI
You know the route and the day, and Omio lists trains, buses and flights for it side by side. The slow part is opening each result to see whether its cheap fare can still be changed or refunded, then typing every traveler into checkout.
Cotlet does it in your own Omio account with search_trips, get_trip, book_trip and list_bookings, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Official options
Can Omio do this on its own?
Omio has no booking API for your own account (checked 11 Oct 2026). Its Search API belongs to the affiliate programme and feeds partner sites; the purchase itself happens in Omio checkout on omio.com or in the app, where Omio lists every fee before payment.
By hand
How you do it in Omio today
- Enter the departure and arrival places, the date and the passengers on omio.com or in the Omio app, and select a rail discount card for each passenger who holds one.
- Compare the train, bus and flight results Omio shows for the route and note the departures that fit your time window.
- Open each candidate to read its fare options, because one Omio result can carry several fares with different change and refund conditions.
- At Omio checkout, enter each traveler, pick a seat where the travel company offers seat choice, and decide whether to add Omio Flex or travel insurance through XCover.
- Review the total with ticket price, service fee and booking rate, then pay. The repeated work is the fare check: picking the restricted fare by mistake only shows up weeks later, when plans change.
With an agent
How to book the cheapest Omio train or bus ticket with AI
Prompt
Book the cheapest refundable train from Amsterdam to Munich next Thursday, leaving after 9:00, and show me the total first. - 01
Search every mode inside your window
search_trips runs once for the route and date with all modes, then the agent drops departures before your earliest time or arrivals after your latest. Buses stay in unless you said train only, since a bus can be the cheapest option that still meets your rules.
- 02
Judge the fare, not the headline price
One search result can carry several fares, each with its own change and refund conditions. The agent opens the cheapest few results with get_trip and keeps only fares that match your rule: refundable, exchangeable, or a saver fare you accept with Omio Flex.
- 03
Weigh Omio Flex against a refundable fare
When a saver fare plus Omio Flex costs less than the refundable fare, the agent puts both side by side with what each would return on cancellation. Omio Flex pays back 80% of the ticket price, and the Flex fee itself stays with Omio.
- 04
Fill travelers without guessing
The agent adds one passenger entry per traveler. Where the ticket is issued in a name that must match ID, as on Eurostar, SNCF or for the Deutsche Bahn lead passenger, it asks for the exact spelling instead of inventing one.
- 05
Show the total, then book once
Before book_trip runs, the agent shows fare, service fee and booking rate as one total and waits for your OK. If checkout returns an error, it checks Your Bookings with list_bookings before trying again, because Omio says a booking can still go through after a booking error message.
What you get back
Example data
Amsterdam to Munich, Thu 19 Nov, leaving after 09:00, refundable only
Checked 14 results across train, bus and flight; 9 fit the time window
Cheapest overall: FlixBus 10:15 at 54.99 EUR, not refundable, skipped
Picked: Deutsche Bahn 09:37 via Köln Hbf, 2nd class refundable fare, 89.00 EUR
Total with service fee: 92.98 EUR, approved by you
Booked: OM58214793, confirmed, tickets in Your Bookings Other ways to ask
- Compare train, bus and flight from Amsterdam to Munich next Thursday by price and travel time, and do not book anything yet.
- Find the fastest option under 120 EUR from Paris to Amsterdam on Friday, any mode, and book it after I confirm.
- Book two adults and one child on the cheapest exchangeable Renfe train from Madrid to Seville on 4 December.
- Book the cheapest saver fare with Omio Flex if that costs less than the refundable fare on the same train.
Before you automate it
What Omio allows, and what to know first
- Omio can charge both a service fee and a booking rate on one booking, and Omio lists each one before you accept the payment.
- Omio Flex returns 80% of the ticket price for any reason up to two hours before departure and covers everyone on the booking, but the Flex fee is not refunded.
- Ticket prices on Omio are set by the travel companies and update in real time, so the price can change between search and payment; Omio notifies you before taking the money.
- Omio applies a rail discount card only when it is selected for that passenger before the booking is completed.
book_trip asks for your OK by default. To run it on a schedule without you, switch confirmation off for that tool in your dashboard.
Sources: Omio Help: service fee and booking rate · Omio Help: What is Omio Flex? · Omio Help: the price changed before I finished booking · Omio Help: Can I use my rail discount card? · Omio Help: booking error message, is my booking valid?
REST
Call book_trip from a script
curl
curl https://cotlet.dev/api/v1/omio/book_trip \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"trip_id":"trp_7f3k29qa","fare_id":"fare_2nd_refundable","passengers":[{"first_name":"Alex","last_name":"Example"}],"add_omio_flex":false}' Example response
{
"booking_id": "OM58214793",
"status": "confirmed",
"route": "Amsterdam Centraal to München Hbf",
"departs": "2026-11-19T09:37:00+01:00",
"operator": "Deutsche Bahn",
"total": {
"amount": 92.98,
"currency": "EUR",
"fare": 89,
"service_fee": 3.98
}
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the tool is omio_book_trip. Example data.
Schedule it in n8n, Make, Zapier or cronTools
Omio tools this automation uses
| Tool | Parameters |
|---|---|
| search_trips | from, to, date, return_date, passengers, modes, limit |
| get_trip | trip_id |
| book_trip | trip_id, fare_id, passengers, seat_preference, add_omio_flex |
| list_bookings | status, limit |
Give your agent access to Omio.
Free 7-day trial with 5,000 credits, no card needed. Cotlet is independent and not affiliated with Omio.