Dismiss a failed run, mark a hand-off handled, or close an expert question
curl --request POST \
--url https://guidinghand.ai/v1/escalations/{escalation_id}/dismiss \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/escalations/{escalation_id}/dismiss', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/escalations/{escalation_id}/dismiss"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"object": "escalation",
"id": "<string>",
"agent_id": "<string>",
"kind": "approval",
"status": "open",
"source": "live",
"summary": "<string>",
"count": 123,
"procedure": {
"id": "<string>",
"title": "<string>",
"revision": 123
},
"failed_at": "<string>",
"proposal": {
"base_revision": 123,
"body": "<string>"
},
"owner": "<string>",
"details": "<string>",
"tasks": [
"<string>"
],
"conversation_id": "<string>",
"request_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"resolution": "decided",
"resolved_by": {
"type": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"resolved_revision": 123,
"delivery": {
"emailed_at": "2023-11-07T05:31:56Z",
"channels": [
{
"platform": "slack",
"channel": "<string>"
}
],
"webhook": true
},
"question": "<string>",
"on_hold": 123,
"waiting": [
{
"conversation_id": "<string>",
"question": "<string>",
"at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"holding_since": "2023-11-07T05:31:56Z"
}
],
"answer": {
"text": "<string>",
"at": "2023-11-07T05:31:56Z",
"learn": true,
"procedure_id": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"failed": true
},
"messages": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Escalations
Dismiss a failed run, mark a hand-off handled, or close an expert question
Resolves a procedure_failed escalation without changing anything (dismissed), a handoff the team has taken care of (handled), an expert question nobody can answer (dismissed: the agent tells the person), or a transfer (handed_back). Admins and above.
POST
/
v1
/
escalations
/
{escalation_id}
/
dismiss
Dismiss a failed run, mark a hand-off handled, or close an expert question
curl --request POST \
--url https://guidinghand.ai/v1/escalations/{escalation_id}/dismiss \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/escalations/{escalation_id}/dismiss', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/escalations/{escalation_id}/dismiss"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"object": "escalation",
"id": "<string>",
"agent_id": "<string>",
"kind": "approval",
"status": "open",
"source": "live",
"summary": "<string>",
"count": 123,
"procedure": {
"id": "<string>",
"title": "<string>",
"revision": 123
},
"failed_at": "<string>",
"proposal": {
"base_revision": 123,
"body": "<string>"
},
"owner": "<string>",
"details": "<string>",
"tasks": [
"<string>"
],
"conversation_id": "<string>",
"request_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"resolution": "decided",
"resolved_by": {
"type": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"resolved_revision": 123,
"delivery": {
"emailed_at": "2023-11-07T05:31:56Z",
"channels": [
{
"platform": "slack",
"channel": "<string>"
}
],
"webhook": true
},
"question": "<string>",
"on_hold": 123,
"waiting": [
{
"conversation_id": "<string>",
"question": "<string>",
"at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"holding_since": "2023-11-07T05:31:56Z"
}
],
"answer": {
"text": "<string>",
"at": "2023-11-07T05:31:56Z",
"learn": true,
"procedure_id": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"failed": true
},
"messages": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Authorizations
Response
The escalation, resolved.
eval: raised only by eval runs so far (no webhooks). test: sent for real from a team member's test chat (test_escalations: "real"), to check where escalations go: emailed, posted to Slack or Teams and sent to the webhook like a live one, marked as a test, and not counted in open_count.
Available options:
live, eval, test