// Von picks a team. Who moves the ticket? // Teaching excerpts; see the explanation and boundaries on the episode page. // Send the question to the local service const reply = await client.systemOne({ state: { ticket }, questions: { team: choice("Which team?", teams) } }); // A choice has not moved a ticket const target = knownTeam(answer.choice) ? answer.choice : "review"; enqueue(target); // Use judgment only when needed if (knownTeam(ticket.team)) { enqueue(ticket.team); }