Synchronising Output
2 min
In the Embedded Web App integration, when a User completes a conversation and selects the button "Approve and Synchronise" in the App, Autoscriber will do a POST to the webhook URL included in the request body provided in Call API Endpoint , referenced as per the below:
"webhook": {
"url": "https://example.com/webhook",
"headers": {"Authorization": "Bearer your_token_here"}
}This POST from Autoscriber will contain the template name, headings and content.
An example can be seen as follows:
{
"standard_en": {
"final": true,
"data": [
{
"items": [
{
"sentences": [],
"text": "Strong heachaches since 5 days"
}
],
"section": "Subjectief"
},
{
"items": [
{
"sentences": [],
"text": "Refer to neurologist"
}
],
"section": "Plan"
}
],
"count": 1,
"feedback": {},
"error": false
}
}- The count represents the order of the generated note. For example, if the User generates the initial template, and then decides to generate another note using a different template, then the count of the second note will be 2.
- The feedback is populated with the feedback the user gave after the note was generated.
- The error is populated with an error message if applicable.