Support inbox triage
Every 30 minutes, new support messages are labelled and an answer is drafted for each, for a person to send.
In words
The wishEvery support message gets the right label and an answer drafted within the hour
Step 1 · fetch
What to doFetch the new support messages into support/new.
Who does itAn algorithm runs
support-fetch --out support/newWhat proves itThe command ends without an error.
Step 2 · triage
What to doLabel each message in support/new as billing, bug, question or other, and draft an answer for each in support/drafts.
Who does itAn agent
What proves it
- These must be there:
support/labels.md - Another agent must find this true: “Each draft answers what its message asks, and promises nothing the help pages do not.”
Step 3 · send
What to doRead the drafts in support/drafts and send those that are right.
Who does itA person
What proves itTheir word stands.
The file
json
{
"$schema": "vpf/1",
"wish": "Every support message gets the right label and an answer drafted within the hour",
"start": {
"on": "every",
"minutes": 30
},
"limits": {
"minutes": 15,
"month": 40
},
"steps": [
{
"id": "fetch",
"do": "Fetch the new support messages into support/new.",
"by": "algorithm",
"run": "support-fetch --out support/new"
},
{
"id": "triage",
"do": "Label each message in support/new as billing, bug, question or other, and draft an answer for each in support/drafts.",
"by": "agent",
"tools": [
"read",
"write"
],
"proof": [
{
"by": "algorithm",
"needs": [
{
"need": "names",
"path": "support/labels.md",
"files": "support/new/*.eml"
}
]
},
{
"by": "agent",
"check": "Each draft answers what its message asks, and promises nothing the help pages do not."
}
]
},
{
"id": "send",
"do": "Read the drafts in support/drafts and send those that are right.",
"by": "person"
}
]
}Why it is written this way
The names need proves that every message got a label. A person sends the answers, so nothing reaches a customer without a yes.