MyMedic
This is a backend for the Google Assistant Action. It uses the web microframework flask along with an extension called flask-ask.
Dev Installation
-
Download ngrok and start tunnel port 5000. Save the https link you receive.
./ngrok http 5000
-
In a new terminal window, clone this repo from github:
git clone https://github.com/marcosfelt/mad-minute
-
Change into the app/ directory and start the server:
python main.py
-
Navigate to the Alexa developer console and create a new skill from the "Your Alexa Consoles"
-
Paste in the scheme.json into the Interaction Model under the build tab. Use the json editor.
-
Under endpoint, select https and paste the https link from ngrok under default region.
-
Now you can test the skill from the test tab.
Deployment
-
Make sure the docker container builds properly locally and serves correctly.
docker build -t myimage . docker run -d --name mycontainer -p 5000:5000 myimage
-
Deploy to now (make sure ot the now cli installed).
now
-
Copy and paste the link you get into the endpoint field in the alexa skill setup
Some Notes
-
When testing in the Alexa Console, make sure to enter numbers as text (e.g., ten not 10)
-
The flask-ask source is included in this directory (and the docker build) because it the pypi install wasn't working.