Created
August 31, 2017 21:08
-
-
Save mattcarrollcode/438ea9b920e19bf40df956820d81d07e to your computer and use it in GitHub Desktop.
Sample API.AI Webhook Request with Facebook Rich Messaging Data: Photos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lang": "en", | |
"status": { | |
"errorType": "success", | |
"code": 200 | |
}, | |
"timestamp": "2017-02-09T16:06:01.908Z", | |
"sessionId": "1486656220806", | |
"result": { | |
"parameters": { | |
"city": "Rome", | |
"name": "Ana" | |
}, | |
"contexts": [], | |
"resolvedQuery": "my name is Ana and I live in Rome", | |
"source": "agent", | |
"score": 1.0, | |
"speech": "", | |
"fulfillment": { | |
"messages": [ | |
{ | |
"speech": "Hi Ana! Nice to meet you!", | |
"type": 0 | |
} | |
], | |
"speech": "Hi Ana! Nice to meet you!" | |
}, | |
"actionIncomplete": false, | |
"action": "greetings", | |
"metadata": { | |
"intentId": "9f41ef7c-82fa-42a7-9a30-49a93e2c14d0", | |
"webhookForSlotFillingUsed": "false", | |
"intentName": "greetings", | |
"webhookUsed": "true" | |
} | |
}, | |
"id": "ab30d214-f4bb-4cdd-ae36-31caac7a6693", | |
"originalRequest": { | |
"source": "facebook", | |
"data": { | |
"sender":{ | |
"id":"<PSID>" | |
}, | |
"recipient":{ | |
"id":"<PAGE_ID>" | |
}, | |
"timestamp":1458692752478, | |
"message":{ | |
"mid":"mid.1458696618141:b4ef9d19ec21086067", | |
"attachments":[ | |
{ | |
"type":"image", | |
"payload":{ | |
"url":"<IMAGE_URL>" | |
} | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment