Save MyLoc offers the premier location saving action with a tad bit of personalization. The goal here is to create an action to basically carry out your mundane task of remembering places. What if you tend to forget your friend’s house or just as simple as your local grocery store or a bus stop. Our action enables you to store these daily places of interest. So let say you had to visit your vacation house near the beach and you don’t really remember the exact path. You can now ask Save MyLoc to save your location as your “Vacation Beach House”. The next time you visit, it will be hassle-free. This will make the concept of your saved places, relative and flexible enough.
This Action is currently deployed. You can test it directly on your Google Assistant by saying, Talk to Save MyLoc
.
- Use the Actions on Google Console to add a new project with a name of your choosing and click Create Project.
- Scroll down to the More Options section, and click on the Conversational card.
- On the left navigation menu under BUILD, click on Actions. Click on Add Your First Action and choose your app's language(s).
- Select Custom intent, click BUILD. This will open a Dialogflow console. Click CREATE.
- Click on the gear icon to see the project settings.
- Select Export and Import.
- Select Restore from zip. Follow the directions to restore from the
Save-MyLoc.zip
file in this repo. - Deploy the fulfillment webhook provided in the
functions
folder using Google Cloud Functions for Firebase:- Follow the instructions to set up and initialize Firebase SDK for Cloud Functions. Make sure to select the project that you have previously generated in the Actions on Google Console and to reply
N
when asked to overwrite existing files by the Firebase CLI. - Run
firebase deploy --only functions
and take note of the endpoint where the fulfillment webhook has been published. It should look likeFunction URL : https://${REGION}-${PROJECT}.cloudfunctions.net/dialogflowFirebaseFulfillment
. If the Function URL doesn't show, you can always check at the Firebase console.
- Follow the instructions to set up and initialize Firebase SDK for Cloud Functions. Make sure to select the project that you have previously generated in the Actions on Google Console and to reply
- Go back to the Dialogflow console and select Fulfillment from the left navigation menu. Enable Webhook, set the value of URL to the
Function URL
from the previous step, then click Save. - Select Integrations from the left navigation menu and open the Integration Settings menu for Actions on Google.
- Enable Auto-preview changes and Click Test. This will open the Actions on Google simulator.
- Type
Talk to my test app
in the simulator, or sayOK Google, talk to my test app
to any Actions on Google enabled device signed into your developer account.
- Save a location with a custom name. Location precision is upto 10th decimal place.
- Suggested common names of places with custom image and quotes.
- Save a place without a name. Mark the name tag as "Untitled Place".
- View a list of all saved places.
- View the saved place directly on the Google Maps app.
- Implicit calls to the Action, which can save a place in just one steps.
- Random easter eggs included. Try to find it all.
This was a passion project built by Amrit Dash and Manish Rath with lots of scope to improve. If anyone wants to take up the build and add features, modify existing code or simply make it more modular. You are free to do it.
Feel free to contact us if you want any help understanding some parts of the code or simply want to re deploy the Action after making modifications. We can add you as an collaborator to the Actions project.
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. FSF
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.