I fulfillment inviati all’URL del webhook sono come quelli riportati di seguito:
{
“responseId”: “4a58fc4f…”,
“queryResult”: {
“queryText”: “fullfilment”,
“parameters”: [],
“allRequiredParamsPresent”: true,
“fulfillmentText”: “Example”,
“fulfillmentMessages”: [{
“text”: {
“text”: [“Response”]
}
}],
“outputContexts”: [{
“name”: “projects/schiocco…”,
“parameters”: {
“no-input”: 0,
“no-match”: 0
}
}],
“intent”: {
“name”: “projects/schiocco…”,
“displayName”: “Fullfilment”
},
“intentDetectionConfidence”: 1,
“languageCode”: “en”
},
“originalDetectIntentRequest”: {
“payload”: {
“support_board”: {
“conversation_id”: “3002”,
“user_id”: “3777”
}
}
},
“session”: “projects/example/agent/sessions/3777-3002”
}
I campi payload e session contengono l’ID utente e conversazione di Laiv Chat.