It’s Got What Content Craves: Sanity, Built for the People of Idiocracy
Описание и применение
Создана автоматизированная рабочая схема в Sanity, где ИИ‑агент разрабатывает планы, кабинет принимает решения через простую кнопку, а серверный рантайм выполняет полив и сбор урожая.
Задача
Enable non‑technical users (the Cabinet) to approve or reject agricultural plans via a simple picture‑button interface while an AI agent drafts proposals and a runtime executes approved actions.
Результат
The workflow automates proposal drafting, approval, and field actions, achieving 100% correct timed edits across three interfaces.
Рабочий процесс
- Define a single schema used by two Studio workspaces (Kiosk and Stock).
- Create a Sanity Workflow definition (joes‑plan) with stages: submit → cabinet → watering → growing → harvest (or reject → dust‑bowl).
- Deploy the workflow with role conditions read from environment variables, assigning administrator to Cabinet and editor to agent.
- Agent submits proposal; Cabinet approves in Kiosk; runtime watches for harvestAt and executes watering and harvesting via Sanity Functions.
- Track votes on brawndo.gov using GROQ count queries; enforce one vote per citizen per field by ID design.
- Measure execution time of each step in three interfaces (Studio, Cabinet Room, runtime) using a stopwatch.
- Verify all edits are correct (27 of 27 timed edits).
Доказательства
agent → Cabinet → watering → harvest on the live project; 27 of 27 timed edits correct
The Kiosk is hosted at brawndo-agriculture.sanity.studio and signs in through the Sanity Dashboard.
The agent submits, the Cabinet approves in the Kiosk, and the runtime waters and harvests.
- Дата записи: 2026-09-21T20:45:41.371Z