Get an AI summary for a consultation
const url = 'https://client-api.abi.ai/consultation/8910zyx321cba/ai-summary';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://client-api.abi.ai/consultation/8910zyx321cba/ai-summary \ --header 'Authorization: Bearer <token>'Retrieve the automatically generated AI summary for a consultation. The summary is generated from consultation information and may be incomplete, inaccurate, or omit important context. It is not reviewed or validated by a healthcare professional, is not a clinical assessment or medical advice, and must not be used alone to make diagnosis or treatment decisions.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The Abi identifier of the consultation.
Example
8910zyx321cbaResponses
Section titled “Responses”Summary processing completed or failed. Inspect status; DONE includes aiSummary, while ERROR includes a processing message.
AI summary processing result. The response status determines which optional fields are present.
object
Summary processing status.
Processing error message when status is ERROR.
Automatically generated consultation summary. This content may be incomplete or inaccurate and is not professional medical advice.
object
Consultation identifier used to generate the summary.
Primary clinical intent or category of the consultation.
Standardized code for the primary medical specialty.
Human-readable primary medical specialty.
Clinical entities
ICD-10 diagnosis or symptom codes identified in the consultation.
Narrative summary of the patient’s primary symptoms or reason for seeking care.
Generated narrative describing advice
Generated high-level follow-up actions.
Single-sentence summary of the consultation and outcome.
Examples
Completed AI summary
{ "status": "DONE", "aiSummary": { "consultationId": "8910zyx321cba", "consultationType": "Symptom checking", "specialtyCode": "CAR", "specialtyName": "Cardiology", "clinicalKeywords": [ "chest pain", "shortness of breath" ], "icd10Codes": [ "R07.9", "R06.00" ], "chiefComplaint": "Patient experiencing chest pain.", "plan": "Schedule a follow-up appointment with a cardiologist.", "planActions": [ "visit a specialist", "diagnostic test" ], "summary": "The patient reported chest pain and shortness of breath and the doctor recommended further diagnostic tests." }}Summary processing error
{ "status": "ERROR", "message": "An unexpected error occurred while fetching AI summary"}Summary generation is still pending. Poll this operation again later.
AI summary processing result. The response status determines which optional fields are present.
object
Summary processing status.
Processing error message when status is ERROR.
Automatically generated consultation summary. This content may be incomplete or inaccurate and is not professional medical advice.
object
Consultation identifier used to generate the summary.
Primary clinical intent or category of the consultation.
Standardized code for the primary medical specialty.
Human-readable primary medical specialty.
Clinical entities
ICD-10 diagnosis or symptom codes identified in the consultation.
Narrative summary of the patient’s primary symptoms or reason for seeking care.
Generated narrative describing advice
Generated high-level follow-up actions.
Single-sentence summary of the consultation and outcome.
Example
{ "status": "PENDING"}Request could not be completed.
object
Short machine-readable error code.
Human-readable explanation of the error.
Examplegenerated
{ "code": "example", "message": "example"}Request could not be completed.
object
Short machine-readable error code.
Human-readable explanation of the error.
Examplegenerated
{ "code": "example", "message": "example"}Request could not be completed.
object
Short machine-readable error code.
Human-readable explanation of the error.
Examplegenerated
{ "code": "example", "message": "example"}Request could not be completed.
object
Short machine-readable error code.
Human-readable explanation of the error.
Examplegenerated
{ "code": "example", "message": "example"}