├── README.md
├── TravelPlanner.zip
├── TravelPlanner
├── agent.json
├── entities
│ ├── flight_seat.json
│ ├── flight_seat_entries_en.json
│ ├── hotel_name.json
│ ├── hotel_name_entries_en.json
│ ├── travel_class.json
│ └── travel_class_entries_en.json
├── intents
│ ├── Default Fallback Intent.json
│ ├── Default Welcome Intent.json
│ ├── Default Welcome Intent_usersays_en.json
│ ├── book_flights.json
│ ├── book_flights_change_date.json
│ ├── book_flights_change_date_usersays_en.json
│ ├── book_flights_change_destination.json
│ ├── book_flights_change_destination_usersays_en.json
│ ├── book_flights_followup_get_seat - yes.json
│ ├── book_flights_followup_get_seat - yes_usersays_en.json
│ ├── book_flights_followup_get_seat- no.json
│ ├── book_flights_followup_get_seat- no_usersays_en.json
│ ├── book_flights_followup_get_seat.json
│ ├── book_flights_followup_get_seat_usersays_en.json
│ ├── book_flights_followup_room_book - no.json
│ ├── book_flights_followup_room_book - no_usersays_en.json
│ ├── book_flights_followup_room_book - yes.json
│ ├── book_flights_followup_room_book - yes_usersays_en.json
│ ├── book_flights_followup_room_book.json
│ ├── book_flights_followup_room_book_usersays_en.json
│ ├── book_flights_get_date.json
│ ├── book_flights_get_date_usersays_en.json
│ ├── book_flights_get_destination.json
│ ├── book_flights_get_seatno.json
│ ├── book_flights_get_travelclass.json
│ ├── book_flights_get_travelclass_usersays_en.json
│ ├── book_flights_incorrect_seatno.json
│ ├── book_flights_payment_conf_room_book-no.json
│ ├── book_flights_payment_conf_room_book-no_usersays_en.json
│ ├── book_flights_payment_conf_room_book-yes.json
│ ├── book_flights_payment_conf_room_book-yes_usersays_en.json
│ ├── book_flights_payment_confirmation.json
│ ├── book_flights_payment_link.json
│ ├── book_flights_payment_link_usersays_en.json
│ ├── book_flights_payment_processor.json
│ ├── book_flights_payment_processor1.json
│ ├── book_flights_payment_processor_usersays_en.json
│ ├── book_flights_startover.json
│ ├── book_flights_startover_usersays_en.json
│ ├── book_flights_today.json
│ ├── book_flights_today_usersays_en.json
│ ├── book_flights_usersays_en.json
│ ├── book_rooms_confirmation.json
│ ├── book_rooms_confirmation_usersays_en.json
│ ├── book_rooms_get_date.json
│ ├── book_rooms_get_date_usersays_en.json
│ ├── book_rooms_get_hotel_name.json
│ ├── book_rooms_get_hotel_name_usersays_en.json
│ ├── book_rooms_get_location.json
│ ├── book_rooms_get_location_usersays_en.json
│ ├── book_rooms_incorrect_hotelname.json
│ ├── request_permission.json
│ ├── request_permission_usersays_en.json
│ └── user_info.json
└── package.json
├── index.js
└── package.json
/README.md:
--------------------------------------------------------------------------------
1 |
2 | ## Content
3 |
4 | - [ Project Overview. ](#desc)
5 | - [ DialogFlow Overview. ](#overview)
6 | - [ Project Setup. ](#usage)
7 | - [ Agent Setup. ](#agent)
8 | - [ Fulfillment Code Setup. ](#fulfillment)
9 | - [ Bot Testing. ](#test)
10 |
11 |
12 | ## Project Overview
13 |
14 | TravelPlanner chatbot allows a user to book flights from an origin to destination for a particular date using Google Assistant. Users can also opt for hotel bookings.
15 |
16 | **Functional Features:**
17 | 1) User can book flight from origin to destination.
18 | 2) Suggestion Chips will be provided to the user to help in selecting various options. (For suggestion chip demo, click [here](https://developers.google.com/assistant/conversational/df-asdk/rich-responses#suggestion_chips "here"))
19 | 3) Users can select travel class (business or economy) and can opt for seat booking.
20 | 4) Detect location feature is also enabled.
21 | 5) Change destination and change date option is also available.
22 | 6) Users can opt for hotel booking from the displayed hotel list.
23 |
24 |
25 | ## DialogFlow Overview
26 |
27 | For basic understanding of dialogflow, click [here](https://cloud.google.com/dialogflow/docs "here")
28 |
29 |
30 | ## Project Setup
31 |
32 |
33 | - ### Agent Setup
34 |
35 | 1. Create New Agent **Travel Planner**.
36 | 
37 |
38 | 2. Go to the Dialogflow console and click the ⚙icon next to your Dialogflow agent name.
39 |
40 | 3. Click to Export and Import tab in the settings of your Dialogflow agent and click IMPORT FROM ZIP.
41 | 
42 |
43 |
44 | 4. Drag the TravelPlanner.zip file into the box and type the word IMPORT to complete the import.
45 | 
46 |
47 | *Great !! Now you have imported your DialogFLow agents and entites :smile:*
48 |
49 |
50 | - ### Fulfillment Code Setup
51 |
52 | 1. Go to Fulfillment Tab and enable Inline Editor.
53 | 
54 |
55 | 2. Update index.js and package.json as per committed file.
56 |
57 | 3. Once done, click Deploy.
58 | 
59 |
60 |
61 | ## Bot Testing
62 |
63 | 1. Go to [Google Action Console](https://console.actions.google.com/ "Google Action Console")
64 |
65 | 2. Select Project and Click on Test.
66 | 
67 |
68 | *Done!!! Now start chatting with your bot :smile:*
69 |
70 | 
71 |
72 | **Happy Learning :smile:**
73 | .
74 |
--------------------------------------------------------------------------------
/TravelPlanner.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shivanijain1313/Flight-Hotel-Booking-ChatBot-Using-DialogFlow/702cf7178f1871b1736b241f75433a3a45f744c4/TravelPlanner.zip
--------------------------------------------------------------------------------
/TravelPlanner/agent.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "",
3 | "language": "en",
4 | "shortDescription": "",
5 | "examples": "",
6 | "linkToDocs": "",
7 | "disableInteractionLogs": false,
8 | "disableStackdriverLogs": true,
9 | "googleAssistant": {
10 | "googleAssistantCompatible": true,
11 | "project": "travelplanner-jbelkt",
12 | "welcomeIntentSignInRequired": false,
13 | "startIntents": [],
14 | "systemIntents": [],
15 | "endIntentIds": [
16 | "6cd11416-8e8c-4e97-b7e1-a7db2ea2aa8d"
17 | ],
18 | "oAuthLinking": {
19 | "required": false,
20 | "providerId": "",
21 | "authorizationUrl": "",
22 | "tokenUrl": "",
23 | "scopes": "",
24 | "privacyPolicyUrl": "",
25 | "grantType": "AUTH_CODE_GRANT"
26 | },
27 | "voiceType": "MALE_1",
28 | "capabilities": [],
29 | "env": "",
30 | "protocolVersion": "V2",
31 | "autoPreviewEnabled": true,
32 | "isDeviceAgent": false
33 | },
34 | "defaultTimezone": "Asia/Almaty",
35 | "webhook": {
36 | "url": "https://us-central1-travelplanner-jbelkt.cloudfunctions.net/dialogflowFirebaseFulfillment",
37 | "username": "",
38 | "headers": {},
39 | "available": true,
40 | "useForDomains": false,
41 | "cloudFunctionsEnabled": true,
42 | "cloudFunctionsInitialized": true
43 | },
44 | "isPrivate": true,
45 | "customClassifierMode": "use.after",
46 | "mlMinConfidence": 0.3,
47 | "supportedLanguages": [],
48 | "onePlatformApiVersion": "v2",
49 | "analyzeQueryTextSentiment": false,
50 | "enabledKnowledgeBaseNames": [],
51 | "knowledgeServiceConfidenceAdjustment": -0.4,
52 | "dialogBuilderMode": false,
53 | "baseActionPackagesUrl": ""
54 | }
--------------------------------------------------------------------------------
/TravelPlanner/entities/flight_seat.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "9ee228de-58df-4676-aafb-e7bb2c0ae1ad",
3 | "name": "flight_seat",
4 | "isOverridable": true,
5 | "isEnum": false,
6 | "isRegexp": true,
7 | "automatedExpansion": false,
8 | "allowFuzzyExtraction": false
9 | }
--------------------------------------------------------------------------------
/TravelPlanner/entities/flight_seat_entries_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "value": "[ABC][1-6]",
4 | "synonyms": []
5 | }
6 | ]
--------------------------------------------------------------------------------
/TravelPlanner/entities/hotel_name.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "790ed82e-021c-46b6-9ad6-933b1b8e864e",
3 | "name": "hotel_name",
4 | "isOverridable": true,
5 | "isEnum": false,
6 | "isRegexp": false,
7 | "automatedExpansion": false,
8 | "allowFuzzyExtraction": false
9 | }
--------------------------------------------------------------------------------
/TravelPlanner/entities/hotel_name_entries_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "value": "HotelA",
4 | "synonyms": [
5 | "HotelA"
6 | ]
7 | },
8 | {
9 | "value": "HotelB",
10 | "synonyms": [
11 | "Hotel B"
12 | ]
13 | },
14 | {
15 | "value": "HotelC",
16 | "synonyms": [
17 | "HotelC"
18 | ]
19 | }
20 | ]
--------------------------------------------------------------------------------
/TravelPlanner/entities/travel_class.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "6ce00530-416d-480b-b03f-63d742925797",
3 | "name": "travel_class",
4 | "isOverridable": true,
5 | "isEnum": false,
6 | "isRegexp": false,
7 | "automatedExpansion": false,
8 | "allowFuzzyExtraction": false
9 | }
--------------------------------------------------------------------------------
/TravelPlanner/entities/travel_class_entries_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "value": "economy",
4 | "synonyms": [
5 | "economy"
6 | ]
7 | },
8 | {
9 | "value": "business",
10 | "synonyms": [
11 | "business"
12 | ]
13 | }
14 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/Default Fallback Intent.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "2ca2542b-b411-4dd9-aa33-14232d20651a",
3 | "name": "Default Fallback Intent",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "action": "input.unknown",
10 | "affectedContexts": [],
11 | "parameters": [],
12 | "messages": [
13 | {
14 | "type": 0,
15 | "lang": "en",
16 | "condition": "",
17 | "speech": [
18 | "I didn\u0027t get that. Can you say it again?",
19 | "I missed what you said. What was that?",
20 | "Sorry, could you say that again?",
21 | "Sorry, can you say that again?",
22 | "Can you say that again?",
23 | "Sorry, I didn\u0027t get that. Can you rephrase?",
24 | "Sorry, what was that?",
25 | "One more time?",
26 | "What was that?",
27 | "Say that one more time?",
28 | "I didn\u0027t get that. Can you repeat?",
29 | "I missed that, say that again?"
30 | ]
31 | }
32 | ],
33 | "defaultResponsePlatforms": {},
34 | "speech": []
35 | }
36 | ],
37 | "priority": 500000,
38 | "webhookUsed": true,
39 | "webhookForSlotFilling": false,
40 | "fallbackIntent": true,
41 | "events": [],
42 | "conditionalResponses": [],
43 | "condition": "",
44 | "conditionalFollowupEvents": []
45 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/Default Welcome Intent.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "c0e0a991-6144-4a20-9f06-b0510f4fce2c",
3 | "name": "Default Welcome Intent",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "action": "input.welcome",
10 | "affectedContexts": [],
11 | "parameters": [],
12 | "messages": [
13 | {
14 | "type": "simple_response",
15 | "platform": "google",
16 | "lang": "en",
17 | "condition": "",
18 | "textToSpeech": "Hi, I am your travel planner, you can ask me to book your flight and hotel rooms :)",
19 | "ssml": "",
20 | "displayText": ""
21 | },
22 | {
23 | "type": "suggestion_chips",
24 | "platform": "google",
25 | "lang": "en",
26 | "condition": "",
27 | "suggestions": [
28 | {
29 | "title": "Book a flight"
30 | },
31 | {
32 | "title": "Book a room"
33 | }
34 | ]
35 | },
36 | {
37 | "type": 0,
38 | "lang": "en",
39 | "condition": "",
40 | "speech": "Hi, I am your travel planner, you can ask me to book your flight and hotel rooms :)"
41 | }
42 | ],
43 | "defaultResponsePlatforms": {},
44 | "speech": []
45 | }
46 | ],
47 | "priority": 500000,
48 | "webhookUsed": false,
49 | "webhookForSlotFilling": false,
50 | "fallbackIntent": false,
51 | "events": [
52 | {
53 | "name": "WELCOME"
54 | }
55 | ],
56 | "conditionalResponses": [],
57 | "condition": "",
58 | "conditionalFollowupEvents": []
59 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/Default Welcome Intent_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "10fc9965-3969-4c82-82dd-74e49c53b2d0",
4 | "data": [
5 | {
6 | "text": "just going to say hi",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "19fe2472-1b07-4b41-90ea-cc40235ef974",
16 | "data": [
17 | {
18 | "text": "heya",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "f767f8a9-c971-4237-a77e-9a64bb949a06",
28 | "data": [
29 | {
30 | "text": "hello hi",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 0,
36 | "updated": 0
37 | },
38 | {
39 | "id": "95004045-b7c6-46fb-96ab-de4ed88aac9e",
40 | "data": [
41 | {
42 | "text": "howdy",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "afd6f115-443a-493c-91b7-ddad09068987",
52 | "data": [
53 | {
54 | "text": "hey there",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "7ac82754-f344-43f2-a181-a11ddb57c1bc",
64 | "data": [
65 | {
66 | "text": "hi there",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "290bd38e-cd48-4114-8170-5aa309e51a48",
76 | "data": [
77 | {
78 | "text": "greetings",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "ea7df076-a314-4c77-b680-8e78992d2a2b",
88 | "data": [
89 | {
90 | "text": "hey",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 0,
96 | "updated": 0
97 | },
98 | {
99 | "id": "5a814052-5b6a-4ff8-806b-cddc20eef535",
100 | "data": [
101 | {
102 | "text": "long time no see",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 0,
108 | "updated": 0
109 | },
110 | {
111 | "id": "bc353527-41ea-479a-86e8-22c9f20ee197",
112 | "data": [
113 | {
114 | "text": "hello",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 0,
120 | "updated": 0
121 | },
122 | {
123 | "id": "4f5252e9-8127-435a-bded-5b5263d309c0",
124 | "data": [
125 | {
126 | "text": "lovely day isn\u0027t it",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "96fd1516-ec3e-4cc1-9409-21653f60f559",
136 | "data": [
137 | {
138 | "text": "I greet you",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "adda1cb6-a369-4c4c-8124-c54be1c69bde",
148 | "data": [
149 | {
150 | "text": "hello again",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "750608f0-bfe8-4835-b942-7780c7a447bc",
160 | "data": [
161 | {
162 | "text": "hi",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 0,
168 | "updated": 0
169 | },
170 | {
171 | "id": "b7951b00-c8d9-40e0-a107-0578ce41160f",
172 | "data": [
173 | {
174 | "text": "hello there",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 0,
180 | "updated": 0
181 | },
182 | {
183 | "id": "52b0de31-a62c-4602-b1c4-68850e7422b6",
184 | "data": [
185 | {
186 | "text": "a good day",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 0,
192 | "updated": 0
193 | }
194 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "e2c9103a-ae01-4cbf-8dcc-2d61da205a83",
3 | "name": "book_flights",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "action": "slotFillingFlight",
10 | "affectedContexts": [],
11 | "parameters": [
12 | {
13 | "id": "28453069-3c47-45fe-9153-90c76b8076f8",
14 | "required": true,
15 | "dataType": "@sys.geo-city",
16 | "name": "geo-city",
17 | "value": "$geo-city",
18 | "prompts": [
19 | {
20 | "lang": "en",
21 | "value": "What\u0027s the origin of flight ?"
22 | }
23 | ],
24 | "promptMessages": [],
25 | "noMatchPromptMessages": [],
26 | "noInputPromptMessages": [],
27 | "outputDialogContexts": [],
28 | "defaultValue": "#book_flight_event.geo-city",
29 | "isList": false
30 | },
31 | {
32 | "id": "f543c12c-ff83-4b30-81df-230a7b2ed5fb",
33 | "required": true,
34 | "dataType": "@sys.geo-city",
35 | "name": "geo-city1",
36 | "value": "$geo-city1",
37 | "prompts": [
38 | {
39 | "lang": "en",
40 | "value": "What\u0027s the destination of flight ?"
41 | }
42 | ],
43 | "promptMessages": [],
44 | "noMatchPromptMessages": [],
45 | "noInputPromptMessages": [],
46 | "outputDialogContexts": [],
47 | "defaultValue": "#book_flight_event.geo-city1",
48 | "isList": false
49 | }
50 | ],
51 | "messages": [
52 | {
53 | "type": "simple_response",
54 | "platform": "google",
55 | "lang": "en",
56 | "condition": "",
57 | "textToSpeech": "For when you want to book a flight ?",
58 | "ssml": "",
59 | "displayText": ""
60 | },
61 | {
62 | "type": "suggestion_chips",
63 | "platform": "google",
64 | "lang": "en",
65 | "condition": "",
66 | "suggestions": [
67 | {
68 | "title": "Today"
69 | },
70 | {
71 | "title": "Tomorrow"
72 | },
73 | {
74 | "title": "Friday"
75 | }
76 | ]
77 | }
78 | ],
79 | "defaultResponsePlatforms": {},
80 | "speech": []
81 | }
82 | ],
83 | "priority": 500000,
84 | "webhookUsed": true,
85 | "webhookForSlotFilling": true,
86 | "fallbackIntent": false,
87 | "events": [],
88 | "conditionalResponses": [],
89 | "condition": "",
90 | "conditionalFollowupEvents": []
91 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_change_date.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "95403324-8cee-4eec-9412-6ce21559b67f",
3 | "name": "book_flights_change_date",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlight-NotToday-Option"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [],
12 | "parameters": [],
13 | "messages": [
14 | {
15 | "type": 0,
16 | "lang": "en",
17 | "condition": "",
18 | "speech": []
19 | }
20 | ],
21 | "defaultResponsePlatforms": {},
22 | "speech": []
23 | }
24 | ],
25 | "priority": 500000,
26 | "webhookUsed": true,
27 | "webhookForSlotFilling": false,
28 | "fallbackIntent": false,
29 | "events": [],
30 | "conditionalResponses": [],
31 | "condition": "",
32 | "conditionalFollowupEvents": []
33 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_change_date_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "7eeaebae-caa7-4e8e-ac42-f74e9031b012",
4 | "data": [
5 | {
6 | "text": "Date change",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "236b0c44-9b3b-4a25-8c74-e54bc8e5393b",
16 | "data": [
17 | {
18 | "text": "Change Date",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 1,
24 | "updated": 0
25 | }
26 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_change_destination.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "037519aa-1ac7-48f4-ae3c-2886597f53ce",
3 | "name": "book_flights_change_destination",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlight-NotToday-Option"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [],
12 | "parameters": [],
13 | "messages": [
14 | {
15 | "type": "simple_response",
16 | "platform": "google",
17 | "lang": "en",
18 | "condition": "",
19 | "textToSpeech": "Sleetc Date",
20 | "ssml": "",
21 | "displayText": ""
22 | },
23 | {
24 | "type": 0,
25 | "lang": "en",
26 | "condition": "",
27 | "speech": []
28 | }
29 | ],
30 | "defaultResponsePlatforms": {},
31 | "speech": []
32 | }
33 | ],
34 | "priority": 500000,
35 | "webhookUsed": true,
36 | "webhookForSlotFilling": false,
37 | "fallbackIntent": false,
38 | "events": [],
39 | "conditionalResponses": [],
40 | "condition": "",
41 | "conditionalFollowupEvents": []
42 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_change_destination_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "2a51c896-d157-4aab-9296-1f28ff177abf",
4 | "data": [
5 | {
6 | "text": "Change Destination",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | }
14 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_get_seat - yes.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "d4d46877-997c-4c8d-b379-bd21ce10bec6",
3 | "parentId": "59b287df-5a46-4fe5-92ec-f40e3a26b971",
4 | "rootParentId": "7870b960-aabb-404d-a9ac-f46057f12657",
5 | "name": "book_flights_followup_get_seat - yes",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlights-FollowUpGetSeat-followup"
9 | ],
10 | "responses": [
11 | {
12 | "resetContexts": false,
13 | "action": "BookFlights-GetTravelClass.BookFlights-GetTravelClass-custom.BookFlights-FollowUpGetSeat-yes",
14 | "affectedContexts": [],
15 | "parameters": [],
16 | "messages": [
17 | {
18 | "type": 0,
19 | "lang": "en",
20 | "condition": "",
21 | "speech": "Test"
22 | }
23 | ],
24 | "defaultResponsePlatforms": {},
25 | "speech": []
26 | }
27 | ],
28 | "priority": 500000,
29 | "webhookUsed": true,
30 | "webhookForSlotFilling": false,
31 | "fallbackIntent": false,
32 | "events": [],
33 | "conditionalResponses": [],
34 | "condition": "",
35 | "conditionalFollowupEvents": []
36 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_get_seat - yes_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "8a76441a-8cbd-4b99-8a1f-bb4c1f18dfdc",
4 | "data": [
5 | {
6 | "text": "yes",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 1,
12 | "updated": 0
13 | },
14 | {
15 | "id": "0083ef88-2868-43a8-8944-3e098dd55c7a",
16 | "data": [
17 | {
18 | "text": "okay I will",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 2,
24 | "updated": 0
25 | },
26 | {
27 | "id": "7aac036a-55e5-468a-9f43-c8dbb456ff73",
28 | "data": [
29 | {
30 | "text": "why not",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 0,
36 | "updated": 0
37 | },
38 | {
39 | "id": "89d7ed15-c76c-4cae-af40-053b39489a45",
40 | "data": [
41 | {
42 | "text": "yes that\u0027s alright",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "f4d597c8-d098-46da-89fe-1a12f425cd58",
52 | "data": [
53 | {
54 | "text": "yes I do",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "143c08ba-bb97-40cd-a4de-e7ba7615d210",
64 | "data": [
65 | {
66 | "text": "exactly",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "023894ec-fc8b-4ec1-b8c1-a8bcbb24fc5a",
76 | "data": [
77 | {
78 | "text": "of course",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "9d56f0ca-f4e0-4ea7-9b93-ebebd16edd4c",
88 | "data": [
89 | {
90 | "text": "yep that\u0027s ok",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 0,
96 | "updated": 0
97 | },
98 | {
99 | "id": "d0a3f14b-a1e9-4641-a3e0-8fcb8dc32d85",
100 | "data": [
101 | {
102 | "text": "okay",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 1,
108 | "updated": 0
109 | },
110 | {
111 | "id": "d753b5af-34db-4428-bdba-406fe267000c",
112 | "data": [
113 | {
114 | "text": "ok",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 1,
120 | "updated": 0
121 | },
122 | {
123 | "id": "fd691abb-5b22-4393-9b08-aa9d5bc4b4a6",
124 | "data": [
125 | {
126 | "text": "for sure",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "92fc2708-2b6e-41a1-8553-d13ce4e93f34",
136 | "data": [
137 | {
138 | "text": "sg",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "f1e3a276-ea9e-4e31-85c2-df972bdb409d",
148 | "data": [
149 | {
150 | "text": "yes that\u0027t ok",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "4d27c29e-8adf-4c0f-9512-6a68581c25f2",
160 | "data": [
161 | {
162 | "text": "I agree",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 2,
168 | "updated": 0
169 | },
170 | {
171 | "id": "3cc63bfe-e1b0-47a2-b09a-ad8c0a5e53ec",
172 | "data": [
173 | {
174 | "text": "yes you can do it",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 0,
180 | "updated": 0
181 | },
182 | {
183 | "id": "e4d39a0a-b1fe-42dc-855f-e2ecf1c7a070",
184 | "data": [
185 | {
186 | "text": "I don\u0027t mind",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 3,
192 | "updated": 0
193 | },
194 | {
195 | "id": "b0126bf2-e04d-458f-bf16-d68600a247d8",
196 | "data": [
197 | {
198 | "text": "that one works",
199 | "userDefined": false
200 | }
201 | ],
202 | "isTemplate": false,
203 | "count": 0,
204 | "updated": 0
205 | },
206 | {
207 | "id": "556f1638-b813-4a6d-8a65-6c93ae0b0451",
208 | "data": [
209 | {
210 | "text": "that works",
211 | "userDefined": false
212 | }
213 | ],
214 | "isTemplate": false,
215 | "count": 0,
216 | "updated": 0
217 | },
218 | {
219 | "id": "42ce2151-bbe3-4263-9866-72712a4c25f4",
220 | "data": [
221 | {
222 | "text": "sure why not",
223 | "userDefined": false
224 | }
225 | ],
226 | "isTemplate": false,
227 | "count": 0,
228 | "updated": 0
229 | },
230 | {
231 | "id": "4743b629-c571-4645-bdc2-63269d1c0c66",
232 | "data": [
233 | {
234 | "text": "perfect",
235 | "userDefined": false
236 | }
237 | ],
238 | "isTemplate": false,
239 | "count": 0,
240 | "updated": 0
241 | },
242 | {
243 | "id": "13381537-1e8f-46e1-ac78-6a6bc2fe7d37",
244 | "data": [
245 | {
246 | "text": "yep that\u0027s right",
247 | "userDefined": false
248 | }
249 | ],
250 | "isTemplate": false,
251 | "count": 1,
252 | "updated": 0
253 | },
254 | {
255 | "id": "6d341828-72cd-4f96-89eb-bc5cbcd255dd",
256 | "data": [
257 | {
258 | "text": "I think so",
259 | "userDefined": false
260 | }
261 | ],
262 | "isTemplate": false,
263 | "count": 0,
264 | "updated": 0
265 | },
266 | {
267 | "id": "4320d555-a38f-492d-b1fc-6d16fdc54e79",
268 | "data": [
269 | {
270 | "text": "yes I agree",
271 | "userDefined": false
272 | }
273 | ],
274 | "isTemplate": false,
275 | "count": 1,
276 | "updated": 0
277 | },
278 | {
279 | "id": "68b6cd35-4229-4674-94d6-46615ebab6ba",
280 | "data": [
281 | {
282 | "text": "sure",
283 | "userDefined": false
284 | }
285 | ],
286 | "isTemplate": false,
287 | "count": 2,
288 | "updated": 0
289 | },
290 | {
291 | "id": "eba08d9b-f87d-4232-8874-be4da3029007",
292 | "data": [
293 | {
294 | "text": "sounds correct",
295 | "userDefined": false
296 | }
297 | ],
298 | "isTemplate": false,
299 | "count": 1,
300 | "updated": 0
301 | },
302 | {
303 | "id": "ee5b2ffc-9c14-4a20-9e00-31cb8635c52c",
304 | "data": [
305 | {
306 | "text": "sounds good",
307 | "userDefined": false
308 | }
309 | ],
310 | "isTemplate": false,
311 | "count": 0,
312 | "updated": 0
313 | },
314 | {
315 | "id": "e1f1d448-2705-47b8-92f5-4960656f346b",
316 | "data": [
317 | {
318 | "text": "that\u0027s correct",
319 | "userDefined": false
320 | }
321 | ],
322 | "isTemplate": false,
323 | "count": 0,
324 | "updated": 0
325 | },
326 | {
327 | "id": "50cf224f-9f07-4975-bf7b-441ab549ff6e",
328 | "data": [
329 | {
330 | "text": "go ahead",
331 | "userDefined": false
332 | }
333 | ],
334 | "isTemplate": false,
335 | "count": 1,
336 | "updated": 0
337 | },
338 | {
339 | "id": "1296a391-d3e6-49c8-9eaa-39943cf8544f",
340 | "data": [
341 | {
342 | "text": "do it",
343 | "userDefined": false
344 | }
345 | ],
346 | "isTemplate": false,
347 | "count": 1,
348 | "updated": 0
349 | },
350 | {
351 | "id": "55cd75db-90a7-4daf-947b-ecd03090e8b9",
352 | "data": [
353 | {
354 | "text": "it\u0027s fine",
355 | "userDefined": false
356 | }
357 | ],
358 | "isTemplate": false,
359 | "count": 0,
360 | "updated": 0
361 | },
362 | {
363 | "id": "1fe10ef0-0823-4efa-b4ef-730bc1f931b3",
364 | "data": [
365 | {
366 | "text": "yeah",
367 | "userDefined": false
368 | }
369 | ],
370 | "isTemplate": false,
371 | "count": 0,
372 | "updated": 0
373 | },
374 | {
375 | "id": "4a8d741c-808c-45f8-bf90-ab32b99e0060",
376 | "data": [
377 | {
378 | "text": "yes please",
379 | "userDefined": false
380 | }
381 | ],
382 | "isTemplate": false,
383 | "count": 0,
384 | "updated": 0
385 | },
386 | {
387 | "id": "a05b793f-9a1d-460d-b1b6-c1a5b98d24d9",
388 | "data": [
389 | {
390 | "text": "it\u0027s okay",
391 | "userDefined": false
392 | }
393 | ],
394 | "isTemplate": false,
395 | "count": 0,
396 | "updated": 0
397 | },
398 | {
399 | "id": "88a721b8-99ce-4a51-bf78-f106361f402a",
400 | "data": [
401 | {
402 | "text": "alright why not",
403 | "userDefined": false
404 | }
405 | ],
406 | "isTemplate": false,
407 | "count": 0,
408 | "updated": 0
409 | },
410 | {
411 | "id": "df7428d3-7f27-40c7-b0d0-3456d0c8df91",
412 | "data": [
413 | {
414 | "text": "alright",
415 | "userDefined": false
416 | }
417 | ],
418 | "isTemplate": false,
419 | "count": 0,
420 | "updated": 0
421 | },
422 | {
423 | "id": "8f9f71af-76ec-424f-b28a-ece5b6f1dc95",
424 | "data": [
425 | {
426 | "text": "right",
427 | "userDefined": false
428 | }
429 | ],
430 | "isTemplate": false,
431 | "count": 0,
432 | "updated": 0
433 | },
434 | {
435 | "id": "96b0889c-e64c-4ba3-83d3-495a0385917a",
436 | "data": [
437 | {
438 | "text": "it looks perfect",
439 | "userDefined": false
440 | }
441 | ],
442 | "isTemplate": false,
443 | "count": 0,
444 | "updated": 0
445 | },
446 | {
447 | "id": "5a7c1865-6c90-4c93-8ea5-b7cacad6dcef",
448 | "data": [
449 | {
450 | "text": "yes I can",
451 | "userDefined": false
452 | }
453 | ],
454 | "isTemplate": false,
455 | "count": 0,
456 | "updated": 0
457 | },
458 | {
459 | "id": "ab7709c6-2eca-4ecf-812d-1e4527f1e709",
460 | "data": [
461 | {
462 | "text": "yup",
463 | "userDefined": false
464 | }
465 | ],
466 | "isTemplate": false,
467 | "count": 0,
468 | "updated": 0
469 | },
470 | {
471 | "id": "3312fe28-dfeb-4fa6-98f6-9569c6cb393f",
472 | "data": [
473 | {
474 | "text": "yep",
475 | "userDefined": false
476 | }
477 | ],
478 | "isTemplate": false,
479 | "count": 0,
480 | "updated": 0
481 | },
482 | {
483 | "id": "e826ff4d-875d-4073-89c5-1dba1203e3ce",
484 | "data": [
485 | {
486 | "text": "confirm",
487 | "userDefined": false
488 | }
489 | ],
490 | "isTemplate": false,
491 | "count": 1,
492 | "updated": 0
493 | },
494 | {
495 | "id": "29adab5b-d5e3-450b-b385-1538d0ad21da",
496 | "data": [
497 | {
498 | "text": "absolutely",
499 | "userDefined": false
500 | }
501 | ],
502 | "isTemplate": false,
503 | "count": 1,
504 | "updated": 0
505 | }
506 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_get_seat- no.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "a02e5676-cbd1-4294-864e-5c5d9fd32758",
3 | "parentId": "59b287df-5a46-4fe5-92ec-f40e3a26b971",
4 | "rootParentId": "7870b960-aabb-404d-a9ac-f46057f12657",
5 | "name": "book_flights_followup_get_seat- no",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlights-FollowUpGetSeat-followup"
9 | ],
10 | "responses": [
11 | {
12 | "resetContexts": false,
13 | "action": "BookFlights-GetTravelClass.BookFlights-GetTravelClass-custom.BookFlights-FollowUpGetSeat-no",
14 | "affectedContexts": [
15 | {
16 | "name": "BookFlight-Seat",
17 | "parameters": {},
18 | "lifespan": 1
19 | }
20 | ],
21 | "parameters": [],
22 | "messages": [
23 | {
24 | "type": 0,
25 | "lang": "en",
26 | "condition": "",
27 | "speech": []
28 | }
29 | ],
30 | "defaultResponsePlatforms": {},
31 | "speech": []
32 | }
33 | ],
34 | "priority": 500000,
35 | "webhookUsed": true,
36 | "webhookForSlotFilling": false,
37 | "fallbackIntent": false,
38 | "events": [],
39 | "conditionalResponses": [],
40 | "condition": "",
41 | "conditionalFollowupEvents": []
42 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_get_seat- no_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "ffc03e82-eab3-4b87-af31-a2079d4e0537",
4 | "data": [
5 | {
6 | "text": "thanks but no",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "aa093560-2146-4123-9a76-8dab2e6a1ff4",
16 | "data": [
17 | {
18 | "text": "no way",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "71620d96-450e-4e49-94b3-2bfe09c9e71f",
28 | "data": [
29 | {
30 | "text": "no",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 2,
36 | "updated": 0
37 | },
38 | {
39 | "id": "1bb52b57-b821-45ca-ace6-de6c9609e1a3",
40 | "data": [
41 | {
42 | "text": "no no don\u0027t",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "320bc985-3b6b-44d1-99ef-4f610b63fea9",
52 | "data": [
53 | {
54 | "text": "na",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "1c00239d-fc2d-41e7-b698-babf7e50d475",
64 | "data": [
65 | {
66 | "text": "no it isn\u0027t",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "640221e1-4f97-4fbd-98ca-4573f3d3bbbc",
76 | "data": [
77 | {
78 | "text": "don\u0027t",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "dc88771f-a155-472e-b9d6-38dcba93784c",
88 | "data": [
89 | {
90 | "text": "nah I\u0027m good",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 1,
96 | "updated": 0
97 | },
98 | {
99 | "id": "50458e36-cc31-4417-afd6-737ea2988496",
100 | "data": [
101 | {
102 | "text": "no I cannot",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 1,
108 | "updated": 0
109 | },
110 | {
111 | "id": "6ca22a00-18d4-420a-9e85-ae952bfc3735",
112 | "data": [
113 | {
114 | "text": "I can\u0027t",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 0,
120 | "updated": 0
121 | },
122 | {
123 | "id": "85feeae0-ad61-444c-8c58-f17e6a92e9a4",
124 | "data": [
125 | {
126 | "text": "nothing",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "3db25696-c442-4255-a3ca-59caa6a59ff1",
136 | "data": [
137 | {
138 | "text": "no that\u0027s okay",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "d747d106-3e9c-4291-a203-909df65075a3",
148 | "data": [
149 | {
150 | "text": "no not really",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "4321d060-7d5b-473d-850f-33e57dcb6f5d",
160 | "data": [
161 | {
162 | "text": "nope not really",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 0,
168 | "updated": 0
169 | },
170 | {
171 | "id": "393651e4-b7e9-4be1-8191-c1b3cf8afb8a",
172 | "data": [
173 | {
174 | "text": "nope",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 1,
180 | "updated": 0
181 | },
182 | {
183 | "id": "661bf487-0e5f-4cfe-957f-cfc4b9f65bd0",
184 | "data": [
185 | {
186 | "text": "thanks but not this time",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 1,
192 | "updated": 0
193 | },
194 | {
195 | "id": "bcb790c8-fbff-4b32-97d2-020fc2d92bee",
196 | "data": [
197 | {
198 | "text": "I don\u0027t think so",
199 | "userDefined": false
200 | }
201 | ],
202 | "isTemplate": false,
203 | "count": 1,
204 | "updated": 0
205 | },
206 | {
207 | "id": "e6282627-2230-42ac-b462-74360458104f",
208 | "data": [
209 | {
210 | "text": "I disagree",
211 | "userDefined": false
212 | }
213 | ],
214 | "isTemplate": false,
215 | "count": 2,
216 | "updated": 0
217 | },
218 | {
219 | "id": "a0e89f9b-905f-4c1c-8847-e472a1990f86",
220 | "data": [
221 | {
222 | "text": "no maybe next time",
223 | "userDefined": false
224 | }
225 | ],
226 | "isTemplate": false,
227 | "count": 0,
228 | "updated": 0
229 | },
230 | {
231 | "id": "d14bf041-1a35-4af6-b229-766499baf4fe",
232 | "data": [
233 | {
234 | "text": "not this time",
235 | "userDefined": false
236 | }
237 | ],
238 | "isTemplate": false,
239 | "count": 0,
240 | "updated": 0
241 | },
242 | {
243 | "id": "211034d5-0f9d-47e2-a8fb-f7b61baf067e",
244 | "data": [
245 | {
246 | "text": "no don\u0027t",
247 | "userDefined": false
248 | }
249 | ],
250 | "isTemplate": false,
251 | "count": 0,
252 | "updated": 0
253 | },
254 | {
255 | "id": "93c9034b-e4b2-4c74-b01d-0d8a3e588701",
256 | "data": [
257 | {
258 | "text": "no we are good",
259 | "userDefined": false
260 | }
261 | ],
262 | "isTemplate": false,
263 | "count": 0,
264 | "updated": 0
265 | },
266 | {
267 | "id": "7315e368-ddb4-4835-8821-ae3cb6714d5b",
268 | "data": [
269 | {
270 | "text": "don\u0027t do it",
271 | "userDefined": false
272 | }
273 | ],
274 | "isTemplate": false,
275 | "count": 3,
276 | "updated": 0
277 | },
278 | {
279 | "id": "e4175e1d-97f2-45f1-97e2-4bc9ab3679a4",
280 | "data": [
281 | {
282 | "text": "no that\u0027s be all",
283 | "userDefined": false
284 | }
285 | ],
286 | "isTemplate": false,
287 | "count": 0,
288 | "updated": 0
289 | },
290 | {
291 | "id": "34358681-adfc-4871-a23e-590d6b883def",
292 | "data": [
293 | {
294 | "text": "not right now",
295 | "userDefined": false
296 | }
297 | ],
298 | "isTemplate": false,
299 | "count": 0,
300 | "updated": 0
301 | },
302 | {
303 | "id": "9fa8a8c1-a8a7-4679-b5ce-9c8303c58e48",
304 | "data": [
305 | {
306 | "text": "nothing else thanks",
307 | "userDefined": false
308 | }
309 | ],
310 | "isTemplate": false,
311 | "count": 0,
312 | "updated": 0
313 | },
314 | {
315 | "id": "9acc976a-38fa-46d0-becc-563a9dfe0051",
316 | "data": [
317 | {
318 | "text": "no thanks",
319 | "userDefined": false
320 | }
321 | ],
322 | "isTemplate": false,
323 | "count": 0,
324 | "updated": 0
325 | },
326 | {
327 | "id": "92c94b97-4d1f-4f09-bcc7-54799e43135d",
328 | "data": [
329 | {
330 | "text": "no that\u0027s ok",
331 | "userDefined": false
332 | }
333 | ],
334 | "isTemplate": false,
335 | "count": 1,
336 | "updated": 0
337 | },
338 | {
339 | "id": "db8e9722-87a2-497a-949c-8110a0a03f65",
340 | "data": [
341 | {
342 | "text": "I don\u0027t want that",
343 | "userDefined": false
344 | }
345 | ],
346 | "isTemplate": false,
347 | "count": 0,
348 | "updated": 0
349 | },
350 | {
351 | "id": "c822e247-2e5d-4726-b0d0-5230b7e384c6",
352 | "data": [
353 | {
354 | "text": "definitely not",
355 | "userDefined": false
356 | }
357 | ],
358 | "isTemplate": false,
359 | "count": 3,
360 | "updated": 0
361 | },
362 | {
363 | "id": "9a10fa48-ef84-481f-96b4-76ae0e2f4cdb",
364 | "data": [
365 | {
366 | "text": "nothing else",
367 | "userDefined": false
368 | }
369 | ],
370 | "isTemplate": false,
371 | "count": 1,
372 | "updated": 0
373 | },
374 | {
375 | "id": "89d222d6-f41d-4225-9ff8-d04e6e435644",
376 | "data": [
377 | {
378 | "text": "not",
379 | "userDefined": false
380 | }
381 | ],
382 | "isTemplate": false,
383 | "count": 0,
384 | "updated": 0
385 | },
386 | {
387 | "id": "68bc6f05-8262-4a6c-89cb-58cf10dd9e40",
388 | "data": [
389 | {
390 | "text": "not at all",
391 | "userDefined": false
392 | }
393 | ],
394 | "isTemplate": false,
395 | "count": 0,
396 | "updated": 0
397 | },
398 | {
399 | "id": "507790be-def7-4f4c-8915-ca25461c522d",
400 | "data": [
401 | {
402 | "text": "no never",
403 | "userDefined": false
404 | }
405 | ],
406 | "isTemplate": false,
407 | "count": 0,
408 | "updated": 0
409 | },
410 | {
411 | "id": "401ad813-670f-4c6a-89e5-02fe50b151a8",
412 | "data": [
413 | {
414 | "text": "never",
415 | "userDefined": false
416 | }
417 | ],
418 | "isTemplate": false,
419 | "count": 0,
420 | "updated": 0
421 | },
422 | {
423 | "id": "beec1c6b-e08c-4304-9803-69f9dca34ea5",
424 | "data": [
425 | {
426 | "text": "no way no",
427 | "userDefined": false
428 | }
429 | ],
430 | "isTemplate": false,
431 | "count": 0,
432 | "updated": 0
433 | },
434 | {
435 | "id": "820e30af-773f-4eff-af43-2dd2a4ac2b30",
436 | "data": [
437 | {
438 | "text": "not really",
439 | "userDefined": false
440 | }
441 | ],
442 | "isTemplate": false,
443 | "count": 0,
444 | "updated": 0
445 | },
446 | {
447 | "id": "7b320630-82d3-4c0a-aca0-5e5feef01414",
448 | "data": [
449 | {
450 | "text": "nah",
451 | "userDefined": false
452 | }
453 | ],
454 | "isTemplate": false,
455 | "count": 2,
456 | "updated": 0
457 | },
458 | {
459 | "id": "6ae6b149-427d-4a15-9243-708f9eca8b6a",
460 | "data": [
461 | {
462 | "text": "I don\u0027t",
463 | "userDefined": false
464 | }
465 | ],
466 | "isTemplate": false,
467 | "count": 0,
468 | "updated": 0
469 | },
470 | {
471 | "id": "07e5fc62-7e8d-4c7b-9422-dfb89330d05f",
472 | "data": [
473 | {
474 | "text": "I don\u0027t want",
475 | "userDefined": false
476 | }
477 | ],
478 | "isTemplate": false,
479 | "count": 0,
480 | "updated": 0
481 | },
482 | {
483 | "id": "493733b9-e82d-451d-ae7a-b112255729fb",
484 | "data": [
485 | {
486 | "text": "not ",
487 | "userDefined": false
488 | },
489 | {
490 | "text": "today",
491 | "meta": "@sys.ignore",
492 | "userDefined": false
493 | }
494 | ],
495 | "isTemplate": false,
496 | "count": 0,
497 | "updated": 0
498 | },
499 | {
500 | "id": "e36c4fb6-c03e-4b6a-9c08-8f0393c96d37",
501 | "data": [
502 | {
503 | "text": "not interested",
504 | "userDefined": false
505 | }
506 | ],
507 | "isTemplate": false,
508 | "count": 0,
509 | "updated": 0
510 | },
511 | {
512 | "id": "8561b5ba-b4f7-49d3-a671-73139ae7d6f8",
513 | "data": [
514 | {
515 | "text": "no that\u0027s fine thank you",
516 | "userDefined": false
517 | }
518 | ],
519 | "isTemplate": false,
520 | "count": 0,
521 | "updated": 0
522 | },
523 | {
524 | "id": "effe4ea8-11be-4195-ba79-57bbd5aec888",
525 | "data": [
526 | {
527 | "text": "I\u0027m not",
528 | "userDefined": false
529 | }
530 | ],
531 | "isTemplate": false,
532 | "count": 3,
533 | "updated": 0
534 | }
535 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_get_seat.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "59b287df-5a46-4fe5-92ec-f40e3a26b971",
3 | "parentId": "7870b960-aabb-404d-a9ac-f46057f12657",
4 | "rootParentId": "7870b960-aabb-404d-a9ac-f46057f12657",
5 | "name": "book_flights_followup_get_seat",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlight-TravelClass",
9 | "BookFlights-GetTravelClass-followup"
10 | ],
11 | "responses": [
12 | {
13 | "resetContexts": false,
14 | "action": "BookFlights-GetTravelClass.BookFlights-GetTravelClass-custom",
15 | "affectedContexts": [
16 | {
17 | "name": "BookFlights-FollowUpGetSeat-followup",
18 | "parameters": {},
19 | "lifespan": 1
20 | }
21 | ],
22 | "parameters": [
23 | {
24 | "id": "7e68aaa3-b15c-4502-b6d3-2a54e80f1585",
25 | "required": false,
26 | "dataType": "@travel_class",
27 | "name": "travel_class",
28 | "value": "$travel_class",
29 | "promptMessages": [],
30 | "noMatchPromptMessages": [],
31 | "noInputPromptMessages": [],
32 | "outputDialogContexts": [],
33 | "isList": false
34 | }
35 | ],
36 | "messages": [
37 | {
38 | "type": "simple_response",
39 | "platform": "google",
40 | "lang": "en",
41 | "condition": "",
42 | "textToSpeech": "Do you want to select seat ?",
43 | "ssml": "",
44 | "displayText": ""
45 | },
46 | {
47 | "type": 0,
48 | "lang": "en",
49 | "condition": "",
50 | "speech": []
51 | }
52 | ],
53 | "defaultResponsePlatforms": {},
54 | "speech": []
55 | }
56 | ],
57 | "priority": 500000,
58 | "webhookUsed": false,
59 | "webhookForSlotFilling": false,
60 | "fallbackIntent": false,
61 | "events": [],
62 | "conditionalResponses": [],
63 | "condition": "",
64 | "conditionalFollowupEvents": []
65 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_get_seat_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "4bac16b2-61c5-4716-9949-16d1adf8ef35",
4 | "data": [
5 | {
6 | "text": "Economy",
7 | "alias": "travel_class",
8 | "meta": "@travel_class",
9 | "userDefined": false
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | },
16 | {
17 | "id": "b0f11c66-033f-4afb-9036-5e8d104a098c",
18 | "data": [
19 | {
20 | "text": "Business",
21 | "alias": "travel_class",
22 | "meta": "@travel_class",
23 | "userDefined": false
24 | }
25 | ],
26 | "isTemplate": false,
27 | "count": 0,
28 | "updated": 0
29 | }
30 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_room_book - no.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "364c4daf-2437-4183-bb7d-7c340ead16bd",
3 | "parentId": "54cb2c7a-052b-468e-a292-e965987450f3",
4 | "rootParentId": "54cb2c7a-052b-468e-a292-e965987450f3",
5 | "name": "book_flights_followup_room_book - no",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlights-RoomBookFollowUp-followup"
9 | ],
10 | "responses": [
11 | {
12 | "resetContexts": false,
13 | "action": "BookFlights-RoomBookFollowUp.BookFlights-RoomBookFollowUp-no",
14 | "affectedContexts": [],
15 | "parameters": [],
16 | "messages": [
17 | {
18 | "type": 0,
19 | "lang": "en",
20 | "condition": "",
21 | "speech": []
22 | }
23 | ],
24 | "defaultResponsePlatforms": {},
25 | "speech": []
26 | }
27 | ],
28 | "priority": 500000,
29 | "webhookUsed": true,
30 | "webhookForSlotFilling": false,
31 | "fallbackIntent": false,
32 | "events": [],
33 | "conditionalResponses": [],
34 | "condition": "",
35 | "conditionalFollowupEvents": []
36 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_room_book - no_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "ffc03e82-eab3-4b87-af31-a2079d4e0537",
4 | "data": [
5 | {
6 | "text": "thanks but no",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "aa093560-2146-4123-9a76-8dab2e6a1ff4",
16 | "data": [
17 | {
18 | "text": "no way",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "71620d96-450e-4e49-94b3-2bfe09c9e71f",
28 | "data": [
29 | {
30 | "text": "no",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 2,
36 | "updated": 0
37 | },
38 | {
39 | "id": "1bb52b57-b821-45ca-ace6-de6c9609e1a3",
40 | "data": [
41 | {
42 | "text": "no no don\u0027t",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "320bc985-3b6b-44d1-99ef-4f610b63fea9",
52 | "data": [
53 | {
54 | "text": "na",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "1c00239d-fc2d-41e7-b698-babf7e50d475",
64 | "data": [
65 | {
66 | "text": "no it isn\u0027t",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "640221e1-4f97-4fbd-98ca-4573f3d3bbbc",
76 | "data": [
77 | {
78 | "text": "don\u0027t",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "dc88771f-a155-472e-b9d6-38dcba93784c",
88 | "data": [
89 | {
90 | "text": "nah I\u0027m good",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 1,
96 | "updated": 0
97 | },
98 | {
99 | "id": "50458e36-cc31-4417-afd6-737ea2988496",
100 | "data": [
101 | {
102 | "text": "no I cannot",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 1,
108 | "updated": 0
109 | },
110 | {
111 | "id": "6ca22a00-18d4-420a-9e85-ae952bfc3735",
112 | "data": [
113 | {
114 | "text": "I can\u0027t",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 0,
120 | "updated": 0
121 | },
122 | {
123 | "id": "85feeae0-ad61-444c-8c58-f17e6a92e9a4",
124 | "data": [
125 | {
126 | "text": "nothing",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "3db25696-c442-4255-a3ca-59caa6a59ff1",
136 | "data": [
137 | {
138 | "text": "no that\u0027s okay",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "d747d106-3e9c-4291-a203-909df65075a3",
148 | "data": [
149 | {
150 | "text": "no not really",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "4321d060-7d5b-473d-850f-33e57dcb6f5d",
160 | "data": [
161 | {
162 | "text": "nope not really",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 0,
168 | "updated": 0
169 | },
170 | {
171 | "id": "393651e4-b7e9-4be1-8191-c1b3cf8afb8a",
172 | "data": [
173 | {
174 | "text": "nope",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 1,
180 | "updated": 0
181 | },
182 | {
183 | "id": "661bf487-0e5f-4cfe-957f-cfc4b9f65bd0",
184 | "data": [
185 | {
186 | "text": "thanks but not this time",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 1,
192 | "updated": 0
193 | },
194 | {
195 | "id": "bcb790c8-fbff-4b32-97d2-020fc2d92bee",
196 | "data": [
197 | {
198 | "text": "I don\u0027t think so",
199 | "userDefined": false
200 | }
201 | ],
202 | "isTemplate": false,
203 | "count": 1,
204 | "updated": 0
205 | },
206 | {
207 | "id": "e6282627-2230-42ac-b462-74360458104f",
208 | "data": [
209 | {
210 | "text": "I disagree",
211 | "userDefined": false
212 | }
213 | ],
214 | "isTemplate": false,
215 | "count": 2,
216 | "updated": 0
217 | },
218 | {
219 | "id": "a0e89f9b-905f-4c1c-8847-e472a1990f86",
220 | "data": [
221 | {
222 | "text": "no maybe next time",
223 | "userDefined": false
224 | }
225 | ],
226 | "isTemplate": false,
227 | "count": 0,
228 | "updated": 0
229 | },
230 | {
231 | "id": "d14bf041-1a35-4af6-b229-766499baf4fe",
232 | "data": [
233 | {
234 | "text": "not this time",
235 | "userDefined": false
236 | }
237 | ],
238 | "isTemplate": false,
239 | "count": 0,
240 | "updated": 0
241 | },
242 | {
243 | "id": "211034d5-0f9d-47e2-a8fb-f7b61baf067e",
244 | "data": [
245 | {
246 | "text": "no don\u0027t",
247 | "userDefined": false
248 | }
249 | ],
250 | "isTemplate": false,
251 | "count": 0,
252 | "updated": 0
253 | },
254 | {
255 | "id": "93c9034b-e4b2-4c74-b01d-0d8a3e588701",
256 | "data": [
257 | {
258 | "text": "no we are good",
259 | "userDefined": false
260 | }
261 | ],
262 | "isTemplate": false,
263 | "count": 0,
264 | "updated": 0
265 | },
266 | {
267 | "id": "7315e368-ddb4-4835-8821-ae3cb6714d5b",
268 | "data": [
269 | {
270 | "text": "don\u0027t do it",
271 | "userDefined": false
272 | }
273 | ],
274 | "isTemplate": false,
275 | "count": 3,
276 | "updated": 0
277 | },
278 | {
279 | "id": "e4175e1d-97f2-45f1-97e2-4bc9ab3679a4",
280 | "data": [
281 | {
282 | "text": "no that\u0027s be all",
283 | "userDefined": false
284 | }
285 | ],
286 | "isTemplate": false,
287 | "count": 0,
288 | "updated": 0
289 | },
290 | {
291 | "id": "34358681-adfc-4871-a23e-590d6b883def",
292 | "data": [
293 | {
294 | "text": "not right now",
295 | "userDefined": false
296 | }
297 | ],
298 | "isTemplate": false,
299 | "count": 0,
300 | "updated": 0
301 | },
302 | {
303 | "id": "9fa8a8c1-a8a7-4679-b5ce-9c8303c58e48",
304 | "data": [
305 | {
306 | "text": "nothing else thanks",
307 | "userDefined": false
308 | }
309 | ],
310 | "isTemplate": false,
311 | "count": 0,
312 | "updated": 0
313 | },
314 | {
315 | "id": "9acc976a-38fa-46d0-becc-563a9dfe0051",
316 | "data": [
317 | {
318 | "text": "no thanks",
319 | "userDefined": false
320 | }
321 | ],
322 | "isTemplate": false,
323 | "count": 0,
324 | "updated": 0
325 | },
326 | {
327 | "id": "92c94b97-4d1f-4f09-bcc7-54799e43135d",
328 | "data": [
329 | {
330 | "text": "no that\u0027s ok",
331 | "userDefined": false
332 | }
333 | ],
334 | "isTemplate": false,
335 | "count": 1,
336 | "updated": 0
337 | },
338 | {
339 | "id": "db8e9722-87a2-497a-949c-8110a0a03f65",
340 | "data": [
341 | {
342 | "text": "I don\u0027t want that",
343 | "userDefined": false
344 | }
345 | ],
346 | "isTemplate": false,
347 | "count": 0,
348 | "updated": 0
349 | },
350 | {
351 | "id": "c822e247-2e5d-4726-b0d0-5230b7e384c6",
352 | "data": [
353 | {
354 | "text": "definitely not",
355 | "userDefined": false
356 | }
357 | ],
358 | "isTemplate": false,
359 | "count": 3,
360 | "updated": 0
361 | },
362 | {
363 | "id": "9a10fa48-ef84-481f-96b4-76ae0e2f4cdb",
364 | "data": [
365 | {
366 | "text": "nothing else",
367 | "userDefined": false
368 | }
369 | ],
370 | "isTemplate": false,
371 | "count": 1,
372 | "updated": 0
373 | },
374 | {
375 | "id": "89d222d6-f41d-4225-9ff8-d04e6e435644",
376 | "data": [
377 | {
378 | "text": "not",
379 | "userDefined": false
380 | }
381 | ],
382 | "isTemplate": false,
383 | "count": 0,
384 | "updated": 0
385 | },
386 | {
387 | "id": "68bc6f05-8262-4a6c-89cb-58cf10dd9e40",
388 | "data": [
389 | {
390 | "text": "not at all",
391 | "userDefined": false
392 | }
393 | ],
394 | "isTemplate": false,
395 | "count": 0,
396 | "updated": 0
397 | },
398 | {
399 | "id": "507790be-def7-4f4c-8915-ca25461c522d",
400 | "data": [
401 | {
402 | "text": "no never",
403 | "userDefined": false
404 | }
405 | ],
406 | "isTemplate": false,
407 | "count": 0,
408 | "updated": 0
409 | },
410 | {
411 | "id": "401ad813-670f-4c6a-89e5-02fe50b151a8",
412 | "data": [
413 | {
414 | "text": "never",
415 | "userDefined": false
416 | }
417 | ],
418 | "isTemplate": false,
419 | "count": 0,
420 | "updated": 0
421 | },
422 | {
423 | "id": "beec1c6b-e08c-4304-9803-69f9dca34ea5",
424 | "data": [
425 | {
426 | "text": "no way no",
427 | "userDefined": false
428 | }
429 | ],
430 | "isTemplate": false,
431 | "count": 0,
432 | "updated": 0
433 | },
434 | {
435 | "id": "820e30af-773f-4eff-af43-2dd2a4ac2b30",
436 | "data": [
437 | {
438 | "text": "not really",
439 | "userDefined": false
440 | }
441 | ],
442 | "isTemplate": false,
443 | "count": 0,
444 | "updated": 0
445 | },
446 | {
447 | "id": "7b320630-82d3-4c0a-aca0-5e5feef01414",
448 | "data": [
449 | {
450 | "text": "nah",
451 | "userDefined": false
452 | }
453 | ],
454 | "isTemplate": false,
455 | "count": 2,
456 | "updated": 0
457 | },
458 | {
459 | "id": "6ae6b149-427d-4a15-9243-708f9eca8b6a",
460 | "data": [
461 | {
462 | "text": "I don\u0027t",
463 | "userDefined": false
464 | }
465 | ],
466 | "isTemplate": false,
467 | "count": 0,
468 | "updated": 0
469 | },
470 | {
471 | "id": "07e5fc62-7e8d-4c7b-9422-dfb89330d05f",
472 | "data": [
473 | {
474 | "text": "I don\u0027t want",
475 | "userDefined": false
476 | }
477 | ],
478 | "isTemplate": false,
479 | "count": 0,
480 | "updated": 0
481 | },
482 | {
483 | "id": "493733b9-e82d-451d-ae7a-b112255729fb",
484 | "data": [
485 | {
486 | "text": "not ",
487 | "userDefined": false
488 | },
489 | {
490 | "text": "today",
491 | "meta": "@sys.ignore",
492 | "userDefined": false
493 | }
494 | ],
495 | "isTemplate": false,
496 | "count": 0,
497 | "updated": 0
498 | },
499 | {
500 | "id": "e36c4fb6-c03e-4b6a-9c08-8f0393c96d37",
501 | "data": [
502 | {
503 | "text": "not interested",
504 | "userDefined": false
505 | }
506 | ],
507 | "isTemplate": false,
508 | "count": 0,
509 | "updated": 0
510 | },
511 | {
512 | "id": "8561b5ba-b4f7-49d3-a671-73139ae7d6f8",
513 | "data": [
514 | {
515 | "text": "no that\u0027s fine thank you",
516 | "userDefined": false
517 | }
518 | ],
519 | "isTemplate": false,
520 | "count": 0,
521 | "updated": 0
522 | },
523 | {
524 | "id": "effe4ea8-11be-4195-ba79-57bbd5aec888",
525 | "data": [
526 | {
527 | "text": "I\u0027m not",
528 | "userDefined": false
529 | }
530 | ],
531 | "isTemplate": false,
532 | "count": 3,
533 | "updated": 0
534 | }
535 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_room_book - yes.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "d1473d66-ad7a-491c-9be4-e1358d66c692",
3 | "parentId": "54cb2c7a-052b-468e-a292-e965987450f3",
4 | "rootParentId": "54cb2c7a-052b-468e-a292-e965987450f3",
5 | "name": "book_flights_followup_room_book - yes",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlights-RoomBookFollowUp-followup"
9 | ],
10 | "responses": [
11 | {
12 | "resetContexts": false,
13 | "action": "BookFlights-RoomBookFollowUp.BookFlights-RoomBookFollowUp-yes",
14 | "affectedContexts": [],
15 | "parameters": [],
16 | "messages": [
17 | {
18 | "type": 0,
19 | "lang": "en",
20 | "condition": "",
21 | "speech": []
22 | }
23 | ],
24 | "defaultResponsePlatforms": {},
25 | "speech": []
26 | }
27 | ],
28 | "priority": 500000,
29 | "webhookUsed": true,
30 | "webhookForSlotFilling": false,
31 | "fallbackIntent": false,
32 | "events": [],
33 | "conditionalResponses": [],
34 | "condition": "",
35 | "conditionalFollowupEvents": []
36 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_room_book - yes_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "8a76441a-8cbd-4b99-8a1f-bb4c1f18dfdc",
4 | "data": [
5 | {
6 | "text": "yes",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 1,
12 | "updated": 0
13 | },
14 | {
15 | "id": "0083ef88-2868-43a8-8944-3e098dd55c7a",
16 | "data": [
17 | {
18 | "text": "okay I will",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 2,
24 | "updated": 0
25 | },
26 | {
27 | "id": "7aac036a-55e5-468a-9f43-c8dbb456ff73",
28 | "data": [
29 | {
30 | "text": "why not",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 0,
36 | "updated": 0
37 | },
38 | {
39 | "id": "89d7ed15-c76c-4cae-af40-053b39489a45",
40 | "data": [
41 | {
42 | "text": "yes that\u0027s alright",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "f4d597c8-d098-46da-89fe-1a12f425cd58",
52 | "data": [
53 | {
54 | "text": "yes I do",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "143c08ba-bb97-40cd-a4de-e7ba7615d210",
64 | "data": [
65 | {
66 | "text": "exactly",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "023894ec-fc8b-4ec1-b8c1-a8bcbb24fc5a",
76 | "data": [
77 | {
78 | "text": "of course",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "9d56f0ca-f4e0-4ea7-9b93-ebebd16edd4c",
88 | "data": [
89 | {
90 | "text": "yep that\u0027s ok",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 0,
96 | "updated": 0
97 | },
98 | {
99 | "id": "d0a3f14b-a1e9-4641-a3e0-8fcb8dc32d85",
100 | "data": [
101 | {
102 | "text": "okay",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 1,
108 | "updated": 0
109 | },
110 | {
111 | "id": "d753b5af-34db-4428-bdba-406fe267000c",
112 | "data": [
113 | {
114 | "text": "ok",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 1,
120 | "updated": 0
121 | },
122 | {
123 | "id": "fd691abb-5b22-4393-9b08-aa9d5bc4b4a6",
124 | "data": [
125 | {
126 | "text": "for sure",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "92fc2708-2b6e-41a1-8553-d13ce4e93f34",
136 | "data": [
137 | {
138 | "text": "sg",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "f1e3a276-ea9e-4e31-85c2-df972bdb409d",
148 | "data": [
149 | {
150 | "text": "yes that\u0027t ok",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "4d27c29e-8adf-4c0f-9512-6a68581c25f2",
160 | "data": [
161 | {
162 | "text": "I agree",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 2,
168 | "updated": 0
169 | },
170 | {
171 | "id": "3cc63bfe-e1b0-47a2-b09a-ad8c0a5e53ec",
172 | "data": [
173 | {
174 | "text": "yes you can do it",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 0,
180 | "updated": 0
181 | },
182 | {
183 | "id": "e4d39a0a-b1fe-42dc-855f-e2ecf1c7a070",
184 | "data": [
185 | {
186 | "text": "I don\u0027t mind",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 3,
192 | "updated": 0
193 | },
194 | {
195 | "id": "b0126bf2-e04d-458f-bf16-d68600a247d8",
196 | "data": [
197 | {
198 | "text": "that one works",
199 | "userDefined": false
200 | }
201 | ],
202 | "isTemplate": false,
203 | "count": 0,
204 | "updated": 0
205 | },
206 | {
207 | "id": "556f1638-b813-4a6d-8a65-6c93ae0b0451",
208 | "data": [
209 | {
210 | "text": "that works",
211 | "userDefined": false
212 | }
213 | ],
214 | "isTemplate": false,
215 | "count": 0,
216 | "updated": 0
217 | },
218 | {
219 | "id": "42ce2151-bbe3-4263-9866-72712a4c25f4",
220 | "data": [
221 | {
222 | "text": "sure why not",
223 | "userDefined": false
224 | }
225 | ],
226 | "isTemplate": false,
227 | "count": 0,
228 | "updated": 0
229 | },
230 | {
231 | "id": "4743b629-c571-4645-bdc2-63269d1c0c66",
232 | "data": [
233 | {
234 | "text": "perfect",
235 | "userDefined": false
236 | }
237 | ],
238 | "isTemplate": false,
239 | "count": 0,
240 | "updated": 0
241 | },
242 | {
243 | "id": "13381537-1e8f-46e1-ac78-6a6bc2fe7d37",
244 | "data": [
245 | {
246 | "text": "yep that\u0027s right",
247 | "userDefined": false
248 | }
249 | ],
250 | "isTemplate": false,
251 | "count": 1,
252 | "updated": 0
253 | },
254 | {
255 | "id": "6d341828-72cd-4f96-89eb-bc5cbcd255dd",
256 | "data": [
257 | {
258 | "text": "I think so",
259 | "userDefined": false
260 | }
261 | ],
262 | "isTemplate": false,
263 | "count": 0,
264 | "updated": 0
265 | },
266 | {
267 | "id": "4320d555-a38f-492d-b1fc-6d16fdc54e79",
268 | "data": [
269 | {
270 | "text": "yes I agree",
271 | "userDefined": false
272 | }
273 | ],
274 | "isTemplate": false,
275 | "count": 1,
276 | "updated": 0
277 | },
278 | {
279 | "id": "68b6cd35-4229-4674-94d6-46615ebab6ba",
280 | "data": [
281 | {
282 | "text": "sure",
283 | "userDefined": false
284 | }
285 | ],
286 | "isTemplate": false,
287 | "count": 2,
288 | "updated": 0
289 | },
290 | {
291 | "id": "eba08d9b-f87d-4232-8874-be4da3029007",
292 | "data": [
293 | {
294 | "text": "sounds correct",
295 | "userDefined": false
296 | }
297 | ],
298 | "isTemplate": false,
299 | "count": 1,
300 | "updated": 0
301 | },
302 | {
303 | "id": "ee5b2ffc-9c14-4a20-9e00-31cb8635c52c",
304 | "data": [
305 | {
306 | "text": "sounds good",
307 | "userDefined": false
308 | }
309 | ],
310 | "isTemplate": false,
311 | "count": 0,
312 | "updated": 0
313 | },
314 | {
315 | "id": "e1f1d448-2705-47b8-92f5-4960656f346b",
316 | "data": [
317 | {
318 | "text": "that\u0027s correct",
319 | "userDefined": false
320 | }
321 | ],
322 | "isTemplate": false,
323 | "count": 0,
324 | "updated": 0
325 | },
326 | {
327 | "id": "50cf224f-9f07-4975-bf7b-441ab549ff6e",
328 | "data": [
329 | {
330 | "text": "go ahead",
331 | "userDefined": false
332 | }
333 | ],
334 | "isTemplate": false,
335 | "count": 1,
336 | "updated": 0
337 | },
338 | {
339 | "id": "1296a391-d3e6-49c8-9eaa-39943cf8544f",
340 | "data": [
341 | {
342 | "text": "do it",
343 | "userDefined": false
344 | }
345 | ],
346 | "isTemplate": false,
347 | "count": 1,
348 | "updated": 0
349 | },
350 | {
351 | "id": "55cd75db-90a7-4daf-947b-ecd03090e8b9",
352 | "data": [
353 | {
354 | "text": "it\u0027s fine",
355 | "userDefined": false
356 | }
357 | ],
358 | "isTemplate": false,
359 | "count": 0,
360 | "updated": 0
361 | },
362 | {
363 | "id": "1fe10ef0-0823-4efa-b4ef-730bc1f931b3",
364 | "data": [
365 | {
366 | "text": "yeah",
367 | "userDefined": false
368 | }
369 | ],
370 | "isTemplate": false,
371 | "count": 0,
372 | "updated": 0
373 | },
374 | {
375 | "id": "4a8d741c-808c-45f8-bf90-ab32b99e0060",
376 | "data": [
377 | {
378 | "text": "yes please",
379 | "userDefined": false
380 | }
381 | ],
382 | "isTemplate": false,
383 | "count": 0,
384 | "updated": 0
385 | },
386 | {
387 | "id": "a05b793f-9a1d-460d-b1b6-c1a5b98d24d9",
388 | "data": [
389 | {
390 | "text": "it\u0027s okay",
391 | "userDefined": false
392 | }
393 | ],
394 | "isTemplate": false,
395 | "count": 0,
396 | "updated": 0
397 | },
398 | {
399 | "id": "88a721b8-99ce-4a51-bf78-f106361f402a",
400 | "data": [
401 | {
402 | "text": "alright why not",
403 | "userDefined": false
404 | }
405 | ],
406 | "isTemplate": false,
407 | "count": 0,
408 | "updated": 0
409 | },
410 | {
411 | "id": "df7428d3-7f27-40c7-b0d0-3456d0c8df91",
412 | "data": [
413 | {
414 | "text": "alright",
415 | "userDefined": false
416 | }
417 | ],
418 | "isTemplate": false,
419 | "count": 0,
420 | "updated": 0
421 | },
422 | {
423 | "id": "8f9f71af-76ec-424f-b28a-ece5b6f1dc95",
424 | "data": [
425 | {
426 | "text": "right",
427 | "userDefined": false
428 | }
429 | ],
430 | "isTemplate": false,
431 | "count": 0,
432 | "updated": 0
433 | },
434 | {
435 | "id": "96b0889c-e64c-4ba3-83d3-495a0385917a",
436 | "data": [
437 | {
438 | "text": "it looks perfect",
439 | "userDefined": false
440 | }
441 | ],
442 | "isTemplate": false,
443 | "count": 0,
444 | "updated": 0
445 | },
446 | {
447 | "id": "5a7c1865-6c90-4c93-8ea5-b7cacad6dcef",
448 | "data": [
449 | {
450 | "text": "yes I can",
451 | "userDefined": false
452 | }
453 | ],
454 | "isTemplate": false,
455 | "count": 0,
456 | "updated": 0
457 | },
458 | {
459 | "id": "ab7709c6-2eca-4ecf-812d-1e4527f1e709",
460 | "data": [
461 | {
462 | "text": "yup",
463 | "userDefined": false
464 | }
465 | ],
466 | "isTemplate": false,
467 | "count": 0,
468 | "updated": 0
469 | },
470 | {
471 | "id": "3312fe28-dfeb-4fa6-98f6-9569c6cb393f",
472 | "data": [
473 | {
474 | "text": "yep",
475 | "userDefined": false
476 | }
477 | ],
478 | "isTemplate": false,
479 | "count": 0,
480 | "updated": 0
481 | },
482 | {
483 | "id": "e826ff4d-875d-4073-89c5-1dba1203e3ce",
484 | "data": [
485 | {
486 | "text": "confirm",
487 | "userDefined": false
488 | }
489 | ],
490 | "isTemplate": false,
491 | "count": 1,
492 | "updated": 0
493 | },
494 | {
495 | "id": "29adab5b-d5e3-450b-b385-1538d0ad21da",
496 | "data": [
497 | {
498 | "text": "absolutely",
499 | "userDefined": false
500 | }
501 | ],
502 | "isTemplate": false,
503 | "count": 1,
504 | "updated": 0
505 | }
506 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_room_book.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "54cb2c7a-052b-468e-a292-e965987450f3",
3 | "name": "book_flights_followup_room_book",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlights-RoomBook"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "action": "BookFlights.BookFlights-custom",
12 | "affectedContexts": [
13 | {
14 | "name": "BookFlights-RoomBookFollowUp-followup",
15 | "parameters": {},
16 | "lifespan": 1
17 | }
18 | ],
19 | "parameters": [
20 | {
21 | "id": "c9d40486-6215-46a6-ba6f-af35c968ce64",
22 | "required": false,
23 | "dataType": "@sys.date",
24 | "name": "date",
25 | "value": "$date",
26 | "promptMessages": [],
27 | "noMatchPromptMessages": [],
28 | "noInputPromptMessages": [],
29 | "outputDialogContexts": [],
30 | "defaultValue": "#session_vars.date",
31 | "isList": false
32 | },
33 | {
34 | "id": "46718f2e-9c19-40fa-b307-cbb2eafb3e1d",
35 | "required": true,
36 | "dataType": "@sys.geo-city",
37 | "name": "geo-city",
38 | "value": "$geo-city",
39 | "promptMessages": [],
40 | "noMatchPromptMessages": [],
41 | "noInputPromptMessages": [],
42 | "outputDialogContexts": [],
43 | "defaultValue": "#session_vars.geo-city1",
44 | "isList": false
45 | }
46 | ],
47 | "messages": [
48 | {
49 | "type": "simple_response",
50 | "platform": "google",
51 | "lang": "en",
52 | "condition": "",
53 | "textToSpeech": "Do you want to book room for $geo-city ?",
54 | "ssml": "",
55 | "displayText": ""
56 | },
57 | {
58 | "type": 0,
59 | "lang": "en",
60 | "condition": "",
61 | "speech": "Session Vards"
62 | }
63 | ],
64 | "defaultResponsePlatforms": {},
65 | "speech": []
66 | }
67 | ],
68 | "priority": 500000,
69 | "webhookUsed": true,
70 | "webhookForSlotFilling": false,
71 | "fallbackIntent": false,
72 | "events": [],
73 | "conditionalResponses": [],
74 | "condition": "",
75 | "conditionalFollowupEvents": []
76 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_followup_room_book_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "867962bf-3b42-4675-b7ec-fbe617defbf3",
4 | "data": [
5 | {
6 | "text": "Book a room",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "32c4c738-fcb0-4a60-b050-75eeb2d1930e",
16 | "data": [
17 | {
18 | "text": "Please book a room as well",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "71c3975a-f662-417e-b909-be4873935319",
28 | "data": [
29 | {
30 | "text": "I want to book a hotel room in ",
31 | "userDefined": false
32 | },
33 | {
34 | "text": "delhi",
35 | "alias": "geo-city",
36 | "meta": "@sys.geo-city",
37 | "userDefined": false
38 | }
39 | ],
40 | "isTemplate": false,
41 | "count": 0,
42 | "updated": 0
43 | },
44 | {
45 | "id": "c5c10287-33d5-4bf6-a9d1-a8a278dbf4be",
46 | "data": [
47 | {
48 | "text": "Book a hotel room",
49 | "userDefined": false
50 | }
51 | ],
52 | "isTemplate": false,
53 | "count": 0,
54 | "updated": 0
55 | }
56 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_get_date.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "b6aabbe0-12c5-4191-97b8-5ae193a93ab1",
3 | "name": "book_flights_get_date",
4 | "auto": true,
5 | "contexts": [
6 | "flight_context"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "action": "slotFillingFlight",
12 | "affectedContexts": [
13 | {
14 | "name": "BookFlights-Date",
15 | "parameters": {},
16 | "lifespan": 1
17 | },
18 | {
19 | "name": "session_vars",
20 | "parameters": {},
21 | "lifespan": 50
22 | }
23 | ],
24 | "parameters": [
25 | {
26 | "id": "1af02030-2dc8-4836-ac52-a34bc208dcaf",
27 | "required": false,
28 | "dataType": "@sys.geo-city",
29 | "name": "geo-city1",
30 | "value": "$geo-city1",
31 | "promptMessages": [],
32 | "noMatchPromptMessages": [],
33 | "noInputPromptMessages": [],
34 | "outputDialogContexts": [],
35 | "defaultValue": "#flight_context.geo-city1",
36 | "isList": false
37 | },
38 | {
39 | "id": "d8f9209a-88ed-4a93-a61c-ebf36607baf1",
40 | "required": false,
41 | "dataType": "",
42 | "name": "geo-city",
43 | "value": "#flight_context.geo-city",
44 | "promptMessages": [],
45 | "noMatchPromptMessages": [],
46 | "noInputPromptMessages": [],
47 | "outputDialogContexts": [],
48 | "isList": false
49 | }
50 | ],
51 | "messages": [
52 | {
53 | "type": "simple_response",
54 | "platform": "google",
55 | "lang": "en",
56 | "condition": "",
57 | "textToSpeech": "For when you want to book flight ?",
58 | "ssml": "",
59 | "displayText": ""
60 | },
61 | {
62 | "type": "suggestion_chips",
63 | "platform": "google",
64 | "lang": "en",
65 | "condition": "",
66 | "suggestions": [
67 | {
68 | "title": "Today"
69 | },
70 | {
71 | "title": "Tomorrow"
72 | },
73 | {
74 | "title": "Friday"
75 | }
76 | ]
77 | },
78 | {
79 | "type": 0,
80 | "lang": "en",
81 | "condition": "",
82 | "speech": []
83 | }
84 | ],
85 | "defaultResponsePlatforms": {},
86 | "speech": []
87 | }
88 | ],
89 | "priority": 500000,
90 | "webhookUsed": false,
91 | "webhookForSlotFilling": false,
92 | "fallbackIntent": false,
93 | "events": [
94 | {
95 | "name": "flight_date_event"
96 | }
97 | ],
98 | "conditionalResponses": [],
99 | "condition": "",
100 | "conditionalFollowupEvents": []
101 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_get_date_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "00f1507c-aebd-4cb0-b7c2-0fa26167957d",
4 | "data": [
5 | {
6 | "text": "Banglore",
7 | "alias": "geo-city1",
8 | "meta": "@sys.geo-city",
9 | "userDefined": false
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | }
16 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_get_destination.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "8a1e2fd5-85e6-463a-bd65-867123c8385e",
3 | "name": "book_flights_get_destination",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "affectedContexts": [
10 | {
11 | "name": "flight_context",
12 | "parameters": {},
13 | "lifespan": 1
14 | }
15 | ],
16 | "parameters": [
17 | {
18 | "id": "18425ab2-4511-4a68-8f4b-4ebd7e0cf860",
19 | "required": false,
20 | "dataType": "",
21 | "name": "geo-city",
22 | "value": "#flight_destination_event.geo-city",
23 | "promptMessages": [],
24 | "noMatchPromptMessages": [],
25 | "noInputPromptMessages": [],
26 | "outputDialogContexts": [],
27 | "isList": false
28 | }
29 | ],
30 | "messages": [
31 | {
32 | "type": "simple_response",
33 | "platform": "google",
34 | "lang": "en",
35 | "condition": "",
36 | "textToSpeech": "What\u0027s the destination of flight ?",
37 | "ssml": "",
38 | "displayText": ""
39 | },
40 | {
41 | "type": "suggestion_chips",
42 | "platform": "google",
43 | "lang": "en",
44 | "condition": "",
45 | "suggestions": [
46 | {
47 | "title": "Delhi"
48 | },
49 | {
50 | "title": "Mumbai"
51 | }
52 | ]
53 | },
54 | {
55 | "type": 0,
56 | "lang": "en",
57 | "condition": "",
58 | "speech": []
59 | }
60 | ],
61 | "defaultResponsePlatforms": {},
62 | "speech": []
63 | }
64 | ],
65 | "priority": 500000,
66 | "webhookUsed": false,
67 | "webhookForSlotFilling": false,
68 | "fallbackIntent": false,
69 | "events": [
70 | {
71 | "name": "flight_destination_event"
72 | }
73 | ],
74 | "conditionalResponses": [],
75 | "condition": "",
76 | "conditionalFollowupEvents": []
77 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_get_seatno.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "92704677-4003-4136-bbc2-e6fb11f56725",
3 | "name": "book_flights_get_seatno",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "affectedContexts": [
10 | {
11 | "name": "BookFlight-Seat",
12 | "parameters": {},
13 | "lifespan": 1
14 | }
15 | ],
16 | "parameters": [
17 | {
18 | "id": "62b5824f-bac1-4759-9902-f92b974bf597",
19 | "required": false,
20 | "dataType": "@sys.geo-city",
21 | "name": "geo-city",
22 | "value": "$geo-city",
23 | "promptMessages": [],
24 | "noMatchPromptMessages": [],
25 | "noInputPromptMessages": [],
26 | "outputDialogContexts": [],
27 | "defaultValue": "#session_vars.geo-city",
28 | "isList": false
29 | },
30 | {
31 | "id": "19964a60-08a0-4331-95da-d652329f9396",
32 | "required": false,
33 | "dataType": "@sys.geo-city",
34 | "name": "geo-city1",
35 | "value": "$geo-city1",
36 | "promptMessages": [],
37 | "noMatchPromptMessages": [],
38 | "noInputPromptMessages": [],
39 | "outputDialogContexts": [],
40 | "defaultValue": "#session_vars.geo-city1",
41 | "isList": false
42 | },
43 | {
44 | "id": "da276c50-c445-42fa-ad34-53c66cbf4d83",
45 | "required": false,
46 | "dataType": "@travel_class",
47 | "name": "travel_class",
48 | "value": "$travel_class",
49 | "promptMessages": [],
50 | "noMatchPromptMessages": [],
51 | "noInputPromptMessages": [],
52 | "outputDialogContexts": [],
53 | "defaultValue": "#session_vars.travel_class",
54 | "isList": false
55 | }
56 | ],
57 | "messages": [
58 | {
59 | "type": "simple_response",
60 | "platform": "google",
61 | "lang": "en",
62 | "condition": "",
63 | "textToSpeech": "Awesome, please select your seat for flight from $geo-city to $geo-city1 for $travel_class ?\n\nA | 1 2 3 4 5 6\nB | 1 2 3 4 5 6\nC | 1 2 3 4 5 6",
64 | "ssml": "",
65 | "displayText": ""
66 | },
67 | {
68 | "type": 0,
69 | "lang": "en",
70 | "condition": "",
71 | "speech": "Hello"
72 | }
73 | ],
74 | "defaultResponsePlatforms": {},
75 | "speech": []
76 | }
77 | ],
78 | "priority": 500000,
79 | "webhookUsed": false,
80 | "webhookForSlotFilling": false,
81 | "fallbackIntent": false,
82 | "events": [
83 | {
84 | "name": "flight_seat_event"
85 | }
86 | ],
87 | "conditionalResponses": [],
88 | "condition": "",
89 | "conditionalFollowupEvents": []
90 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_get_travelclass.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "7870b960-aabb-404d-a9ac-f46057f12657",
3 | "name": "book_flights_get_travelclass",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlights-Date"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [
12 | {
13 | "name": "BookFlight-TravelClass",
14 | "parameters": {},
15 | "lifespan": 1
16 | },
17 | {
18 | "name": "BookFlights-GetTravelClass-followup",
19 | "parameters": {},
20 | "lifespan": 1
21 | },
22 | {
23 | "name": "BookFlight-NotToday-Option",
24 | "parameters": {},
25 | "lifespan": 1
26 | }
27 | ],
28 | "parameters": [
29 | {
30 | "id": "715ea87d-c3ed-4391-b9a3-ecc2ac7d11ed",
31 | "required": false,
32 | "dataType": "@sys.date",
33 | "name": "date",
34 | "value": "$date",
35 | "promptMessages": [],
36 | "noMatchPromptMessages": [],
37 | "noInputPromptMessages": [],
38 | "outputDialogContexts": [],
39 | "isList": false
40 | }
41 | ],
42 | "messages": [
43 | {
44 | "type": "simple_response",
45 | "platform": "google",
46 | "lang": "en",
47 | "condition": "",
48 | "textToSpeech": "Which class do you want travel ?",
49 | "ssml": "",
50 | "displayText": ""
51 | },
52 | {
53 | "type": "suggestion_chips",
54 | "platform": "google",
55 | "lang": "en",
56 | "condition": "",
57 | "suggestions": [
58 | {
59 | "title": "Economy"
60 | },
61 | {
62 | "title": "Business"
63 | },
64 | {
65 | "title": "Change destination"
66 | },
67 | {
68 | "title": "Start Over"
69 | }
70 | ]
71 | },
72 | {
73 | "type": 0,
74 | "lang": "en",
75 | "condition": "",
76 | "speech": []
77 | }
78 | ],
79 | "defaultResponsePlatforms": {},
80 | "speech": []
81 | }
82 | ],
83 | "priority": 500000,
84 | "webhookUsed": false,
85 | "webhookForSlotFilling": false,
86 | "fallbackIntent": false,
87 | "events": [],
88 | "conditionalResponses": [],
89 | "condition": "",
90 | "conditionalFollowupEvents": []
91 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_get_travelclass_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "62be84a0-e636-4f1f-8734-3c63cdef26a3",
4 | "data": [
5 | {
6 | "text": "June 13, 2020",
7 | "alias": "date",
8 | "meta": "@sys.date",
9 | "userDefined": true
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | },
16 | {
17 | "id": "640feb86-f76d-46d7-a283-746bb5eef20a",
18 | "data": [
19 | {
20 | "text": "TOmorrow",
21 | "alias": "date",
22 | "meta": "@sys.date",
23 | "userDefined": true
24 | }
25 | ],
26 | "isTemplate": false,
27 | "count": 0,
28 | "updated": 0
29 | }
30 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_incorrect_seatno.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "166eb215-d08c-49bb-93d1-1e13b22d43b4",
3 | "name": "book_flights_incorrect_seatno",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlight-Seat"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [
12 | {
13 | "name": "BookFlight-Seat",
14 | "parameters": {},
15 | "lifespan": 1
16 | }
17 | ],
18 | "parameters": [],
19 | "messages": [
20 | {
21 | "type": 0,
22 | "lang": "en",
23 | "condition": "",
24 | "speech": []
25 | }
26 | ],
27 | "defaultResponsePlatforms": {},
28 | "speech": []
29 | }
30 | ],
31 | "priority": 500000,
32 | "webhookUsed": true,
33 | "webhookForSlotFilling": false,
34 | "fallbackIntent": true,
35 | "events": [],
36 | "conditionalResponses": [],
37 | "condition": "",
38 | "conditionalFollowupEvents": []
39 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_conf_room_book-no.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "023cea4c-121d-495a-a806-2da5116dc0e2",
3 | "parentId": "19af06f8-1743-4cf6-986e-edd44b02c1ee",
4 | "rootParentId": "19af06f8-1743-4cf6-986e-edd44b02c1ee",
5 | "name": "book_flights_payment_conf_room_book-no",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlights-PaymentConfirmation-followup"
9 | ],
10 | "responses": [
11 | {
12 | "resetContexts": false,
13 | "action": "BookFlights-PaymentConfirmation.BookFlights-PaymentConfirmation-no",
14 | "affectedContexts": [
15 | {
16 | "name": "BookFlights-RoomBook",
17 | "parameters": {},
18 | "lifespan": 1
19 | }
20 | ],
21 | "parameters": [],
22 | "messages": [
23 | {
24 | "type": 0,
25 | "lang": "en",
26 | "condition": "",
27 | "speech": []
28 | }
29 | ],
30 | "defaultResponsePlatforms": {},
31 | "speech": []
32 | }
33 | ],
34 | "priority": 500000,
35 | "webhookUsed": true,
36 | "webhookForSlotFilling": false,
37 | "fallbackIntent": false,
38 | "events": [],
39 | "conditionalResponses": [],
40 | "condition": "",
41 | "conditionalFollowupEvents": []
42 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_conf_room_book-no_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "ffc03e82-eab3-4b87-af31-a2079d4e0537",
4 | "data": [
5 | {
6 | "text": "thanks but no",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "aa093560-2146-4123-9a76-8dab2e6a1ff4",
16 | "data": [
17 | {
18 | "text": "no way",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "71620d96-450e-4e49-94b3-2bfe09c9e71f",
28 | "data": [
29 | {
30 | "text": "no",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 2,
36 | "updated": 0
37 | },
38 | {
39 | "id": "1bb52b57-b821-45ca-ace6-de6c9609e1a3",
40 | "data": [
41 | {
42 | "text": "no no don\u0027t",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "320bc985-3b6b-44d1-99ef-4f610b63fea9",
52 | "data": [
53 | {
54 | "text": "na",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "1c00239d-fc2d-41e7-b698-babf7e50d475",
64 | "data": [
65 | {
66 | "text": "no it isn\u0027t",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "640221e1-4f97-4fbd-98ca-4573f3d3bbbc",
76 | "data": [
77 | {
78 | "text": "don\u0027t",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "dc88771f-a155-472e-b9d6-38dcba93784c",
88 | "data": [
89 | {
90 | "text": "nah I\u0027m good",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 1,
96 | "updated": 0
97 | },
98 | {
99 | "id": "50458e36-cc31-4417-afd6-737ea2988496",
100 | "data": [
101 | {
102 | "text": "no I cannot",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 1,
108 | "updated": 0
109 | },
110 | {
111 | "id": "6ca22a00-18d4-420a-9e85-ae952bfc3735",
112 | "data": [
113 | {
114 | "text": "I can\u0027t",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 0,
120 | "updated": 0
121 | },
122 | {
123 | "id": "85feeae0-ad61-444c-8c58-f17e6a92e9a4",
124 | "data": [
125 | {
126 | "text": "nothing",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "3db25696-c442-4255-a3ca-59caa6a59ff1",
136 | "data": [
137 | {
138 | "text": "no that\u0027s okay",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "d747d106-3e9c-4291-a203-909df65075a3",
148 | "data": [
149 | {
150 | "text": "no not really",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "4321d060-7d5b-473d-850f-33e57dcb6f5d",
160 | "data": [
161 | {
162 | "text": "nope not really",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 0,
168 | "updated": 0
169 | },
170 | {
171 | "id": "393651e4-b7e9-4be1-8191-c1b3cf8afb8a",
172 | "data": [
173 | {
174 | "text": "nope",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 1,
180 | "updated": 0
181 | },
182 | {
183 | "id": "661bf487-0e5f-4cfe-957f-cfc4b9f65bd0",
184 | "data": [
185 | {
186 | "text": "thanks but not this time",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 1,
192 | "updated": 0
193 | },
194 | {
195 | "id": "bcb790c8-fbff-4b32-97d2-020fc2d92bee",
196 | "data": [
197 | {
198 | "text": "I don\u0027t think so",
199 | "userDefined": false
200 | }
201 | ],
202 | "isTemplate": false,
203 | "count": 1,
204 | "updated": 0
205 | },
206 | {
207 | "id": "e6282627-2230-42ac-b462-74360458104f",
208 | "data": [
209 | {
210 | "text": "I disagree",
211 | "userDefined": false
212 | }
213 | ],
214 | "isTemplate": false,
215 | "count": 2,
216 | "updated": 0
217 | },
218 | {
219 | "id": "a0e89f9b-905f-4c1c-8847-e472a1990f86",
220 | "data": [
221 | {
222 | "text": "no maybe next time",
223 | "userDefined": false
224 | }
225 | ],
226 | "isTemplate": false,
227 | "count": 0,
228 | "updated": 0
229 | },
230 | {
231 | "id": "d14bf041-1a35-4af6-b229-766499baf4fe",
232 | "data": [
233 | {
234 | "text": "not this time",
235 | "userDefined": false
236 | }
237 | ],
238 | "isTemplate": false,
239 | "count": 0,
240 | "updated": 0
241 | },
242 | {
243 | "id": "211034d5-0f9d-47e2-a8fb-f7b61baf067e",
244 | "data": [
245 | {
246 | "text": "no don\u0027t",
247 | "userDefined": false
248 | }
249 | ],
250 | "isTemplate": false,
251 | "count": 0,
252 | "updated": 0
253 | },
254 | {
255 | "id": "93c9034b-e4b2-4c74-b01d-0d8a3e588701",
256 | "data": [
257 | {
258 | "text": "no we are good",
259 | "userDefined": false
260 | }
261 | ],
262 | "isTemplate": false,
263 | "count": 0,
264 | "updated": 0
265 | },
266 | {
267 | "id": "7315e368-ddb4-4835-8821-ae3cb6714d5b",
268 | "data": [
269 | {
270 | "text": "don\u0027t do it",
271 | "userDefined": false
272 | }
273 | ],
274 | "isTemplate": false,
275 | "count": 3,
276 | "updated": 0
277 | },
278 | {
279 | "id": "e4175e1d-97f2-45f1-97e2-4bc9ab3679a4",
280 | "data": [
281 | {
282 | "text": "no that\u0027s be all",
283 | "userDefined": false
284 | }
285 | ],
286 | "isTemplate": false,
287 | "count": 0,
288 | "updated": 0
289 | },
290 | {
291 | "id": "34358681-adfc-4871-a23e-590d6b883def",
292 | "data": [
293 | {
294 | "text": "not right now",
295 | "userDefined": false
296 | }
297 | ],
298 | "isTemplate": false,
299 | "count": 0,
300 | "updated": 0
301 | },
302 | {
303 | "id": "9fa8a8c1-a8a7-4679-b5ce-9c8303c58e48",
304 | "data": [
305 | {
306 | "text": "nothing else thanks",
307 | "userDefined": false
308 | }
309 | ],
310 | "isTemplate": false,
311 | "count": 0,
312 | "updated": 0
313 | },
314 | {
315 | "id": "9acc976a-38fa-46d0-becc-563a9dfe0051",
316 | "data": [
317 | {
318 | "text": "no thanks",
319 | "userDefined": false
320 | }
321 | ],
322 | "isTemplate": false,
323 | "count": 0,
324 | "updated": 0
325 | },
326 | {
327 | "id": "92c94b97-4d1f-4f09-bcc7-54799e43135d",
328 | "data": [
329 | {
330 | "text": "no that\u0027s ok",
331 | "userDefined": false
332 | }
333 | ],
334 | "isTemplate": false,
335 | "count": 1,
336 | "updated": 0
337 | },
338 | {
339 | "id": "db8e9722-87a2-497a-949c-8110a0a03f65",
340 | "data": [
341 | {
342 | "text": "I don\u0027t want that",
343 | "userDefined": false
344 | }
345 | ],
346 | "isTemplate": false,
347 | "count": 0,
348 | "updated": 0
349 | },
350 | {
351 | "id": "c822e247-2e5d-4726-b0d0-5230b7e384c6",
352 | "data": [
353 | {
354 | "text": "definitely not",
355 | "userDefined": false
356 | }
357 | ],
358 | "isTemplate": false,
359 | "count": 3,
360 | "updated": 0
361 | },
362 | {
363 | "id": "9a10fa48-ef84-481f-96b4-76ae0e2f4cdb",
364 | "data": [
365 | {
366 | "text": "nothing else",
367 | "userDefined": false
368 | }
369 | ],
370 | "isTemplate": false,
371 | "count": 1,
372 | "updated": 0
373 | },
374 | {
375 | "id": "89d222d6-f41d-4225-9ff8-d04e6e435644",
376 | "data": [
377 | {
378 | "text": "not",
379 | "userDefined": false
380 | }
381 | ],
382 | "isTemplate": false,
383 | "count": 0,
384 | "updated": 0
385 | },
386 | {
387 | "id": "68bc6f05-8262-4a6c-89cb-58cf10dd9e40",
388 | "data": [
389 | {
390 | "text": "not at all",
391 | "userDefined": false
392 | }
393 | ],
394 | "isTemplate": false,
395 | "count": 0,
396 | "updated": 0
397 | },
398 | {
399 | "id": "507790be-def7-4f4c-8915-ca25461c522d",
400 | "data": [
401 | {
402 | "text": "no never",
403 | "userDefined": false
404 | }
405 | ],
406 | "isTemplate": false,
407 | "count": 0,
408 | "updated": 0
409 | },
410 | {
411 | "id": "401ad813-670f-4c6a-89e5-02fe50b151a8",
412 | "data": [
413 | {
414 | "text": "never",
415 | "userDefined": false
416 | }
417 | ],
418 | "isTemplate": false,
419 | "count": 0,
420 | "updated": 0
421 | },
422 | {
423 | "id": "beec1c6b-e08c-4304-9803-69f9dca34ea5",
424 | "data": [
425 | {
426 | "text": "no way no",
427 | "userDefined": false
428 | }
429 | ],
430 | "isTemplate": false,
431 | "count": 0,
432 | "updated": 0
433 | },
434 | {
435 | "id": "820e30af-773f-4eff-af43-2dd2a4ac2b30",
436 | "data": [
437 | {
438 | "text": "not really",
439 | "userDefined": false
440 | }
441 | ],
442 | "isTemplate": false,
443 | "count": 0,
444 | "updated": 0
445 | },
446 | {
447 | "id": "7b320630-82d3-4c0a-aca0-5e5feef01414",
448 | "data": [
449 | {
450 | "text": "nah",
451 | "userDefined": false
452 | }
453 | ],
454 | "isTemplate": false,
455 | "count": 2,
456 | "updated": 0
457 | },
458 | {
459 | "id": "6ae6b149-427d-4a15-9243-708f9eca8b6a",
460 | "data": [
461 | {
462 | "text": "I don\u0027t",
463 | "userDefined": false
464 | }
465 | ],
466 | "isTemplate": false,
467 | "count": 0,
468 | "updated": 0
469 | },
470 | {
471 | "id": "07e5fc62-7e8d-4c7b-9422-dfb89330d05f",
472 | "data": [
473 | {
474 | "text": "I don\u0027t want",
475 | "userDefined": false
476 | }
477 | ],
478 | "isTemplate": false,
479 | "count": 0,
480 | "updated": 0
481 | },
482 | {
483 | "id": "493733b9-e82d-451d-ae7a-b112255729fb",
484 | "data": [
485 | {
486 | "text": "not ",
487 | "userDefined": false
488 | },
489 | {
490 | "text": "today",
491 | "meta": "@sys.ignore",
492 | "userDefined": false
493 | }
494 | ],
495 | "isTemplate": false,
496 | "count": 0,
497 | "updated": 0
498 | },
499 | {
500 | "id": "e36c4fb6-c03e-4b6a-9c08-8f0393c96d37",
501 | "data": [
502 | {
503 | "text": "not interested",
504 | "userDefined": false
505 | }
506 | ],
507 | "isTemplate": false,
508 | "count": 0,
509 | "updated": 0
510 | },
511 | {
512 | "id": "8561b5ba-b4f7-49d3-a671-73139ae7d6f8",
513 | "data": [
514 | {
515 | "text": "no that\u0027s fine thank you",
516 | "userDefined": false
517 | }
518 | ],
519 | "isTemplate": false,
520 | "count": 0,
521 | "updated": 0
522 | },
523 | {
524 | "id": "effe4ea8-11be-4195-ba79-57bbd5aec888",
525 | "data": [
526 | {
527 | "text": "I\u0027m not",
528 | "userDefined": false
529 | }
530 | ],
531 | "isTemplate": false,
532 | "count": 3,
533 | "updated": 0
534 | }
535 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_conf_room_book-yes.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "5ff6e2d9-6979-40de-adaf-d08fe26cbe75",
3 | "parentId": "19af06f8-1743-4cf6-986e-edd44b02c1ee",
4 | "rootParentId": "19af06f8-1743-4cf6-986e-edd44b02c1ee",
5 | "name": "book_flights_payment_conf_room_book-yes",
6 | "auto": true,
7 | "contexts": [
8 | "BookFlights-PaymentConfirmation-followup"
9 | ],
10 | "responses": [
11 | {
12 | "resetContexts": false,
13 | "action": "BookFlights-PaymentConfirmation.BookFlights-PaymentConfirmation-yes",
14 | "affectedContexts": [],
15 | "parameters": [],
16 | "messages": [
17 | {
18 | "type": 0,
19 | "lang": "en",
20 | "condition": "",
21 | "speech": []
22 | }
23 | ],
24 | "defaultResponsePlatforms": {},
25 | "speech": []
26 | }
27 | ],
28 | "priority": 500000,
29 | "webhookUsed": true,
30 | "webhookForSlotFilling": false,
31 | "fallbackIntent": false,
32 | "events": [],
33 | "conditionalResponses": [],
34 | "condition": "",
35 | "conditionalFollowupEvents": []
36 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_conf_room_book-yes_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "8a76441a-8cbd-4b99-8a1f-bb4c1f18dfdc",
4 | "data": [
5 | {
6 | "text": "yes",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 1,
12 | "updated": 0
13 | },
14 | {
15 | "id": "0083ef88-2868-43a8-8944-3e098dd55c7a",
16 | "data": [
17 | {
18 | "text": "okay I will",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 2,
24 | "updated": 0
25 | },
26 | {
27 | "id": "7aac036a-55e5-468a-9f43-c8dbb456ff73",
28 | "data": [
29 | {
30 | "text": "why not",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 0,
36 | "updated": 0
37 | },
38 | {
39 | "id": "89d7ed15-c76c-4cae-af40-053b39489a45",
40 | "data": [
41 | {
42 | "text": "yes that\u0027s alright",
43 | "userDefined": false
44 | }
45 | ],
46 | "isTemplate": false,
47 | "count": 0,
48 | "updated": 0
49 | },
50 | {
51 | "id": "f4d597c8-d098-46da-89fe-1a12f425cd58",
52 | "data": [
53 | {
54 | "text": "yes I do",
55 | "userDefined": false
56 | }
57 | ],
58 | "isTemplate": false,
59 | "count": 0,
60 | "updated": 0
61 | },
62 | {
63 | "id": "143c08ba-bb97-40cd-a4de-e7ba7615d210",
64 | "data": [
65 | {
66 | "text": "exactly",
67 | "userDefined": false
68 | }
69 | ],
70 | "isTemplate": false,
71 | "count": 1,
72 | "updated": 0
73 | },
74 | {
75 | "id": "023894ec-fc8b-4ec1-b8c1-a8bcbb24fc5a",
76 | "data": [
77 | {
78 | "text": "of course",
79 | "userDefined": false
80 | }
81 | ],
82 | "isTemplate": false,
83 | "count": 0,
84 | "updated": 0
85 | },
86 | {
87 | "id": "9d56f0ca-f4e0-4ea7-9b93-ebebd16edd4c",
88 | "data": [
89 | {
90 | "text": "yep that\u0027s ok",
91 | "userDefined": false
92 | }
93 | ],
94 | "isTemplate": false,
95 | "count": 0,
96 | "updated": 0
97 | },
98 | {
99 | "id": "d0a3f14b-a1e9-4641-a3e0-8fcb8dc32d85",
100 | "data": [
101 | {
102 | "text": "okay",
103 | "userDefined": false
104 | }
105 | ],
106 | "isTemplate": false,
107 | "count": 1,
108 | "updated": 0
109 | },
110 | {
111 | "id": "d753b5af-34db-4428-bdba-406fe267000c",
112 | "data": [
113 | {
114 | "text": "ok",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 1,
120 | "updated": 0
121 | },
122 | {
123 | "id": "fd691abb-5b22-4393-9b08-aa9d5bc4b4a6",
124 | "data": [
125 | {
126 | "text": "for sure",
127 | "userDefined": false
128 | }
129 | ],
130 | "isTemplate": false,
131 | "count": 0,
132 | "updated": 0
133 | },
134 | {
135 | "id": "92fc2708-2b6e-41a1-8553-d13ce4e93f34",
136 | "data": [
137 | {
138 | "text": "sg",
139 | "userDefined": false
140 | }
141 | ],
142 | "isTemplate": false,
143 | "count": 0,
144 | "updated": 0
145 | },
146 | {
147 | "id": "f1e3a276-ea9e-4e31-85c2-df972bdb409d",
148 | "data": [
149 | {
150 | "text": "yes that\u0027t ok",
151 | "userDefined": false
152 | }
153 | ],
154 | "isTemplate": false,
155 | "count": 0,
156 | "updated": 0
157 | },
158 | {
159 | "id": "4d27c29e-8adf-4c0f-9512-6a68581c25f2",
160 | "data": [
161 | {
162 | "text": "I agree",
163 | "userDefined": false
164 | }
165 | ],
166 | "isTemplate": false,
167 | "count": 2,
168 | "updated": 0
169 | },
170 | {
171 | "id": "3cc63bfe-e1b0-47a2-b09a-ad8c0a5e53ec",
172 | "data": [
173 | {
174 | "text": "yes you can do it",
175 | "userDefined": false
176 | }
177 | ],
178 | "isTemplate": false,
179 | "count": 0,
180 | "updated": 0
181 | },
182 | {
183 | "id": "e4d39a0a-b1fe-42dc-855f-e2ecf1c7a070",
184 | "data": [
185 | {
186 | "text": "I don\u0027t mind",
187 | "userDefined": false
188 | }
189 | ],
190 | "isTemplate": false,
191 | "count": 3,
192 | "updated": 0
193 | },
194 | {
195 | "id": "b0126bf2-e04d-458f-bf16-d68600a247d8",
196 | "data": [
197 | {
198 | "text": "that one works",
199 | "userDefined": false
200 | }
201 | ],
202 | "isTemplate": false,
203 | "count": 0,
204 | "updated": 0
205 | },
206 | {
207 | "id": "556f1638-b813-4a6d-8a65-6c93ae0b0451",
208 | "data": [
209 | {
210 | "text": "that works",
211 | "userDefined": false
212 | }
213 | ],
214 | "isTemplate": false,
215 | "count": 0,
216 | "updated": 0
217 | },
218 | {
219 | "id": "42ce2151-bbe3-4263-9866-72712a4c25f4",
220 | "data": [
221 | {
222 | "text": "sure why not",
223 | "userDefined": false
224 | }
225 | ],
226 | "isTemplate": false,
227 | "count": 0,
228 | "updated": 0
229 | },
230 | {
231 | "id": "4743b629-c571-4645-bdc2-63269d1c0c66",
232 | "data": [
233 | {
234 | "text": "perfect",
235 | "userDefined": false
236 | }
237 | ],
238 | "isTemplate": false,
239 | "count": 0,
240 | "updated": 0
241 | },
242 | {
243 | "id": "13381537-1e8f-46e1-ac78-6a6bc2fe7d37",
244 | "data": [
245 | {
246 | "text": "yep that\u0027s right",
247 | "userDefined": false
248 | }
249 | ],
250 | "isTemplate": false,
251 | "count": 1,
252 | "updated": 0
253 | },
254 | {
255 | "id": "6d341828-72cd-4f96-89eb-bc5cbcd255dd",
256 | "data": [
257 | {
258 | "text": "I think so",
259 | "userDefined": false
260 | }
261 | ],
262 | "isTemplate": false,
263 | "count": 0,
264 | "updated": 0
265 | },
266 | {
267 | "id": "4320d555-a38f-492d-b1fc-6d16fdc54e79",
268 | "data": [
269 | {
270 | "text": "yes I agree",
271 | "userDefined": false
272 | }
273 | ],
274 | "isTemplate": false,
275 | "count": 1,
276 | "updated": 0
277 | },
278 | {
279 | "id": "68b6cd35-4229-4674-94d6-46615ebab6ba",
280 | "data": [
281 | {
282 | "text": "sure",
283 | "userDefined": false
284 | }
285 | ],
286 | "isTemplate": false,
287 | "count": 2,
288 | "updated": 0
289 | },
290 | {
291 | "id": "eba08d9b-f87d-4232-8874-be4da3029007",
292 | "data": [
293 | {
294 | "text": "sounds correct",
295 | "userDefined": false
296 | }
297 | ],
298 | "isTemplate": false,
299 | "count": 1,
300 | "updated": 0
301 | },
302 | {
303 | "id": "ee5b2ffc-9c14-4a20-9e00-31cb8635c52c",
304 | "data": [
305 | {
306 | "text": "sounds good",
307 | "userDefined": false
308 | }
309 | ],
310 | "isTemplate": false,
311 | "count": 0,
312 | "updated": 0
313 | },
314 | {
315 | "id": "e1f1d448-2705-47b8-92f5-4960656f346b",
316 | "data": [
317 | {
318 | "text": "that\u0027s correct",
319 | "userDefined": false
320 | }
321 | ],
322 | "isTemplate": false,
323 | "count": 0,
324 | "updated": 0
325 | },
326 | {
327 | "id": "50cf224f-9f07-4975-bf7b-441ab549ff6e",
328 | "data": [
329 | {
330 | "text": "go ahead",
331 | "userDefined": false
332 | }
333 | ],
334 | "isTemplate": false,
335 | "count": 1,
336 | "updated": 0
337 | },
338 | {
339 | "id": "1296a391-d3e6-49c8-9eaa-39943cf8544f",
340 | "data": [
341 | {
342 | "text": "do it",
343 | "userDefined": false
344 | }
345 | ],
346 | "isTemplate": false,
347 | "count": 1,
348 | "updated": 0
349 | },
350 | {
351 | "id": "55cd75db-90a7-4daf-947b-ecd03090e8b9",
352 | "data": [
353 | {
354 | "text": "it\u0027s fine",
355 | "userDefined": false
356 | }
357 | ],
358 | "isTemplate": false,
359 | "count": 0,
360 | "updated": 0
361 | },
362 | {
363 | "id": "1fe10ef0-0823-4efa-b4ef-730bc1f931b3",
364 | "data": [
365 | {
366 | "text": "yeah",
367 | "userDefined": false
368 | }
369 | ],
370 | "isTemplate": false,
371 | "count": 0,
372 | "updated": 0
373 | },
374 | {
375 | "id": "4a8d741c-808c-45f8-bf90-ab32b99e0060",
376 | "data": [
377 | {
378 | "text": "yes please",
379 | "userDefined": false
380 | }
381 | ],
382 | "isTemplate": false,
383 | "count": 0,
384 | "updated": 0
385 | },
386 | {
387 | "id": "a05b793f-9a1d-460d-b1b6-c1a5b98d24d9",
388 | "data": [
389 | {
390 | "text": "it\u0027s okay",
391 | "userDefined": false
392 | }
393 | ],
394 | "isTemplate": false,
395 | "count": 0,
396 | "updated": 0
397 | },
398 | {
399 | "id": "88a721b8-99ce-4a51-bf78-f106361f402a",
400 | "data": [
401 | {
402 | "text": "alright why not",
403 | "userDefined": false
404 | }
405 | ],
406 | "isTemplate": false,
407 | "count": 0,
408 | "updated": 0
409 | },
410 | {
411 | "id": "df7428d3-7f27-40c7-b0d0-3456d0c8df91",
412 | "data": [
413 | {
414 | "text": "alright",
415 | "userDefined": false
416 | }
417 | ],
418 | "isTemplate": false,
419 | "count": 0,
420 | "updated": 0
421 | },
422 | {
423 | "id": "8f9f71af-76ec-424f-b28a-ece5b6f1dc95",
424 | "data": [
425 | {
426 | "text": "right",
427 | "userDefined": false
428 | }
429 | ],
430 | "isTemplate": false,
431 | "count": 0,
432 | "updated": 0
433 | },
434 | {
435 | "id": "96b0889c-e64c-4ba3-83d3-495a0385917a",
436 | "data": [
437 | {
438 | "text": "it looks perfect",
439 | "userDefined": false
440 | }
441 | ],
442 | "isTemplate": false,
443 | "count": 0,
444 | "updated": 0
445 | },
446 | {
447 | "id": "5a7c1865-6c90-4c93-8ea5-b7cacad6dcef",
448 | "data": [
449 | {
450 | "text": "yes I can",
451 | "userDefined": false
452 | }
453 | ],
454 | "isTemplate": false,
455 | "count": 0,
456 | "updated": 0
457 | },
458 | {
459 | "id": "ab7709c6-2eca-4ecf-812d-1e4527f1e709",
460 | "data": [
461 | {
462 | "text": "yup",
463 | "userDefined": false
464 | }
465 | ],
466 | "isTemplate": false,
467 | "count": 0,
468 | "updated": 0
469 | },
470 | {
471 | "id": "3312fe28-dfeb-4fa6-98f6-9569c6cb393f",
472 | "data": [
473 | {
474 | "text": "yep",
475 | "userDefined": false
476 | }
477 | ],
478 | "isTemplate": false,
479 | "count": 0,
480 | "updated": 0
481 | },
482 | {
483 | "id": "e826ff4d-875d-4073-89c5-1dba1203e3ce",
484 | "data": [
485 | {
486 | "text": "confirm",
487 | "userDefined": false
488 | }
489 | ],
490 | "isTemplate": false,
491 | "count": 1,
492 | "updated": 0
493 | },
494 | {
495 | "id": "29adab5b-d5e3-450b-b385-1538d0ad21da",
496 | "data": [
497 | {
498 | "text": "absolutely",
499 | "userDefined": false
500 | }
501 | ],
502 | "isTemplate": false,
503 | "count": 1,
504 | "updated": 0
505 | }
506 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_confirmation.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "19af06f8-1743-4cf6-986e-edd44b02c1ee",
3 | "name": "book_flights_payment_confirmation",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "affectedContexts": [
10 | {
11 | "name": "BookFlights-PaymentConfirmation-followup",
12 | "parameters": {},
13 | "lifespan": 1
14 | }
15 | ],
16 | "parameters": [],
17 | "messages": [
18 | {
19 | "type": 0,
20 | "lang": "en",
21 | "condition": "",
22 | "speech": []
23 | }
24 | ],
25 | "defaultResponsePlatforms": {},
26 | "speech": []
27 | }
28 | ],
29 | "priority": 500000,
30 | "webhookUsed": true,
31 | "webhookForSlotFilling": false,
32 | "fallbackIntent": false,
33 | "events": [
34 | {
35 | "name": "book_flights_payment_confirmation_event"
36 | }
37 | ],
38 | "conditionalResponses": [],
39 | "condition": "",
40 | "conditionalFollowupEvents": []
41 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_link.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "f4b14986-88c1-4773-8c3b-485a46459dba",
3 | "name": "book_flights_payment_link",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlight-Seat"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [
12 | {
13 | "name": "BookFlights-PaymentConf",
14 | "parameters": {},
15 | "lifespan": 1
16 | }
17 | ],
18 | "parameters": [
19 | {
20 | "id": "3f2f18af-c15d-4c58-88e4-9f06280a1228",
21 | "required": false,
22 | "dataType": "@flight_seat",
23 | "name": "flight_seat",
24 | "value": "$flight_seat",
25 | "promptMessages": [],
26 | "noMatchPromptMessages": [],
27 | "noInputPromptMessages": [],
28 | "outputDialogContexts": [],
29 | "isList": false
30 | }
31 | ],
32 | "messages": [
33 | {
34 | "type": "simple_response",
35 | "platform": "google",
36 | "lang": "en",
37 | "condition": "",
38 | "textToSpeech": "Please complete payment by clicking here",
39 | "ssml": "",
40 | "displayText": ""
41 | },
42 | {
43 | "type": "suggestion_chips",
44 | "platform": "google",
45 | "lang": "en",
46 | "condition": "",
47 | "suggestions": [
48 | {
49 | "title": "Payment Complete"
50 | }
51 | ]
52 | },
53 | {
54 | "type": "link_out_chip",
55 | "platform": "google",
56 | "lang": "en",
57 | "condition": "",
58 | "destinationName": "Payment",
59 | "url": "https://www.google.com/"
60 | },
61 | {
62 | "type": 0,
63 | "lang": "en",
64 | "condition": "",
65 | "speech": []
66 | }
67 | ],
68 | "defaultResponsePlatforms": {},
69 | "speech": []
70 | }
71 | ],
72 | "priority": 500000,
73 | "webhookUsed": false,
74 | "webhookForSlotFilling": false,
75 | "fallbackIntent": false,
76 | "events": [
77 | {
78 | "name": "payment_confirmation_link_event"
79 | }
80 | ],
81 | "conditionalResponses": [],
82 | "condition": "",
83 | "conditionalFollowupEvents": []
84 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_link_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "3f2bd16c-7477-49b0-af33-1d1df47b6d95",
4 | "data": [
5 | {
6 | "text": "C3",
7 | "alias": "flight_seat",
8 | "meta": "@flight_seat",
9 | "userDefined": false
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | },
16 | {
17 | "id": "335b740b-f37b-4cd4-a1ec-0e66c0d74a84",
18 | "data": [
19 | {
20 | "text": "B1",
21 | "alias": "flight_seat",
22 | "meta": "@flight_seat",
23 | "userDefined": false
24 | }
25 | ],
26 | "isTemplate": false,
27 | "count": 0,
28 | "updated": 0
29 | },
30 | {
31 | "id": "62103f49-e211-42b6-914b-34784098ca28",
32 | "data": [
33 | {
34 | "text": "A1",
35 | "alias": "flight_seat",
36 | "meta": "@flight_seat",
37 | "userDefined": false
38 | }
39 | ],
40 | "isTemplate": false,
41 | "count": 0,
42 | "updated": 0
43 | }
44 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_processor.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "d8e0127e-0ec1-410e-9f5b-b78976ce325a",
3 | "name": "book_flights_payment_processor",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlights-PaymentConf"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [],
12 | "parameters": [],
13 | "messages": [
14 | {
15 | "type": 0,
16 | "lang": "en",
17 | "condition": "",
18 | "speech": []
19 | }
20 | ],
21 | "defaultResponsePlatforms": {},
22 | "speech": []
23 | }
24 | ],
25 | "priority": 500000,
26 | "webhookUsed": true,
27 | "webhookForSlotFilling": false,
28 | "fallbackIntent": false,
29 | "events": [],
30 | "conditionalResponses": [],
31 | "condition": "",
32 | "conditionalFollowupEvents": []
33 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_processor1.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "cf026370-0c29-4fd6-afbb-a774e11a8b92",
3 | "name": "book_flights_payment_processor1",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "affectedContexts": [],
10 | "parameters": [],
11 | "messages": [
12 | {
13 | "type": 0,
14 | "lang": "en",
15 | "condition": "",
16 | "speech": []
17 | }
18 | ],
19 | "defaultResponsePlatforms": {},
20 | "speech": []
21 | }
22 | ],
23 | "priority": 500000,
24 | "webhookUsed": true,
25 | "webhookForSlotFilling": false,
26 | "fallbackIntent": false,
27 | "events": [
28 | {
29 | "name": "payment_processor_event"
30 | }
31 | ],
32 | "conditionalResponses": [],
33 | "condition": "",
34 | "conditionalFollowupEvents": []
35 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_payment_processor_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "fa698c8a-7e45-4ba2-87f0-7fe0bf78b6cc",
4 | "data": [
5 | {
6 | "text": "Payment Complete",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | }
14 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_startover.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "245c3283-272f-4fbd-bc01-bb9cc8182ecc",
3 | "name": "book_flights_startover",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlight-NotToday-Option"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [],
12 | "parameters": [],
13 | "messages": [
14 | {
15 | "type": 0,
16 | "lang": "en",
17 | "condition": "",
18 | "speech": "HI"
19 | }
20 | ],
21 | "defaultResponsePlatforms": {},
22 | "speech": []
23 | }
24 | ],
25 | "priority": 500000,
26 | "webhookUsed": true,
27 | "webhookForSlotFilling": false,
28 | "fallbackIntent": false,
29 | "events": [],
30 | "conditionalResponses": [],
31 | "condition": "",
32 | "conditionalFollowupEvents": []
33 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_startover_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "31b0665d-fba0-49d6-9ea8-34d3d0c857b6",
4 | "data": [
5 | {
6 | "text": "Start Over",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | }
14 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_today.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "08dece50-433f-4631-8461-f258c0321042",
3 | "name": "book_flights_today",
4 | "auto": true,
5 | "contexts": [
6 | "BookFlights-Date"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [
12 | {
13 | "name": "BookFlight-NotToday-Option",
14 | "parameters": {},
15 | "lifespan": 1
16 | }
17 | ],
18 | "parameters": [],
19 | "messages": [
20 | {
21 | "type": "simple_response",
22 | "platform": "google",
23 | "lang": "en",
24 | "condition": "",
25 | "textToSpeech": "No flight are available for today.",
26 | "ssml": "",
27 | "displayText": ""
28 | },
29 | {
30 | "type": "suggestion_chips",
31 | "platform": "google",
32 | "lang": "en",
33 | "condition": "",
34 | "suggestions": [
35 | {
36 | "title": "Change Date"
37 | },
38 | {
39 | "title": "Change Destination"
40 | },
41 | {
42 | "title": "Start Over"
43 | }
44 | ]
45 | },
46 | {
47 | "type": 0,
48 | "lang": "en",
49 | "condition": "",
50 | "speech": []
51 | }
52 | ],
53 | "defaultResponsePlatforms": {},
54 | "speech": []
55 | }
56 | ],
57 | "priority": 500000,
58 | "webhookUsed": false,
59 | "webhookForSlotFilling": false,
60 | "fallbackIntent": false,
61 | "events": [],
62 | "conditionalResponses": [],
63 | "condition": "",
64 | "conditionalFollowupEvents": []
65 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_today_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "a8faa62d-88b0-4eaa-88fa-a1ebfce41bce",
4 | "data": [
5 | {
6 | "text": "today",
7 | "meta": "@sys.ignore",
8 | "userDefined": true
9 | }
10 | ],
11 | "isTemplate": false,
12 | "count": 2,
13 | "updated": 0
14 | },
15 | {
16 | "id": "b0dfb8de-8318-4360-a05f-29e8e9275749",
17 | "data": [
18 | {
19 | "text": "Today",
20 | "userDefined": false
21 | }
22 | ],
23 | "isTemplate": false,
24 | "count": 0,
25 | "updated": 0
26 | }
27 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_flights_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "5a4f1bc7-009a-4cc6-8bc8-14df97713445",
4 | "data": [
5 | {
6 | "text": "Book a flight for ",
7 | "userDefined": false
8 | },
9 | {
10 | "text": "Delhi",
11 | "alias": "geo-city",
12 | "meta": "@sys.geo-city",
13 | "userDefined": true
14 | }
15 | ],
16 | "isTemplate": false,
17 | "count": 0,
18 | "updated": 0
19 | },
20 | {
21 | "id": "426a06ba-42f8-444d-bac4-70cdbff2da62",
22 | "data": [
23 | {
24 | "text": "Book a flight ",
25 | "userDefined": false
26 | },
27 | {
28 | "text": "Delhi",
29 | "alias": "geo-city",
30 | "meta": "@sys.geo-city",
31 | "userDefined": true
32 | },
33 | {
34 | "text": " to ",
35 | "userDefined": false
36 | },
37 | {
38 | "text": "Bangalore",
39 | "alias": "geo-city1",
40 | "meta": "@sys.geo-city",
41 | "userDefined": true
42 | },
43 | {
44 | "text": " for ",
45 | "userDefined": false
46 | },
47 | {
48 | "text": "tomorrow",
49 | "meta": "@sys.ignore",
50 | "userDefined": true
51 | }
52 | ],
53 | "isTemplate": false,
54 | "count": 0,
55 | "updated": 0
56 | },
57 | {
58 | "id": "3b9e80ec-6cd7-4e11-8f94-74af4a8f9a92",
59 | "data": [
60 | {
61 | "text": "Flight from ",
62 | "userDefined": false
63 | },
64 | {
65 | "text": "Delhi",
66 | "alias": "geo-city",
67 | "meta": "@sys.geo-city",
68 | "userDefined": false
69 | },
70 | {
71 | "text": " to ",
72 | "userDefined": false
73 | },
74 | {
75 | "text": "Chennai",
76 | "alias": "geo-city1",
77 | "meta": "@sys.geo-city",
78 | "userDefined": false
79 | },
80 | {
81 | "text": " on ",
82 | "userDefined": false
83 | },
84 | {
85 | "text": "18th April,2020",
86 | "meta": "@sys.ignore",
87 | "userDefined": true
88 | }
89 | ],
90 | "isTemplate": false,
91 | "count": 0,
92 | "updated": 0
93 | },
94 | {
95 | "id": "338be846-5fae-48b7-906b-453cde36348e",
96 | "data": [
97 | {
98 | "text": "Book a flight from ",
99 | "userDefined": false
100 | },
101 | {
102 | "text": "Delhi",
103 | "alias": "geo-city",
104 | "meta": "@sys.geo-city",
105 | "userDefined": false
106 | },
107 | {
108 | "text": " to ",
109 | "userDefined": false
110 | },
111 | {
112 | "text": "Banglore",
113 | "alias": "geo-city1",
114 | "meta": "@sys.geo-city",
115 | "userDefined": false
116 | }
117 | ],
118 | "isTemplate": false,
119 | "count": 0,
120 | "updated": 0
121 | },
122 | {
123 | "id": "eb07178f-fe23-4dcb-84e9-fbfc5061ee34",
124 | "data": [
125 | {
126 | "text": "Book a flight for ",
127 | "userDefined": false
128 | },
129 | {
130 | "text": "tomorrow",
131 | "meta": "@sys.ignore",
132 | "userDefined": true
133 | }
134 | ],
135 | "isTemplate": false,
136 | "count": 0,
137 | "updated": 0
138 | },
139 | {
140 | "id": "49746cac-b54a-44f6-b2c9-a2c405d46ba3",
141 | "data": [
142 | {
143 | "text": "Flight booking",
144 | "userDefined": false
145 | }
146 | ],
147 | "isTemplate": false,
148 | "count": 0,
149 | "updated": 0
150 | },
151 | {
152 | "id": "b5cb30bc-8432-4f4b-b3ff-73ebf614cf15",
153 | "data": [
154 | {
155 | "text": "Book a flight",
156 | "userDefined": false
157 | }
158 | ],
159 | "isTemplate": false,
160 | "count": 0,
161 | "updated": 0
162 | },
163 | {
164 | "id": "40e218df-2b0f-4789-8c33-255c3eda3235",
165 | "data": [
166 | {
167 | "text": "I want to book a flight.",
168 | "userDefined": false
169 | }
170 | ],
171 | "isTemplate": false,
172 | "count": 0,
173 | "updated": 0
174 | }
175 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_confirmation.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "6cd11416-8e8c-4e97-b7e1-a7db2ea2aa8d",
3 | "name": "book_rooms_confirmation",
4 | "auto": true,
5 | "contexts": [
6 | "bookrooms_hotel_name"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "action": "BookRooms.BookRooms-custom.BookRooms-followUpDate-custom.BookRooms-followUpHotel-custom",
12 | "affectedContexts": [],
13 | "parameters": [
14 | {
15 | "id": "3fe06499-dba7-4cde-804f-ee0b195d6723",
16 | "required": true,
17 | "dataType": "@hotel_name",
18 | "name": "hotel_name",
19 | "value": "$hotel_name",
20 | "prompts": [
21 | {
22 | "lang": "en",
23 | "value": "Enter name"
24 | }
25 | ],
26 | "promptMessages": [],
27 | "noMatchPromptMessages": [],
28 | "noInputPromptMessages": [],
29 | "outputDialogContexts": [],
30 | "isList": false
31 | },
32 | {
33 | "id": "4975e22e-e529-4953-b750-a82219c34bf0",
34 | "required": true,
35 | "dataType": "@sys.date",
36 | "name": "date",
37 | "value": "$date",
38 | "promptMessages": [],
39 | "noMatchPromptMessages": [],
40 | "noInputPromptMessages": [],
41 | "outputDialogContexts": [],
42 | "defaultValue": "#session_vars.date",
43 | "isList": false
44 | },
45 | {
46 | "id": "d325f3e4-a91d-48eb-b559-fa6260a77290",
47 | "required": true,
48 | "dataType": "@sys.geo-city",
49 | "name": "geo-city",
50 | "value": "$geo-city",
51 | "promptMessages": [],
52 | "noMatchPromptMessages": [],
53 | "noInputPromptMessages": [],
54 | "outputDialogContexts": [],
55 | "defaultValue": "#session_vars.geo-city1",
56 | "isList": false
57 | }
58 | ],
59 | "messages": [
60 | {
61 | "type": "simple_response",
62 | "platform": "google",
63 | "lang": "en",
64 | "condition": "",
65 | "textToSpeech": "$hotel_name booked for $geo-city for $date",
66 | "ssml": "",
67 | "displayText": ""
68 | },
69 | {
70 | "type": 0,
71 | "lang": "en",
72 | "condition": "",
73 | "speech": []
74 | }
75 | ],
76 | "defaultResponsePlatforms": {},
77 | "speech": []
78 | }
79 | ],
80 | "priority": 500000,
81 | "webhookUsed": false,
82 | "webhookForSlotFilling": false,
83 | "fallbackIntent": false,
84 | "events": [],
85 | "conditionalResponses": [],
86 | "condition": "",
87 | "conditionalFollowupEvents": []
88 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_confirmation_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "4932d4e5-4a41-4a26-a415-9cbf23c40284",
4 | "data": [
5 | {
6 | "text": "HotelB",
7 | "alias": "hotel_name",
8 | "meta": "@hotel_name",
9 | "userDefined": true
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | },
16 | {
17 | "id": "6d75c55b-36da-4cd1-ba8c-1b6d65dcaffb",
18 | "data": [
19 | {
20 | "text": "HotelA",
21 | "alias": "hotel_name",
22 | "meta": "@hotel_name",
23 | "userDefined": true
24 | }
25 | ],
26 | "isTemplate": false,
27 | "count": 0,
28 | "updated": 0
29 | }
30 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_get_date.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "93fb94a1-0737-4cc3-85a9-efa921844b0e",
3 | "name": "book_rooms_get_date",
4 | "auto": true,
5 | "contexts": [
6 | "bookrooms_location_context"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "action": "BookRooms.BookRooms-custom",
12 | "affectedContexts": [
13 | {
14 | "name": "bookrooms_date_context",
15 | "parameters": {},
16 | "lifespan": 1
17 | }
18 | ],
19 | "parameters": [
20 | {
21 | "id": "0f20df5b-299d-40dc-88bf-e0391f07ce7f",
22 | "required": true,
23 | "dataType": "@sys.geo-city",
24 | "name": "geo-city1",
25 | "value": "$geo-city1",
26 | "promptMessages": [],
27 | "noMatchPromptMessages": [],
28 | "noInputPromptMessages": [],
29 | "outputDialogContexts": [],
30 | "isList": false
31 | }
32 | ],
33 | "messages": [
34 | {
35 | "type": "simple_response",
36 | "platform": "google",
37 | "lang": "en",
38 | "condition": "",
39 | "textToSpeech": "For when you want to book Room ?",
40 | "ssml": "",
41 | "displayText": ""
42 | },
43 | {
44 | "type": "suggestion_chips",
45 | "platform": "google",
46 | "lang": "en",
47 | "condition": "",
48 | "suggestions": [
49 | {
50 | "title": "Today"
51 | },
52 | {
53 | "title": "Tomorrow"
54 | }
55 | ]
56 | },
57 | {
58 | "type": 0,
59 | "lang": "en",
60 | "condition": "",
61 | "speech": []
62 | }
63 | ],
64 | "defaultResponsePlatforms": {},
65 | "speech": []
66 | }
67 | ],
68 | "priority": 500000,
69 | "webhookUsed": false,
70 | "webhookForSlotFilling": false,
71 | "fallbackIntent": false,
72 | "events": [],
73 | "conditionalResponses": [],
74 | "condition": "",
75 | "conditionalFollowupEvents": []
76 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_get_date_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "b63b606a-33e1-442a-9c0c-003ca4447ced",
4 | "data": [
5 | {
6 | "text": "Banglore",
7 | "alias": "geo-city1",
8 | "meta": "@sys.geo-city",
9 | "userDefined": false
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | },
16 | {
17 | "id": "a35e6060-3c1c-4823-afbe-85006f9c80ca",
18 | "data": [
19 | {
20 | "text": "Chennai",
21 | "alias": "geo-city1",
22 | "meta": "@sys.geo-city",
23 | "userDefined": false
24 | }
25 | ],
26 | "isTemplate": false,
27 | "count": 0,
28 | "updated": 0
29 | },
30 | {
31 | "id": "b765c4b9-1bda-4053-850b-4eabf226afd0",
32 | "data": [
33 | {
34 | "text": "Pune",
35 | "alias": "geo-city1",
36 | "meta": "@sys.geo-city",
37 | "userDefined": true
38 | }
39 | ],
40 | "isTemplate": false,
41 | "count": 0,
42 | "updated": 0
43 | },
44 | {
45 | "id": "57f855b1-1c15-46b2-ac12-ca0081511d88",
46 | "data": [
47 | {
48 | "text": "Delhi",
49 | "alias": "geo-city1",
50 | "meta": "@sys.geo-city",
51 | "userDefined": true
52 | }
53 | ],
54 | "isTemplate": false,
55 | "count": 0,
56 | "updated": 0
57 | },
58 | {
59 | "id": "ff047fed-a30c-4788-adeb-da09af8317f2",
60 | "data": [
61 | {
62 | "text": "Mumbai",
63 | "alias": "geo-city1",
64 | "meta": "@sys.geo-city",
65 | "userDefined": false
66 | }
67 | ],
68 | "isTemplate": false,
69 | "count": 0,
70 | "updated": 0
71 | }
72 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_get_hotel_name.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "04b380de-09e5-4978-905f-67f3fe4d66cb",
3 | "name": "book_rooms_get_hotel_name",
4 | "auto": true,
5 | "contexts": [
6 | "bookrooms_date_context"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [
12 | {
13 | "name": "bookrooms_hotel_name",
14 | "parameters": {},
15 | "lifespan": 1
16 | }
17 | ],
18 | "parameters": [
19 | {
20 | "id": "9b2d5760-6f04-4e3b-b01b-7ec64a601709",
21 | "required": false,
22 | "dataType": "@sys.date",
23 | "name": "date",
24 | "value": "$date",
25 | "promptMessages": [],
26 | "noMatchPromptMessages": [],
27 | "noInputPromptMessages": [],
28 | "outputDialogContexts": [],
29 | "defaultValue": "#session_vars.date",
30 | "isList": false
31 | }
32 | ],
33 | "messages": [
34 | {
35 | "type": "simple_response",
36 | "platform": "google",
37 | "lang": "en",
38 | "condition": "",
39 | "textToSpeech": "Please select from below available Hotels ?",
40 | "ssml": "",
41 | "displayText": ""
42 | },
43 | {
44 | "type": "suggestion_chips",
45 | "platform": "google",
46 | "lang": "en",
47 | "condition": "",
48 | "suggestions": [
49 | {
50 | "title": "HotelA"
51 | },
52 | {
53 | "title": "HotelB"
54 | },
55 | {
56 | "title": "HotelC"
57 | }
58 | ]
59 | },
60 | {
61 | "type": 0,
62 | "lang": "en",
63 | "condition": "",
64 | "speech": []
65 | }
66 | ],
67 | "defaultResponsePlatforms": {},
68 | "speech": []
69 | }
70 | ],
71 | "priority": 500000,
72 | "webhookUsed": false,
73 | "webhookForSlotFilling": false,
74 | "fallbackIntent": false,
75 | "events": [
76 | {
77 | "name": "hotel_name_event"
78 | }
79 | ],
80 | "conditionalResponses": [],
81 | "condition": "",
82 | "conditionalFollowupEvents": []
83 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_get_hotel_name_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "df7d48af-092e-4ba0-9c42-ece089d00af0",
4 | "data": [
5 | {
6 | "text": "13th June, 2020",
7 | "alias": "date",
8 | "meta": "@sys.date",
9 | "userDefined": false
10 | }
11 | ],
12 | "isTemplate": false,
13 | "count": 0,
14 | "updated": 0
15 | },
16 | {
17 | "id": "cdb463e4-d265-4e78-8918-39774b64ba81",
18 | "data": [
19 | {
20 | "text": "Today",
21 | "alias": "date",
22 | "meta": "@sys.date",
23 | "userDefined": false
24 | }
25 | ],
26 | "isTemplate": false,
27 | "count": 0,
28 | "updated": 0
29 | },
30 | {
31 | "id": "df3a0478-ac35-45b8-883e-09a2d53f974f",
32 | "data": [
33 | {
34 | "text": "Tomorrow",
35 | "alias": "date",
36 | "meta": "@sys.date",
37 | "userDefined": true
38 | }
39 | ],
40 | "isTemplate": false,
41 | "count": 0,
42 | "updated": 0
43 | }
44 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_get_location.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "18086f9e-e6e2-4af4-823b-c290a3f62eea",
3 | "name": "book_rooms_get_location",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "affectedContexts": [
10 | {
11 | "name": "bookrooms_location_context",
12 | "parameters": {},
13 | "lifespan": 1
14 | },
15 | {
16 | "name": "session_vars",
17 | "parameters": {},
18 | "lifespan": 50
19 | }
20 | ],
21 | "parameters": [],
22 | "messages": [
23 | {
24 | "type": "simple_response",
25 | "platform": "google",
26 | "lang": "en",
27 | "condition": "",
28 | "textToSpeech": "Please provide destination for room booking",
29 | "ssml": "",
30 | "displayText": ""
31 | },
32 | {
33 | "type": "suggestion_chips",
34 | "platform": "google",
35 | "lang": "en",
36 | "condition": "",
37 | "suggestions": [
38 | {
39 | "title": "Delhi"
40 | },
41 | {
42 | "title": "Mumbai"
43 | }
44 | ]
45 | },
46 | {
47 | "type": 0,
48 | "lang": "en",
49 | "condition": "",
50 | "speech": []
51 | }
52 | ],
53 | "defaultResponsePlatforms": {},
54 | "speech": []
55 | }
56 | ],
57 | "priority": 500000,
58 | "webhookUsed": false,
59 | "webhookForSlotFilling": false,
60 | "fallbackIntent": false,
61 | "events": [
62 | {
63 | "name": "book_rooms_location_event"
64 | }
65 | ],
66 | "conditionalResponses": [],
67 | "condition": "",
68 | "conditionalFollowupEvents": []
69 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_get_location_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "5c58e103-c2dc-45cb-8df4-cf3d380cf523",
4 | "data": [
5 | {
6 | "text": "Hotel room booking",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "1c21b1bc-123e-410f-acf4-b798e0470567",
16 | "data": [
17 | {
18 | "text": "Book a hotel room",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "5c9ce310-79bf-4208-9a61-0b3e7c31c5e7",
28 | "data": [
29 | {
30 | "text": "Book a room",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 0,
36 | "updated": 0
37 | },
38 | {
39 | "id": "33fb5d1c-148c-4026-b7b2-8088fa38571a",
40 | "data": [
41 | {
42 | "text": "Book a hotel room in ",
43 | "userDefined": false
44 | },
45 | {
46 | "text": "Mumbai",
47 | "meta": "@sys.ignore",
48 | "userDefined": true
49 | },
50 | {
51 | "text": " for ",
52 | "userDefined": false
53 | },
54 | {
55 | "text": "today",
56 | "meta": "@sys.ignore",
57 | "userDefined": false
58 | }
59 | ],
60 | "isTemplate": false,
61 | "count": 0,
62 | "updated": 0
63 | },
64 | {
65 | "id": "d131163a-a646-4f03-a83b-bc8796e43099",
66 | "data": [
67 | {
68 | "text": "I want to book a hotel room",
69 | "userDefined": false
70 | }
71 | ],
72 | "isTemplate": false,
73 | "count": 0,
74 | "updated": 0
75 | },
76 | {
77 | "id": "6134e6d7-2e9b-4f0f-9661-aa5e0c442ebe",
78 | "data": [
79 | {
80 | "text": "Book a room for ",
81 | "userDefined": false
82 | },
83 | {
84 | "text": "tomorrow",
85 | "meta": "@sys.ignore",
86 | "userDefined": false
87 | }
88 | ],
89 | "isTemplate": false,
90 | "count": 0,
91 | "updated": 0
92 | }
93 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/book_rooms_incorrect_hotelname.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "22ae29b0-2cdd-4baf-89ab-498f7b8ffeb9",
3 | "name": "book_rooms_incorrect_hotelname",
4 | "auto": true,
5 | "contexts": [
6 | "bookrooms_hotel_name"
7 | ],
8 | "responses": [
9 | {
10 | "resetContexts": false,
11 | "affectedContexts": [
12 | {
13 | "name": "bookrooms_hotel_name",
14 | "parameters": {},
15 | "lifespan": 1
16 | }
17 | ],
18 | "parameters": [],
19 | "messages": [
20 | {
21 | "type": "simple_response",
22 | "platform": "google",
23 | "lang": "en",
24 | "condition": "",
25 | "textToSpeech": "Please select from below available hotels?",
26 | "ssml": "",
27 | "displayText": ""
28 | },
29 | {
30 | "type": "suggestion_chips",
31 | "platform": "google",
32 | "lang": "en",
33 | "condition": "",
34 | "suggestions": [
35 | {
36 | "title": "HotelA"
37 | },
38 | {
39 | "title": "HotelB"
40 | },
41 | {
42 | "title": "HotelC"
43 | }
44 | ]
45 | },
46 | {
47 | "type": 0,
48 | "lang": "en",
49 | "condition": "",
50 | "speech": []
51 | }
52 | ],
53 | "defaultResponsePlatforms": {},
54 | "speech": []
55 | }
56 | ],
57 | "priority": 500000,
58 | "webhookUsed": false,
59 | "webhookForSlotFilling": false,
60 | "fallbackIntent": true,
61 | "events": [],
62 | "conditionalResponses": [],
63 | "condition": "",
64 | "conditionalFollowupEvents": []
65 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/request_permission.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "d5c3be4c-6bcf-4be7-87e8-e4cf4c7339c6",
3 | "name": "request_permission",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "action": "request_permission",
10 | "affectedContexts": [],
11 | "parameters": [],
12 | "messages": [
13 | {
14 | "type": 0,
15 | "lang": "en",
16 | "condition": "",
17 | "speech": []
18 | }
19 | ],
20 | "defaultResponsePlatforms": {},
21 | "speech": []
22 | }
23 | ],
24 | "priority": 500000,
25 | "webhookUsed": true,
26 | "webhookForSlotFilling": false,
27 | "fallbackIntent": false,
28 | "events": [],
29 | "conditionalResponses": [],
30 | "condition": "",
31 | "conditionalFollowupEvents": []
32 | }
--------------------------------------------------------------------------------
/TravelPlanner/intents/request_permission_usersays_en.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "38731141-d6fb-4c0b-8b0e-06a53072883f",
4 | "data": [
5 | {
6 | "text": "Detect location",
7 | "userDefined": false
8 | }
9 | ],
10 | "isTemplate": false,
11 | "count": 0,
12 | "updated": 0
13 | },
14 | {
15 | "id": "ed2a6cff-a9f5-437b-ade4-b3735e8a72d2",
16 | "data": [
17 | {
18 | "text": "find my position",
19 | "userDefined": false
20 | }
21 | ],
22 | "isTemplate": false,
23 | "count": 0,
24 | "updated": 0
25 | },
26 | {
27 | "id": "63026b51-5919-4414-a3d8-c9a7b268471c",
28 | "data": [
29 | {
30 | "text": "locate me",
31 | "userDefined": false
32 | }
33 | ],
34 | "isTemplate": false,
35 | "count": 0,
36 | "updated": 0
37 | }
38 | ]
--------------------------------------------------------------------------------
/TravelPlanner/intents/user_info.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "569d4b4b-41e3-4d11-8e2d-da11c21b3a37",
3 | "name": "user_info",
4 | "auto": true,
5 | "contexts": [],
6 | "responses": [
7 | {
8 | "resetContexts": false,
9 | "action": "user_info",
10 | "affectedContexts": [],
11 | "parameters": [],
12 | "messages": [
13 | {
14 | "type": 0,
15 | "lang": "en",
16 | "condition": "",
17 | "speech": []
18 | }
19 | ],
20 | "defaultResponsePlatforms": {},
21 | "speech": []
22 | }
23 | ],
24 | "priority": 500000,
25 | "webhookUsed": true,
26 | "webhookForSlotFilling": false,
27 | "fallbackIntent": false,
28 | "events": [
29 | {
30 | "name": "actions_intent_PERMISSION"
31 | }
32 | ],
33 | "conditionalResponses": [],
34 | "condition": "",
35 | "conditionalFollowupEvents": []
36 | }
--------------------------------------------------------------------------------
/TravelPlanner/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0.0"
3 | }
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | // See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
2 | // for Dialogflow fulfillment library docs, samples, and to report issues
3 | 'use strict';
4 |
5 | const functions = require('firebase-functions');
6 | const { WebhookClient } = require('dialogflow-fulfillment');
7 | const { Card, Suggestion } = require('dialogflow-fulfillment');
8 | const { LinkOutSuggestion } = require('actions-on-google');
9 | const { Permission } = require('actions-on-google');
10 | process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements
11 |
12 | var dateTemp;
13 |
14 | exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => {
15 | const agent = new WebhookClient({ request, response });
16 | agent.requestSource = agent.ACTIONS_ON_GOOGLE;
17 | console.log('Dialogflow Request headers: ' + JSON.stringify(request.headers));
18 | console.log('Dialogflow Request body: ' + JSON.stringify(request.body));
19 |
20 | function welcome(agent) {
21 | agent.add(`Welcome to my agent!`);
22 | }
23 |
24 | function fallback(agent) {
25 | agent.add(`I didn't understand`);
26 | agent.add(`I'm sorry, can you try again?`);
27 | }
28 |
29 | function incorrectSeatNumberHandler(agent) {
30 | let session_vars = agent.getContext('session_vars');
31 | var geo_city = session_vars.parameters['geo-city'];
32 | var geo_city1 = session_vars.parameters['geo-city1'];
33 | var travel_class = session_vars.parameters.travel_class;
34 | var res = `Awesome, please select your seat for flight from ${geo_city} to ${geo_city1} for ${travel_class} ?`;
35 | var seat = 'A | 1 2 3 4 5 6' + '\n' + 'B | 1 2 3 4 5 6' + '\n' + 'C | 1 2 3 4 5 6';
36 | agent.add(res);
37 | agent.add(seat);
38 | }
39 |
40 | function slotFillingFlightHandler(agent) {
41 | var geo_city = agent.parameters['geo-city'];
42 | var geo_city1 = agent.parameters['geo-city1'];
43 |
44 | if (!geo_city) {
45 | agent.add(`What's the origin of flight?`);
46 | agent.add(new Suggestion(`Detect Location`));
47 | agent.add(new Suggestion(`Delhi`));
48 | agent.add(new Suggestion(`Mumbai`));
49 | agent.add(new Suggestion(`Banglore`));
50 | }
51 | else if (!geo_city1) {
52 | agent.add('Some dummy text');
53 | agent.setFollowupEvent({
54 | 'name': 'flight_destination_event',
55 | 'parameters': {
56 | 'geo-city': geo_city,
57 |
58 | }
59 | });
60 | }
61 | else {
62 | agent.setContext({
63 | 'name': 'flight_context',
64 | 'lifespan': 1,
65 | 'parameters': {
66 | 'geo-city': geo_city,
67 | 'geo-city1': geo_city1
68 | }
69 | });
70 | agent.add('Some dummy text');
71 | agent.setFollowupEvent('flight_date_event');
72 | }
73 | }
74 |
75 | function roomBookHandler(agent) {
76 | let session_vars = agent.getContext('session_vars');
77 | var geo_city = session_vars.parameters['geo-city1'];
78 | var date = session_vars.parameters.date;
79 | var date_original = session_vars.parameters['date.original'];
80 |
81 | agent.setContext({
82 | 'name': 'bookrooms_date_context',
83 | 'lifespan': 1,
84 | 'parameters': {
85 | 'date': date
86 | }
87 | });
88 | agent.add('Some dummy text');
89 | agent.setFollowupEvent('hotel_name_event');
90 |
91 | }
92 |
93 | function startAgainHandler(agent) {
94 | agent.add('Some dummy text');
95 | agent.setContext({ 'name': 'session_vars', 'lifespan': 0 });
96 | agent.setFollowupEvent('Welcome');
97 | }
98 |
99 | function dateChangeHandler(agent) {
100 | let session_vars = agent.getContext('session_vars');
101 | var geo_city = session_vars.parameters['geo-city'];
102 | var geo_city1 = session_vars.parameters['geo-city1'];
103 |
104 | agent.setContext({
105 | 'name': 'flight_context',
106 | 'lifespan': 1,
107 | 'parameters': {
108 | 'geo-city': geo_city,
109 | 'geo-city1': geo_city1
110 | }
111 | });
112 | agent.add('Some dummy text');
113 | agent.setFollowupEvent('flight_date_event');
114 |
115 | }
116 |
117 | function destinationChangeHandler(agent) {
118 | let session_vars = agent.getContext('session_vars');
119 | var geo_city = session_vars.parameters['geo-city'];
120 | agent.add('Some dummy text');
121 | agent.setFollowupEvent({
122 | 'name': 'flight_destination_event',
123 | 'parameters': {
124 | 'geo-city': geo_city,
125 |
126 | }
127 | });
128 | }
129 |
130 | function redirectToPaymentHandler(agent) {
131 | agent.add('Some dummy text');
132 | agent.setFollowupEvent('payment_confirmation_link_event');
133 | }
134 |
135 | function getSeatHandler(agent) {
136 | agent.add('Some dummy text');
137 | agent.setFollowupEvent('flight_seat_event');
138 | }
139 |
140 | function delay(ms) {
141 | return new Promise(resolve => setTimeout(resolve, ms));
142 | }
143 |
144 | function paymentHandler(agent) {
145 | agent.add('Some dummy text');
146 | agent.setFollowupEvent('payment_confimration_link_event');
147 |
148 | }
149 |
150 | function requestPermissionHandler(agent) {
151 | let conv = agent.conv();
152 | conv.ask(new Permission({
153 | context: 'To give results in your area',
154 | permissions: 'DEVICE_PRECISE_LOCATION',
155 | }));
156 | agent.add(conv);
157 | }
158 |
159 | function userLocationHandler(agent) {
160 | let conv = agent.conv();
161 | var city = conv.device.location.city;
162 | agent.add('Some dummy text');
163 | agent.setFollowupEvent({
164 | 'name': 'flight_destination_event',
165 | 'parameters': {
166 | 'geo-city': city,
167 |
168 | }
169 | });
170 | }
171 |
172 | function paymentConfirmationHandler(agent) {
173 | return delay(3000).then(() => {
174 | let conv = agent.conv();
175 | var randomId = Math.random().toString(36).substr(2, 9);
176 | var msg = `Thank you for your payment! Your tickets have been booked and your booking id is ${randomId}`;
177 | conv.ask(msg);
178 | conv.ask('Do you want to book hotel room also ?');
179 | agent.add(conv);
180 | });
181 |
182 | }
183 |
184 | function noBookingHandler(agent) {
185 | dateTemp = Math.floor(Date.now() / 1000);
186 | agent.add('End');
187 | }
188 |
189 | function roomBookFollowUpHandler(agent) {
190 | var date1 = Math.floor(Date.now() / 1000);
191 | if (date1 - dateTemp <= 20) {
192 | let session_vars = agent.getContext('session_vars');
193 | var geo_city1 = session_vars.parameters['geo-city1'];
194 | agent.add(`Do you want to book room for ${geo_city1} ?`);
195 | }
196 | else {
197 | agent.setContext({ 'name': 'session_vars', 'lifespan': 0 });
198 | agent.add('Some dummy text');
199 | agent.setFollowupEvent('book_rooms_location_event');
200 | }
201 |
202 | }
203 |
204 | function roomBookFollowUpNoHandler(agent) {
205 | agent.setContext({ 'name': 'session_vars', 'lifespan': 0 });
206 | agent.add('Some dummy text');
207 | agent.setFollowupEvent('book_rooms_location_event');
208 | }
209 |
210 | function paymentProcessorHandler(agent) {
211 | return delay(4000).then(() => {
212 | agent.add('Some dummy text');
213 | agent.setFollowupEvent('payment_processor_event');
214 | });
215 | }
216 |
217 | function paymentProcessorHandler1(agent) {
218 | return delay(4000).then(() => {
219 | agent.add('Some dummy text');
220 | agent.setFollowupEvent('book_flights_payment_confirmation_event');
221 | });
222 | }
223 |
224 |
225 |
226 | // // See https://github.com/dialogflow/fulfillment-actions-library-nodejs
227 | // // for a complete Dialogflow fulfillment library Actions on Google client library v2 integration sample
228 |
229 | // Run the proper function handler based on the matched Dialogflow intent name
230 | let intentMap = new Map();
231 | intentMap.set('Default Welcome Intent', welcome);
232 | intentMap.set('Default Fallback Intent', fallback);
233 | intentMap.set('book_flights', slotFillingFlightHandler);
234 | intentMap.set('book_flights_incorrect_seatno', incorrectSeatNumberHandler);
235 | intentMap.set('book_flights_followup_get_seat- no', redirectToPaymentHandler);
236 | intentMap.set('book_flights_startover', startAgainHandler);
237 | intentMap.set('book_flights_payment_conf_room_book-yes', roomBookHandler);
238 | intentMap.set('book_flights_change_destination', destinationChangeHandler);
239 | intentMap.set('Sample', paymentProcessorHandler);
240 | intentMap.set('book_flights_payment_processor1', paymentProcessorHandler1);
241 | intentMap.set('book_flights_change_date', dateChangeHandler);
242 | intentMap.set('book_flights_followup_get_seat - yes', getSeatHandler);
243 | intentMap.set('request_permission', requestPermissionHandler);
244 | intentMap.set('user_info', userLocationHandler);
245 | intentMap.set('book_flights_payment_processor', paymentProcessorHandler);
246 | intentMap.set('book_flights_payment_confirmation', paymentConfirmationHandler);
247 | intentMap.set('book_flights_payment_conf_room_book-no', noBookingHandler);
248 | intentMap.set('book_flights_followup_room_book', roomBookFollowUpHandler);
249 | intentMap.set('book_flights_followup_room_book - yes', roomBookHandler);
250 | intentMap.set('book_flights_followup_room_book - no', roomBookFollowUpNoHandler);
251 | agent.handleRequest(intentMap);
252 | });
253 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dialogflowFirebaseFulfillment",
3 | "description": "This is the default fulfillment for a Dialogflow agents using Cloud Functions for Firebase",
4 | "version": "0.0.1",
5 | "private": true,
6 | "license": "Apache Version 2.0",
7 | "author": "Google Inc.",
8 | "engines": {
9 | "node": "8"
10 | },
11 | "scripts": {
12 | "start": "firebase serve --only functions:dialogflowFirebaseFulfillment",
13 | "deploy": "firebase deploy --only functions:dialogflowFirebaseFulfillment"
14 | },
15 | "dependencies": {
16 | "actions-on-google": "^2.4.0",
17 | "firebase-admin": "~6.0.0",
18 | "firebase-functions": "^2.1.0",
19 | "dialogflow": "^0.6.0",
20 | "dialogflow-fulfillment": "^0.6.0"
21 | }
22 | }
--------------------------------------------------------------------------------