Skip to content

Commit 6ab8948

Browse files
authored
Feature #690 - Add AI based ticket summary to API documentation
1 parent 8dfd48c commit 6ab8948

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

api/ticket.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ For better overview, they have been split into different sections:
1616
/api/ticket/states
1717
/api/ticket/tags
1818
/api/ticket/index
19+
/api/ticket/ticket-summary
1920
/api/ticket/timeaccounting

api/ticket/ticket-summary.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Ticket Summary
2+
==============
3+
4+
Show/Trigger
5+
------------
6+
7+
Required permission: ``ticket.agent``
8+
9+
``POST``-Request sent: ``/api/v1/tickets/{ticket id}/enqueue_summarize``
10+
11+
The following ``POST`` request fetches an existing summary, if there is one
12+
available in the ticket. If there is no summary available or the ticket was
13+
changed after the existing summary was created, a new summary is triggered.
14+
In such a case, you won't get a response with the summary. To get a summary, you
15+
have to re-send the request with a small delay considering the AI job may take
16+
a few seconds.
17+
18+
Sample response if the generation of a new summary was just triggered by the
19+
request:
20+
21+
.. code-block:: json
22+
:force:
23+
24+
// HTTP Code 200 Ok
25+
26+
{
27+
" result": null
28+
}
29+
30+
Sample response for an existing summary (e.g. for the same ticket like above
31+
after waiting a few seconds):
32+
33+
.. code-block:: json
34+
:force:
35+
36+
// HTTP Code 200 Ok
37+
38+
{
39+
"result": {
40+
"language": "en-US",
41+
"customer_mood": "frustrated",
42+
"open_questions": [],
43+
"upcoming_events": [
44+
"2023-03-15T14:00:00Z"
45+
],
46+
"customer_emotion": "😐",
47+
"customer_request": "complaint wrong delivery of order #51519891",
48+
"conversation_summary": "Customer David Bell complains about the wrong delivery of his order. Agent Emma Taylor responds with a generic apology, but then Christopher Miller takes over and provides more detailed information about the correct items being prepared for shipment.",
49+
"fingerprint_md5": "7a7a3daecf4c93a1460cc9ea6e9168cb",
50+
"relevant_for_current_user": false
51+
}
52+
}

0 commit comments

Comments
 (0)