File size: 954 Bytes
071512e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  "state": {
    "ticket": "Hi, I was charged twice for my March invoice and nobody has replied to my two emails since Monday. Please refund the second charge.",
    "customer": {"plan": "business", "since": "2023-05-14"}
  },
  "questions": {
    "route": {
      "type": "choice",
      "instructions": "Which team should handle `ticket`?",
      "criteria": {
        "billing": "charges, invoices, refunds",
        "bug": "something in the product is broken",
        "account": "login, access, settings"
      }
    },
    "urgency": {
      "type": "score",
      "instructions": "How urgent is `ticket`?",
      "criteria": ["routine", "today", "urgent", "critical"]
    },
    "refund": {
      "type": "truth",
      "instructions": "Does the customer ask for a refund?"
    },
    "emails": {
      "type": "number",
      "instructions": "How many emails has the customer sent before this one?",
      "min": 0,
      "max": 10
    }
  }
}