Booking steps for a chosen bus
booking_stepsGuides users through booking a chosen bus on the official site with ordered steps and stop points for seats, boarding, details, confirmation, and payment.
Instructions
Step-by-step script to book the chosen bus on the official site in the user's own browser.
Use when the user wants to book a bus from rank_buses. A script for the assistant (don't paste it to the user): the details to collect and every click in order, with STOP points where the user decides (seats, boarding point, permission to enter details, "confirm" on the summary, and payment).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>",
"travel_date": "<travel_date>",
"operator": "<operator>",
"departure": "<departure>"
},
"name": "booking_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Booking site to use (default redBus). | |
| seats | No | Seat numbers the user wants, if already chosen. | |
| origin | Yes | From city. | |
| operator | Yes | Operator of the chosen bus, as shown. | |
| departure | Yes | Departure time of the chosen bus, HH:MM. | |
| destination | Yes | To city. | |
| travel_date | Yes | Travel date, YYYY-MM-DD (IST). | |
| for_traveller | No | True when you can't control the user's browser (e.g. ChatGPT, Gemini): returns short steps for the user to follow themselves instead of a script for you. |