Guides /
How to make an HTTP GET/POST request from an Alexa Routine
Do you want to make an external GET/POST HTTP request to a URL from within an Alexa Routine? Here's how.
This tutorial requires access to the Alexa app and a Voice Monkey account.
There are plenty of reasons to fire an HTTP GET or POST request from inside an Alexa Routine. Trigger an external system by voice, kick off an IFTTT applet, or hit an API that starts a smart-home automation. With Voice Monkey Flows it’s a three-step job.
Step 1 — Create a new Flow
Open the Voice Monkey console, go to the Flows section, and create a new Flow with a descriptive name.
Step 2 — Add a Web Request action
Pick Web Request from the list of actions.
Enter the URL and method, plus any headers you need.
Hit Add Action.
Step 3 — Trigger the Flow from an Alexa Routine
In the Flow editor, open the Trigger options and look for the routine instructions.
Copy the custom-action phrase.
Head to the Alexa app, create a new Routine, choose your trigger, and under actions pick Custom Action with the phrase you just copied.
Now every time the Alexa Routine runs, the custom action triggers your Flow, which in turn makes the HTTP request to the URL you specified. Magic.