Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save georgeportillo/dcab4399bafa7680f179925c27de5ebf to your computer and use it in GitHub Desktop.
Save georgeportillo/dcab4399bafa7680f179925c27de5ebf to your computer and use it in GitHub Desktop.
==========================
Image reference
==========================
http://i.imgur.com/lb5mqqP.png
==========================
JSON
==========================
{
"_id": {
"$oid": "590d1bfecfd6304e632c51f2"
},
"pageAccessToken": "<PAGE_TOKEN>",
"friendlyName": "Twilight sucks",
"pageId": 39067632506,
"apiAi": {
"clientAccessToken": "<API_AI_CLIENT_TOKEN>",
"developerAccessToken": "<API_AI_DEV_TOKEN>"
},
"date": {
"$date": "2017-05-06T00:42:38.467Z"
},
"intents": [
{
"number": 0,
"parentId": "91d5999c-57b4-4500-b441-6fbd30b79fc0",
"getStarted": true,
"id": "91d5999c-57b4-4500-b441-6fbd30b79fc0",
"children": [
{
"messages": [
{
"template": "text",
"text": "Option #1 selected"
}
],
"children": [],
"id": "7ac47513-1caa-4ac3-b2cf-7ed5e446f2fa",
"parentId": "91d5999c-57b4-4500-b441-6fbd30b79fc0",
"number": 1,
"name": "Option #1"
},
{
"messages": [
{
"template": "text",
"text": "Option #2 selected"
}
],
"children": [],
"id": "df919a65-38a1-44c3-8f32-efc5e43d26ee",
"parentId": "91d5999c-57b4-4500-b441-6fbd30b79fc0",
"number": 2,
"name": "Option #2"
}
],
"messages": [
{
"template": "text",
"text": "Hello!"
},
{
"template": "quickReply",
"text": "What option do you want?",
"replies": [
{
"title": "Option #1",
"template": "quickReply",
"payload": {
"intentId": "7ac47513-1caa-4ac3-b2cf-7ed5e446f2fa"
}
},
{
"title": "Option #2",
"template": "quickReply",
"payload": {
"intentId": "df919a65-38a1-44c3-8f32-efc5e43d26ee"
}
}
]
}
],
"name": "Start"
},
{
"messages": [
{
"template": "text",
"text": "Option #1 selected"
}
],
"children": [],
"id": "7ac47513-1caa-4ac3-b2cf-7ed5e446f2fa",
"parentId": "91d5999c-57b4-4500-b441-6fbd30b79fc0",
"number": 1,
"name": "Option #1"
},
{
"messages": [
{
"template": "text",
"text": "Option #2 selected"
}
],
"children": [],
"id": "df919a65-38a1-44c3-8f32-efc5e43d26ee",
"parentId": "91d5999c-57b4-4500-b441-6fbd30b79fc0",
"number": 2,
"name": "Option #2"
}
],
"__v": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment