codeforboston / voiceapp311

Voice assistant connection to Boston services
MIT License
40 stars 47 forks source link

FoodTruckIntent: Group food trucks by common info #323

Open jmartini opened 4 years ago

jmartini commented 4 years ago

Is your feature request related to a problem? Please describe. Can we tweak the language to remove information that repeats? The hours are standard and only vary by breakfast, lunch, or dinner. The current skill will give you the name of the food truck, the location, and time for each one. Can we group like pairings? If all are open from 11-3, let the user know which ones they can find at a specific location without repeating the time.

Describe the solution you'd like

User Alexa, ask Boston Info if there are any food trucks in the Financial District?
Alexa There are at least 3 food trucks, within a mile from that area, open from 11 AM to 3 PM. At Financial District, you will find: Taco Party, Bim Bim Box, and Mediterranean Home Cooking.
cfergusonlee commented 4 years ago

Is this feature still open? If so, I'd like to contribute if possible. In any case, I just finished most of the installation process and can't wait to start participating.

jmartini commented 4 years ago

Go for it @cfergusonlee !

cfergusonlee commented 4 years ago

Thanks, Jamie! I'm just excited to be back on the team again 🍥

cfergusonlee commented 4 years ago

How should the food truck intent handle results with multiple locations/times? Ex:

Name Location Hours
Taco Party Federal Hill 11-3
Bim Bim Box Federal Hill 8-2
WingGawdz Financial District 3-9
Trolley Dogs Financial District 3-9
Rolling Gyros Financial District 11-3

Would stating the number of trucks in a location and then the names/hours of operation work? Ex: "There are at least 3 food trucks within a mile from that area. At Federal Hill, you will find Taco Party open from 11-3 and Bim Bim Box open from 8-2. At Financial District you will find WingGawdz and Trolley Dogs open from 3-9 and Rolling Gyros open from 11-3."

The wording feels kinda clumsy, but I wasn't sure how to clean it up.