Skip to content

Instantly share code, notes, and snippets.

@yrezgui
Created August 10, 2017 17:48
Show Gist options
  • Save yrezgui/ed04c682ee6224a24f20aed4275bda68 to your computer and use it in GitHub Desktop.
Save yrezgui/ed04c682ee6224a24f20aed4275bda68 to your computer and use it in GitHub Desktop.
{
"name": "Airline",
"created": "2017-04-24T12:12:47.665Z",
"intents": [
{
"intent": "book-flight",
"created": "2017-04-24T12:16:15.214Z",
"updated": "2017-04-24T12:16:15.214Z",
"examples": [
{
"text": "Wanna go there",
"created": "2017-04-24T12:16:15.214Z",
"updated": "2017-04-24T12:16:15.214Z"
},
{
"text": "I would like a flight",
"created": "2017-04-24T12:16:15.214Z",
"updated": "2017-04-24T12:16:15.214Z"
},
{
"text": "I want to fly there",
"created": "2017-04-24T12:16:15.214Z",
"updated": "2017-04-24T12:16:15.214Z"
},
{
"text": "Hey get me a flight",
"created": "2017-04-24T12:16:15.214Z",
"updated": "2017-04-24T12:16:15.214Z"
},
{
"text": "I want to book a flight",
"created": "2017-04-24T12:16:15.214Z",
"updated": "2017-04-24T12:16:15.214Z"
}
],
"description": null
},
{
"intent": "Claim-miles",
"created": "2017-04-24T12:18:58.433Z",
"updated": "2017-04-24T12:18:58.433Z",
"examples": [
{
"text": "I think I didn't get my miles",
"created": "2017-04-24T12:18:58.433Z",
"updated": "2017-04-24T12:18:58.433Z"
},
{
"text": "Are you sure I got all my miles?",
"created": "2017-04-24T12:18:58.433Z",
"updated": "2017-04-24T12:18:58.433Z"
},
{
"text": "Hi, it's Christmas. Can I get free miles?",
"created": "2017-04-24T12:18:58.433Z",
"updated": "2017-04-24T12:18:58.433Z"
},
{
"text": "Can you add me miles related to my recent flight?",
"created": "2017-04-24T12:18:58.433Z",
"updated": "2017-04-24T12:18:58.433Z"
},
{
"text": "Hey dude, where are my miles?",
"created": "2017-04-24T12:18:58.433Z",
"updated": "2017-04-24T12:18:58.433Z"
}
],
"description": null
}
],
"updated": "2017-04-26T17:52:18.417Z",
"entities": [
{
"entity": "Airports",
"values": [
{
"value": "London Heathrow",
"created": "2017-04-24T12:23:40.921Z",
"updated": "2017-04-24T12:23:40.921Z",
"metadata": null,
"synonyms": [
"Heathrow",
"London",
"LHR"
]
},
{
"value": "Paris Orly",
"created": "2017-04-24T12:23:09.339Z",
"updated": "2017-04-24T12:23:09.339Z",
"metadata": null,
"synonyms": [
"Orly",
"Paris",
"ORY"
]
},
{
"value": "Paris Charles de Gaulle",
"created": "2017-04-24T12:21:54.762Z",
"updated": "2017-04-24T12:23:00.059Z",
"metadata": null,
"synonyms": [
"Roissy",
"Charles de Gaulle",
"Paris",
"CDG"
]
}
],
"created": "2017-04-24T12:21:54.762Z",
"updated": "2017-04-24T12:23:40.921Z",
"metadata": null,
"description": null
}
],
"language": "en",
"metadata": {
"api_version": {
"major_version": "v1",
"minor_version": "2017-05-26"
}
},
"description": "",
"dialog_nodes": [
{
"title": "Book a flight for London",
"output": {},
"parent": null,
"context": null,
"created": "2017-04-24T12:25:07.828Z",
"updated": "2017-04-26T17:51:20.642Z",
"metadata": null,
"next_step": null,
"conditions": "#book-flight && @Airports:(London Heathrow)",
"description": null,
"dialog_node": "Book a flight for London",
"previous_sibling": null
},
{
"title": "Book flights",
"output": {},
"parent": null,
"context": null,
"created": "2017-04-24T12:25:31.328Z",
"updated": "2017-04-26T17:52:18.417Z",
"metadata": null,
"next_step": null,
"conditions": "#book-flight && @Airports",
"description": null,
"dialog_node": "Book flights",
"previous_sibling": "Claim miles not at the right moment"
},
{
"title": "Claim miles",
"output": {
"text": {
"values": [
"I got you, here are your miles from <? context.favorite_airport ?>"
],
"selection_policy": "sequential"
}
},
"parent": "Book a flight for London",
"context": null,
"created": "2017-04-24T12:27:21.851Z",
"updated": "2017-04-26T17:51:40.480Z",
"metadata": null,
"next_step": null,
"conditions": "#Claim-miles",
"description": null,
"dialog_node": "Claim miles",
"previous_sibling": null
},
{
"title": "Claim miles not at the right moment",
"output": {
"text": {
"values": [
"Stop it, that's not the moment"
],
"selection_policy": "sequential"
}
},
"parent": null,
"context": null,
"created": "2017-04-26T12:07:13.961Z",
"updated": "2017-04-26T17:51:54.945Z",
"metadata": null,
"next_step": null,
"conditions": "#Claim-miles",
"description": null,
"dialog_node": "Claim miles not at the right moment",
"previous_sibling": "Book a flight for London"
},
{
"type": "response_condition",
"title": null,
"output": {
"text": {
"values": [
"Have fun outside"
],
"selection_policy": "sequential"
}
},
"parent": "Book flights",
"context": null,
"created": "2017-04-26T11:37:55.441Z",
"updated": "2017-04-26T11:38:18.028Z",
"metadata": null,
"next_step": null,
"conditions": "@Airports:(Paris Charles de Gaulle)",
"description": null,
"dialog_node": "node_2_1493206675226",
"previous_sibling": null
},
{
"type": "response_condition",
"title": null,
"output": {
"text": {
"values": [
"I will get you that"
],
"selection_policy": "sequential"
}
},
"parent": "Book a flight for London",
"context": {
"favorite_airport": "Heathrow"
},
"created": "2017-04-24T12:26:04.670Z",
"updated": "2017-04-26T11:47:50.695Z",
"metadata": null,
"next_step": null,
"conditions": "",
"description": null,
"dialog_node": "node_3_1493036764414",
"previous_sibling": "Claim miles"
},
{
"type": "response_condition",
"title": null,
"output": {
"text": {
"values": [
"Stay in Paris"
],
"selection_policy": "sequential"
}
},
"parent": "Book flights",
"context": null,
"created": "2017-04-26T11:38:24.127Z",
"updated": "2017-04-26T11:38:35.097Z",
"metadata": null,
"next_step": null,
"conditions": " @Airports:(Paris Orly)",
"description": null,
"dialog_node": "node_3_1493206703913",
"previous_sibling": "node_2_1493206675226"
}
],
"workspace_id": "aa33011a-5fb0-4f02-88f6-df4613fb5771",
"counterexamples": [],
"learning_opt_out": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment