See the Policy
--json to get each field’s ID, key, type, and current value.
For the whole picture, the same one Ask Duvo reads, use policy:
Add a question
VIP senders becomes vip_senders), with a number appended if that key is taken. The output prints the new field’s ID and key.
--binding records how the answer is meant to be used. It doesn’t limit which Runs receive it.
Answer a question
set-config-field shows the current and new answer and asks before changing it, as Ask Duvo does. Pass --yes to skip the question in a script. If someone else changed the answer after it was read, nothing is changed and the command fails; run it again to see the current answer.
--value is read as JSON when it is valid JSON, and sent as plain text otherwise. --clear removes the answer and does not put a default back, so a Run that reads the question is refused until it is answered again. To go back to a default, set it with --value; config-fields --json shows it as default_value when the question has one. Each type expects this shape:
Assign a Policy interview
A Policy interview is a voice interview that asks someone the open questions and writes their answers back onto them.--email, it emails the interview to that person, so it asks first unless you pass --yes. Assigning interviews needs an Administrator or above.
How an Agent reads Policy
Reference a question in the Agent’s AOP with a tag that carries its key and label:Agents read Policy but can’t change it. Answers change on the Automation’s Policy screen, with
set-config-field, or through Ask Duvo when you tell it to. On a running Automation, Ask Duvo first shows each answer’s current and new value and changes nothing until you choose Apply changes. If an Agent needs to keep rules it learns while it runs, store them in a file or in the Agent’s memory instead.Edit, hide, and organize questions
--option and --column on edit-config-field replace the whole list. --column and --type only work while the field has no answer.
Changing an Automation’s Policy needs the Builder role or above on an Automation you created, and Lead Builder or above on anyone else’s.