LearnGrok
Prompts
PromptIntermediateGetting started

Capacity plan from clinic demand and staffing

Build a reviewable weekly clinic capacity plan from aggregate demand, rotas, rooms and service rules, for scheduling leads.

5 min read

Nothing here is clinical advice, and nothing here should touch identifiable patient information.

You need a weekly plan that a service manager can review before anyone changes appointment capacity. This pack turns aggregate demand, rota gaps, rooms and service rules into a draft timetable, an exception list and clear operational decisions. It is for clinic operations managers and scheduling leads, not for clinical prioritisation.

Keep every input free of identifiable patient information. Use counts by service, appointment type, day and time band. Do not paste names, dates of birth, record numbers, free-text referrals or any other patient-level data.

Key point

Build the evidence trail first

A useful capacity plan shows which source or assumption supports every proposed slot and every shortage.

Prepare the four planning documents

Before using the prompts, create four working documents for the same week.

  1. Export an aggregate demand extract. Include service, appointment type, slot duration, booked count, waiting count and demand by day or time band where available.
  2. Export the staff rota. Use role labels or internal non-personal labels. Include shifts, breaks, protected time, permitted services and unavailable periods.
  3. Export room availability. Show opening periods, closures, equipment restrictions and service suitability for each room.
  4. Copy the current service rules into one document. Include session lengths, required roles, setup time, booking caps and any approved booking restrictions.

Use the first prompt to check whether those documents can be reconciled. It does not build a timetable. It identifies the errors that would otherwise create a convincing but impossible schedule.

Watch out

Do not turn incomplete data into false certainty

If a rota does not state whether a role can cover a service, leave the coverage unresolved. Do not assume that a staff member or room is interchangeable.

There is no universal rule for how much material the model can handle at once. This is version-dependent, so check the xAI documentation overview if you need to divide a large weekly export. When splitting material, keep a stable service label, appointment-type label and planning-week date in every part.

Build the schedule in two passes

Run Check the planning inputs first. Correct source data where you can. Where a correction needs a manager decision, retain it as a provisional assumption. Copy the resulting assumptions into the next prompt.

Then run Build the proposed weekly schedule. The schedule table is deliberately detailed. You need to see the date, time, room, role coverage and slot count on the same row. A summary with only total appointments is not enough to identify a room clash or a missing staff role.

Do not paste an existing patient booking list. The purpose is to plan capacity, not to select, move or contact individual patients. If your local process requires booking order, provide only the approved operational rule, such as a stated booking window or referral queue category. The qualified service team decides any clinical matter.

Check

Check each proposed session against the source files

Pick several rows across the week. Confirm the room is open, every required role is on rota, breaks are protected and the slot count follows the stated rule.

Separate shortages from causes

Run Find unmet demand and constraint failures after the draft schedule. This prompt reconciles demand with allocated slots and makes unallocated but feasible capacity visible. That distinction matters. A shortage caused by no suitable room needs a different decision from a shortage caused by a missing rota role.

Treat the reconciliation as a control. For each service and appointment type, demand should equal allocated demand plus unmet demand. If it does not, the output is wrong or the input definitions do not match. For example, one extract may count requested appointments while another counts only bookings within the planning week.

Use this table when reviewing common results:

If you see Check first Next action
Unmet demand with unused slots Service, role and booking restrictions Confirm whether the unused slots are genuinely eligible, then amend the draft only if rules permit
A staff conflict Rota times, breaks and permitted services Correct the rota source or mark the session contingent
A room conflict Room closure, equipment and service rules Move the session or identify the room constraint for decision
A reconciliation mismatch Demand definition and appointment-type labels Re-run after aligning the source categories

Put choices in front of the manager

Use Prepare service manager decisions only after the audit. It compares operational options without pretending that every option is available. An extra session might require a room, an approved role and a permitted staffing arrangement. If any one is unknown, the option remains contingent.

The decision table should make three things clear: capacity gained, effect on another service, and approval needed. A recommendation can be operationally sound while still awaiting workforce, facilities or service-manager approval.

Note

A booking restriction is a managed choice

Record its wording, scope, trigger and approval. Do not present a restriction as an automatic response to unmet demand.

Finish with Create the review pack. Send the pack as a proposed plan. Keep the original rota and room files beside it, so reviewers can trace each change. After approval, update the live scheduling system through your local process and retain the change log.

When the output does not work

