Prompt
How do I support multiple meeting types with different durations?
Latest observation
Oct 16, 2026
OpenAI APIWeb search: off
A good way to support multiple meeting types with different durations is to model meeting type as data, not as a special case.
1) Define meeting types explicitly
For example:
intro_call→ 15 minsales_demo→ 30 mindeep_dive→ 60 min
Store these in a config or database table:
{
"intro_call": 15,
"sales_demo": 30,
"deep_dive": 60
}
2) Tie availability calculations to the selected type
When a user picks a meeting type, use its duration when checking calendar slots.
If someone is free from 2:00–3:00:
- they can take a 15-min meeting at 2:00, 2:15, 2:30, 2:45
- they can take a 30-min meeting at 2:00 or 2:30
- they can take a 60-min meeting only at 2:00
So your slot generation should use:
- selected meeting type
- meeting duration
- any buffers before/after
- working hours
- existing bookings
3) Generate slots dynamically
Instead of precomputing one slot list for all meetings, compute slots based on the duration.
Pseudo-logic:
def available_slots(day, duration_minutes):
slots = []
for start in candidate_starts(day):
end = start + duration_minutes
if is_free(start, end):
slots.append(start)
return slots
4) Support type-specific rules if needed
Different types may also need different:
- buffer times
- minimum notice
- scheduling window
- timezone rules
- participant limits
- round-to increments
Example:
{
"intro_call": { "duration": 15, "buffer_before": 0, "buffer_after": 5 },
"sales_demo": { "duration": 30, "buffer_before": 5, "buffer_after": 10 }
}
5) Use one booking flow, parameterized by type
Your booking form should have:
- meeting type selection
- date/time selection based on that type
- confirmation
At booking time, persist:
- meeting type
- chosen duration
- actual start/end timestamps
This way if the config changes later, existing bookings still remain correct.
6) If using APIs, expose duration in the type object
Example response:
[
{ "id": "intro_call", "name": "Intro Call", "duration": 15 },
{ "id": "sales_demo", "name": "Sales Demo", "duration": 30 }
]
Then the frontend can update availability after the user selects a type.
If you want, I can also show:
- a database schema for this
- slot-generation code in Python/JavaScript
- how to handle multiple meeting types in Calendly-like booking flows
Brands