Analyze Ticket Autonomy
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/autonomy-gaps/tickets/{ticket_id}/analyze \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/autonomy-gaps/tickets/{ticket_id}/analyze"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/autonomy-gaps/tickets/{ticket_id}/analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"analysis": {
"ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "<string>",
"customer_request": "<string>",
"resolution": "<string>",
"explanation": "<string>",
"missing": "<string>",
"evidence": "<string>",
"confidence": 123,
"used_support_replies": true,
"analyzed_at": "2023-11-07T05:31:56Z",
"gap": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"recommendation": "<string>",
"status": "<string>",
"ticket_count": 123
},
"knowledge_update_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"closed": true
}Autonomy Gaps
Analyze Ticket Autonomy
Analyze one closed ticket again, for instance after it was reopened or the agent changed.
Each call is one request to the workspace’s default model, answered once the analysis is done. A ticket that
cannot be analyzed is refused with 422 and why: not_closed, no_conversation, simulation or no_agent_reply.
POST
/
api
/
v1
/
autonomy-gaps
/
tickets
/
{ticket_id}
/
analyze
Analyze Ticket Autonomy
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/autonomy-gaps/tickets/{ticket_id}/analyze \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/autonomy-gaps/tickets/{ticket_id}/analyze"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/autonomy-gaps/tickets/{ticket_id}/analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"analysis": {
"ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "<string>",
"customer_request": "<string>",
"resolution": "<string>",
"explanation": "<string>",
"missing": "<string>",
"evidence": "<string>",
"confidence": 123,
"used_support_replies": true,
"analyzed_at": "2023-11-07T05:31:56Z",
"gap": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"recommendation": "<string>",
"status": "<string>",
"ticket_count": 123
},
"knowledge_update_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"closed": true
}