Stop if the output invents a room, staff capability, operating hour or booking rule. Remove the unsupported row, return to the input-check prompt and supply the missing source or ask the named owner to decide. If tables are incomplete, split the week by service or by day, then combine only results that use the same assumptions. If unmet demand cannot be reconciled, do not publish the plan as ready to book. Mark it as unresolved and take the mismatch to the service manager.

Copy-ready prompts

5 prompts. Open one to read it, or take the whole pack.

1Check the planning inputsUse this first, after you have exported demand, rotas and room availability for the same planning week. It identifies gaps before you build a schedule.
You are reviewing non-identifiable clinic operations data for a weekly capacity plan. Do not provide clinical advice. Do not infer clinical priority, patient suitability, or treatment decisions. Treat all service rules as operational constraints.

Review these planning documents:

1. Demand extract, fields expected: week commencing, service, appointment type, appointment duration in minutes, demand count, booked count, waiting count, cancellation count, no-show count, preferred day or time band if available.
[paste aggregate demand extract]

2. Staff rota, fields expected: staff role, staff identifier or role label, date, start time, end time, break minutes, permitted services, permitted appointment types, planned non-clinical time, unavailable periods.
[paste rota]

3. Room availability, fields expected: room label, date, available start, available end, unavailable periods, permitted services or equipment constraints.
[paste room availability]

4. Service rules, including session length, setup or close-down time, maximum bookings per session, staffing ratios, required roles, room requirements, booking restrictions, and approved operational priorities.
[paste service rules]

Return a planning-input review in this exact format:

## Input status
| Area | Status: usable / incomplete / conflicting | Missing or conflicting field | Effect on capacity plan | Required owner decision or data correction |
|---|---|---|---|---|

## Normalised planning assumptions
| Assumption ID | Assumption | Source document or inferred calculation | Why needed | Confidence: confirmed / provisional |
|---|---|---|---|---|

## Data excluded
List any row, field, or value excluded because it is identifiable patient information, is clinically sensitive, or cannot be reconciled.

## Questions that block scheduling
Number only questions that prevent calculation of a feasible schedule.

Do not silently repair conflicts. Where a field is absent, mark it as unknown and show the consequence. Do not create staff, rooms, operating hours, appointment durations, or service rules that were not supplied.
2Build the proposed weekly scheduleUse this after the inputs are usable or when you have written down provisional assumptions that the service manager accepts for review.
Create a proposed weekly clinic capacity schedule using only the aggregate demand, staff rota, room availability, service rules and confirmed assumptions below. This is an operational draft for service-manager review, not clinical advice. Do not use or request identifiable patient information. Do not make decisions about patient priority except where an explicit operational booking rule is supplied.

Planning week: [enter week commencing date]

Aggregate demand:
[paste checked demand extract]

Staff rota:
[paste checked rota]

Room availability:
[paste checked room availability]

Service rules and confirmed assumptions:
[paste rules and assumptions]

Build the schedule in this order:
1. Reserve required setup, close-down, breaks and protected non-clinical time.
2. Allocate rooms and staff only where all stated role, service and equipment rules are met.
3. Allocate appointment slots up to the stated session and booking limits.
4. Match available capacity to demand using only stated operational booking restrictions.
5. Leave any unallocated capacity visible. Do not fill it with invented demand.

Return exactly these sections:

## Proposed schedule
| Date | Time | Service | Appointment type | Room | Required staff role(s) | Assigned rota label(s) | Slot length (minutes) | Bookable slots | Demand allocated | Unused slots | Constraint or assumption |
|---|---|---|---|---|---|---|---:|---:|---:|---:|---|

## Capacity summary
| Service | Appointment type | Demand | Proposed bookable slots | Allocated demand | Unused slots | Unmet demand |
|---|---|---:|---:|---:|---:|---:|

## Schedule assumptions requiring approval
| Assumption ID | Assumption | Operational effect if rejected | Owner |
|---|---|---|---|

Use `UNRESOLVED` rather than guessing where a constraint cannot be met or data is missing.
3Find unmet demand and constraint failuresUse this on the draft schedule. It gives you a separate exception list, so shortages do not disappear inside a large timetable.
Audit the proposed weekly clinic capacity schedule against the aggregate demand, rota, room availability and service rules below. This is operational analysis only. Do not provide clinical advice, assign patient priority, or use identifiable patient information.

Proposed schedule:
[paste proposed schedule]

Aggregate demand:
[paste checked demand extract]

Staff rota and room availability:
[paste checked rota and room availability]

Service rules and approved assumptions:
[paste rules and assumptions]

