{
  "name": "Minuta riunione quando disponibile",
  "description": "Riprova ogni 2h finché la trascrizione esiste, poi l'agente crea la nota.",
  "cwd": "/path/to/project",
  "schedule": { "at": "2026-10-08T09:00:00+02:00" },
  "retry": { "maxAttempts": 12, "backoff": "2h", "until": "2026-10-10T18:00:00+02:00" },
  "steps": [
    {
      "id": "fetch", "type": "agent", "tools": ["teams-session_*", "read"],
      "prompt": "Prova a recuperare la trascrizione della riunione <conversationId>. Rispondi SOLO con JSON {\"available\": true|false}."
    },
    { "id": "ready", "type": "condition", "onFalse": "retry", "all": [{ "path": "steps.fetch.text", "op": "contains", "value": "\"available\": true" }] },
    {
      "id": "note", "type": "agent", "when": "ready", "tools": ["teams-session_*", "read", "edit", "write", "bash"],
      "prompt": "Recupera la trascrizione della riunione <conversationId> e completa la nota <percorso nota> (punti principali, decisioni, prossimi passi con #task)."
    }
  ]
}
