Information circuit breaker
There are cases where an assessment is not possible given the user input. When this is the case, an information report is presented instead of a question.
The information report contains articles we think are related with the symptoms identified or user input in general.
For example, this can happen when the user inputs 2 symptoms that result in the consultation not being possible. (for example earache and toe pain)
Your implementation should expect this information_report at any point of the assessment, and be ready to serve the messages and articles in your desired format.
Example response
{
"conversation_details": {
"step_back_possible": false,
"report_possible": false,
"phase": "info_result",
"conversation_ended": true,
"symptoms_summary": {},
"progress": {
"stage": "Information Report",
"percentage": 100
}
},
"information_report": {
"messages": [
{
"text": "Sorry, I can't find any matching conditions for the symptoms you've told us. However, here are some articles that might interest you:"
}
],
"articles": [
{
"id": "earache",
"name": "Earache in adults – causes and treatment",
"snippet": "Earaches can be caused by many things, from infections to injury, and may become very painful. Discover what can help plus when to see a doctor.",
"image": "https://images.ctfassets.net/iqo3fk8od6t9/1bjki2douKzKGvG3jaw89j/2e5069658affe3553ad045c8a06fc75d/emiliano-vittoriosi-PwXIsh7QpsI-unsplash__2_.jpg",
"reading_time_minutes": 5
},
{
"id": "broken-toe",
"name": "Broken toe – how to ease symptoms",
"snippet": "Find out how to tell if you’ve broken your toe – and the signs you may need medical care.",
"image": "https://images.ctfassets.net/iqo3fk8od6t9/aHH1EHBssIMHxOCdzKh5d/a8283a6008018189df7d8db6c6fd16a7/iStock-1162590025.jpg",
"reading_time_minutes": 5
}
]
}
}
Updated 3 months ago