Check every scheduled row for: staff availability, required role coverage, break and protected-time conflicts, room availability, room or equipment requirements, permitted service and appointment type, slot duration, maximum bookings, and stated booking restrictions. Calculate unmet demand from aggregate counts only.

Return exactly these sections:

## Unmet demand
| Service | Appointment type | Demand | Proposed slots | Unmet count | Earliest feasible date or time band, if known | Primary constraint | Confidence |
|---|---|---:|---:|---:|---|---|---|

## Schedule conflicts
| Conflict ID | Date and time | Affected service | Conflict type | Evidence from input | Capacity or safety-of-operation effect | Correction needed |
|---|---|---|---|---|---|---|

## Unused feasible capacity
| Date and time | Service or appointment type that could use it | Room | Available staff role(s) | Slots available | Why it is not allocated |
|---|---|---|---|---:|---|

## Reconciliation
State whether total demand equals allocated demand plus unmet demand for each service and appointment type. List every mismatch.

If records conflict, report the conflict rather than selecting a preferred source. If an earliest feasible time cannot be calculated, write `not calculable from supplied data`.
4Prepare service manager decisionsUse this when the draft has unmet demand or conflicts. It turns the exception list into choices the service manager can approve, reject or send back for more…
Prepare an operational decision paper for a service manager reviewing next week's clinic capacity plan. Do not provide clinical advice. Do not decide which patients should be seen first. Use only the supplied operational rules and aggregate data. Do not include identifiable patient information.

Proposed schedule:
[paste proposed schedule]

Unmet demand and conflicts:
[paste audit output]

Available options and constraints, including approved overtime, bank staff, cross-cover permissions, room extension options, session cancellation rules, and booking restrictions:
[paste available options]

For each material unmet-demand item or conflict, compare feasible choices: add an extra session, move staff within their approved permissions, move an existing session, use unused capacity, or apply a stated booking restriction. Do not suggest an option that breaches a supplied rule. If costs, approvals or workforce availability are not supplied, label them unknown.

Return exactly these sections:

## Decisions required
| Decision ID | Problem | Option | Capacity gained or protected | Impact on other services | Preconditions and approvals | Recommendation: choose / hold / reject | Reason |
|---|---|---|---:|---|---|---|---|

## Proposed changes to schedule
| Decision ID | Date and time | Change | Before | After | Staff and room effect | Status: proposed / contingent |
|---|---|---|---|---|---|---|

## Proposed booking restrictions
| Restriction ID | Service and appointment type | Restriction wording | Start and end point | Operational trigger | Approval needed |
|---|---|---|---|---|---|

## Items not solvable from supplied information
| Item | Missing information | Owner | Decision risk |
|---|---|---|---|

End with a three-item manager checklist, using only decision IDs from the tables.
5Create the review packUse this last. It produces one concise pack for the scheduling meeting and keeps proposed changes separate from approved changes.
Create a review pack for the service manager from the weekly clinic capacity-plan materials below. This is operational administration, not clinical advice. Do not include identifiable patient information. Do not state or imply that any proposed schedule is approved.

Planning week: [enter week commencing date]

Proposed schedule:
[paste proposed schedule]

Capacity summary and audit:
[paste capacity summary and audit]

Decision paper:
[paste decisions required]

Write in plain British English. Return exactly this format:

## Weekly capacity position
Write four bullets covering total aggregate demand, proposed capacity, unmet demand, and the main limiting constraint. Use only figures present in the inputs.

## Schedule for approval
| Date | Time | Service | Appointment type | Room | Staff role coverage | Bookable slots | Approval status |
|---|---|---|---|---|---|---:|---|

## Unmet demand and operational risk
| Service | Appointment type | Unmet count | Constraint | Mitigation proposed | Decision ID |
|---|---|---:|---|---|---|

## Decisions for the service manager
| Decision ID | Decision required | Deadline or trigger, if supplied | Consequence of no decision |
|---|---|---|---|

## Change log
| Change ID | What changed from the source schedule | Reason | Source or decision ID | Status |
|---|---|---|---|---|

Mark all unapproved items as `PROPOSED`. If the inputs do not contain a figure, write `not supplied`, not an estimate.

Last checked against xAI’s own pages on 2026-08-21. Grok changes quickly; anything version-specific should be confirmed upstream before you rely on it.

More in Getting started

Found something out of date?

Grok changes quickly and this page is a snapshot. If something here is wrong, or you know a better resource, send it over.

Suggest a link →

Advertise on LearnGrok

$420.69one-time, for a 30-day run

Square works best. PNG, JPEG or WebP, up to 2 MB.

Stripe on the next step. Live once approved.