A clinician engages now. Always false for in_person.
An appointment at a chosen time, from published availability.
The patient (or you, on their behalf) may ask for this unprompted.
live && onDemand — a live create would be accepted.
book && onDemand — a book/scheduled create would be accepted.
live || book — the modality is reachable at all.
One modality's switches, as they apply to YOUR key on THIS tenant.
Two questions, deliberately separated:
live/book— WHAT the clinic runs.liveis a clinician engaging now (the video queue; a messaging thread picked up straight away);bookis an appointment at a chosen time. A scenario the clinic doesn't run cannot be reached by anyone, in any way.onDemand— WHO may start it. With it off, the scenario exists but only the AI agent (or a clinician) offers it, on clinical judgement; a direct request — yours over REST, or the patient's in the embed — is refused withon_demand_disabled. With it on, the patient may ask.So
onDemandLive/onDemandBookare the fields to branch on when the question is "may I create one right now": they are already the AND of the mode and the initiator switch.