Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 30abbb8

Browse files
authored
[POI] Use choice prompt for POI selection & prompt user for current location if they are missing the IPA.Location event (#937)
* Updated SpeakHelper method to use same as Automotive functionality and modified POI responses * Updated FindParking and FindPOintOfInterest to offer choice prompt and begin route dialog with destination. Updated POISharedResponses * Updated SpeakHelper method to use same as Automotive functionality and modified POI responses * Updated FindParking and FindPOintOfInterest to offer choice prompt and begin route dialog with destination. Updated POISharedResponses * Filtering Azure Maps results to POIs and Point Addresses. Refactored route dialog to appropriately route to POI lookup if needed and back to getting directions after. * Updated route directions card to match POI card with route information and reformatted how the ETA/time delay strings are rendered. * Fixed route card speak strings. FindPOI intent: If current coordinates are missing, the POI skill asks user where they are located and runs a a fuzzy search on response to find POIs and addresses. After confirmation, it resumes looking for the POI. * Updated FindParking scenarios to use new confirmation for getting current coordinates * Added check for current location logic to route dialog * Skipping luis recognizer when in "confirmcurrentlocation" dialog so we don't overwrite the existing LUIS results. Updated speak string for route directions * Update Englsih POI models to better capture "find POI" utterances * Updated and validated deployment with new languages. Phrase lists switched to English to avoid deployment bug * Updated existed unit tests * New sample transcript * Uncomment proactiestatemiddleware * correct foursquare secret configuration settings * Updated VA skill invocation test to reflect new welcome message Fixed Warnings * Updated NoLocationsFound responses to share suggested utterances. * Updated PointOfInterestSkillInvocation test to assert location prompt is displayed from bot
1 parent b19ccbd commit 30abbb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3535
-4136
lines changed

docs/transcripts/skills-pointofinterest.transcript

Lines changed: 2302 additions & 3820 deletions
Large diffs are not rendered by default.

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/de/poi_navigation_find_poi.lu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,7 @@
350350
- Check für eine {KEYWORD=Rosencoa} Zwischen 50 und 65 Dollar in meiner Gegend
351351
- Check für eine {KEYWORD=Scooter} Für unter 2631 Dollar in meiner Gegend
352352
- Check für eine {KEYWORD=U-bahn} Für weniger als 41 Dollar in meiner Gegend
353+
- Finden {KEYWORD=Chinesisches Restaurant}
354+
- Finden {KEYWORD=Chinesischer Laden}
355+
- Finden {KEYWORD=Café}
356+
- Finden {KEYWORD=Bäckerei}

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/de/poi_navigation_route_fromxtoy.lu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
- Auf dem kürzesten Weg {ADDRESS=Eston}
439439
- Nehmen Sie den kürzesten Weg zu {ADDRESS=Lehmstadt}
440440
- Nehmen Sie die verkehrsfreie Strecke zu {ADDRESS=Gleichgewicht der Kreiskreis Campbell}
441-
- {KEYWORD=tcby} Am Schnittpunkt von {ADDRESS=In Vis} Und {ADDRESS=Braunes Cir}
441+
- {KEYWORD=tcby} Am Schnittpunkt von {ADDRESS=In der Vis} Und {ADDRESS=Braunes Cir}
442442
- {KEYWORD=tcby} Auf {ADDRESS=w 118th blvd q} Und {ADDRESS=st. 706} Bitte
443443
- {KEYWORD=tcby} Auf {ADDRESS=Pier 39 Concourse byp} Und {ADDRESS=Ein blvd.}
444444
- {KEYWORD=td Bank} Auf {ADDRESS=Kassenstelle} {ADDRESS=Stadtteil wenonah} Bitte

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/de/pointofinterest.lu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
## None
77
- Bist du verheiratet
88
- Haben Sie Kinder
9-
- Finden
109
- Erhalten
1110
- Wie lange leben Katzen
1211
- Wie alt sind Sie

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/en/poi_navigation_find_poi.lu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,8 @@
349349
- check for a {KEYWORD=pedicure} for about 3158 pounds in my area
350350
- check for a {KEYWORD=rococoa} between 50 and 65 bucks in my area
351351
- check for a {KEYWORD=scooter} for under 2631 bucks in my area
352-
- check for a {KEYWORD=subway} for less than 41 dollars in my area
352+
- check for a {KEYWORD=subway} for less than 41 dollars in my area
353+
- find {KEYWORD=chinese restaurant}
354+
- find {KEYWORD=chinese shop}
355+
- find {KEYWORD=coffee shop}
356+
- find {KEYWORD=bakery}

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/en/pointofinterest.lu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
## None
77
- are you married
88
- do you have any kids
9-
- find
109
- get
1110
- how long do cats live
1211
- how old are you

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/es/poi_navigation_find_poi.lu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,7 @@
350350
- comprobar si hay un {KEYWORD=rococoa} entre 50 y 65 dólares en mi área
351351
- comprobar si hay un {KEYWORD=Scooter} por menos de 2631 dólares en mi área
352352
- comprobar si hay un {KEYWORD=Metro} por menos de 41 dólares en mi área
353+
- Encontrar {KEYWORD=restaurante chino}
354+
- Encontrar {KEYWORD=tienda China}
355+
- Encontrar {KEYWORD=Cafetería}
356+
- Encontrar {KEYWORD=Panadería}

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/es/poi_navigation_route_fromxtoy.lu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
- tomar la ruta más corta para {ADDRESS=Eston}
438438
- tomar el camino más corto para {ADDRESS=Clayton ciudad}
439439
- tomar la ruta libre de tráfico para {ADDRESS=saldo de Campbell County}
440-
- {KEYWORD=TCBY} en la intersección de {ADDRESS=En Vis} Y {ADDRESS=Brown CIR}
440+
- {KEYWORD=TCBY} en la intersección de {ADDRESS=En el VIS} Y {ADDRESS=Brown CIR}
441441
- {KEYWORD=TCBY} En {ADDRESS=w 118th Blvd q} Y {ADDRESS=St. 706} Por favor
442442
- {KEYWORD=TCBY} En {ADDRESS=Pier 39 Concourse BYP} Y {ADDRESS=un bulevar.}
443443
- {KEYWORD=TD Banco} En {ADDRESS=Cass lugar} {ADDRESS=Wenonah Borough} Por favor

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/es/pointofinterest.lu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
## None
77
- Estás casado
88
- ¿tienes algún niño
9-
- Encontrar
109
- Obtener
1110
- ¿Cuánto tiempo viven los gatos
1211
- Cuántos años tienes

solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/CognitiveModels/LUIS/fr/poi_navigation_find_poi.lu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,7 @@
350350
- vérifier un {KEYWORD=le rococoa} entre 50 et 65 dollars dans ma région
351351
- vérifier un {KEYWORD=Scooter} pour moins de 2631 dollars dans ma région
352352
- vérifier un {KEYWORD=Métro} pour moins de 41 dollars dans ma région
353+
- Trouver {KEYWORD=restaurant chinois}
354+
- Trouver {KEYWORD=boutique chinoise}
355+
- Trouver {KEYWORD=Café}
356+
- Trouver {KEYWORD=Boulangerie}

0 commit comments

Comments
 (0)