Optimise your first location

Trigger the AI to evolve your location layout based on forecasts and settings, dynamically assigning spaces to teams and people.

Prerequisites

  • Completed Add historic attendance and Start forecasting

  • Node.js v18+ and npm v9+

  • A valid gospace API key in your .env file

  • A location_id with recent forecasts available

The evolution process uses your forecasts and configuration to create dynamic allocations (teams/people → space types). These adjust over time (daily, weekly, bi‑weekly, monthly, quarterly) according to your setup.


1) Choose evolution settings

  • date — the effective date (YYYY‑MM‑DD) you want to evolve.

  • disruption — how much change you’re willing to accept:

    • MIN – smallest movement; preserve stability.

    • MAX – full optimisation; least stable.

  • run_by_zonetrue to evolve zone‑by‑zone (useful when zones are meaningful capacity containers), false to evolve the whole location at once.


2) Trigger evolution

Create evolve-location.ts:


3) Poll status until completion

Create evolve-status.ts:

Run:


4) Interpreting the results

After a successful evolution:

  • The system produces allocations that map teams/people to space types (e.g., desks, rooms) for the requested date.

  • Allocations are driven by your forecast (including *_inc adjustments for minimum targets, bookings/intentions, and contingencies) and your settings (disruption, run_by_zone).

  • These allocations grow/shrink dynamically as forecasts change and as you re‑run evolution on your chosen cadence (daily/weekly/bi‑weekly/monthly/quarterly).

If your evolution returns no_execution, it means there were no material changes to apply given the current forecasts and settings. Consider increasing disruption, adjusting forecasts/targets, or running by zones.

Last updated

Was this helpful?