Webhooks
Each review submission triggers a webhook event. Set up the webhook URL that should be called as described here.
Payload
The webhook is a POST
request to your endpoint. Here is an example of the data we might send.
info
The responseValues
and meta
properties will depend on the fields you added to your review template and the meta data sent in your request.
Content-Type: application/json
{
"type": "review",
"accountId": "abFMvLv4HafQymWxKDAov",
"formId": "123456abcdef",
"formName": "Review AI Draft",
"reviewId": "123456abcdef",
"response": "approved",
"respondingUser": "[email protected]",
"respondedAt": "2024-10-05T14:48:00.000Z",
"responseValues": {
"blogPost": {
"value": "Regarding the very interesting topic of...",
"wasEdited": true
},
"rating": {
"value": 7.5,
"wasEdited": false
},
"decisionSelect": {
"value": "approve"
}
},
"meta": {
"example": "LLM thread id"
},
"gthLinkToReview": "https://app.gotohuman.com/accounts/abFMvLv4HafQymWxKDAov/ReviewRequests/123456abcdef"
}
n8n
If you are using n8n to build your AI workflow, read how to handle completed reviews in our n8n integration guide.
Make
When using Make to create your workflow, read our Make integration guide on how to handle submitted reviews.