SimpleCommands

Getting Started with Webhooks

What are Webhooks with SimpleCommands?

Webhooks are way of altering the behavior on a web page or application. Within the SimpleCommands environment Webhooks are designed as a way to Trigger a Routine off of events or actions happening outside of the SimpleCommands platform. 

 

How to Create Webhooks in SimpleCommands:

Creating Webhooks in SimpleCommands is easy! Just follow the steps below, followed by linking the Webhook with a third-party service (details below).

  1. Log in to your SimpleCommands account on the iOS or Android app, or the online dashboard and go to the Routines tab.                                                                                                                          Screen_Shot_2019-07-23_at_1.20.50_PM_imac2013_front.png
  2. Create a Routine and add one or more actions. These action(s) will be what happens when you execute the Webhook.
  3. Add a 'Webhook Trigger' to the Routine. Choose whether you want to add a Notification to the trigger (optional) and press 'Save + Get Token'. 

Screen_Shot_2019-07-23_at_1.21.56_PM_imac2013_front.png

Screen_Shot_2019-07-23_at_1.22.20_PM_copy2.png

Take a look at the provided Webhook data. All SimpleCommands Webhooks use the POST method with the content-type: application/json. Remember this and copy the Webhook's endpoint URL.

You now have all the information you need to get started using your Webhook! But you're only halfway there. Now you need to link your Webhook to another third-party service such as IFTTT, Zapier or Microsoft Flow. This allows you to connect SimpleCommands to countless other devices and services and create customized Routines for almost anything in your smart home.

 

Linking a SimpleCommands Webhook to IFTTT:

Once you have your Webhook endpoint URL you are ready to integrate the Webhook with IFTTT. This allows you run the Routine triggered by your Webhook based off countless actions in your IFTTT environment. Follow the instructions below to get started.

  1. Go to create applets in IFTTT.
  2. Add a 'This' action. This can be anything you want in the IFTTT environment.
  3. When adding a 'That' action, search for Webhooks and press 'Make a web request'.
  4. You'll be taken to this screen:        

ifttt.png

Paste the Webhook's endpoint into the URL section, select POST as the method and application/json as the Content Type. Press 'Save' and follow IFTTT's instructions until you complete the Webhook integration.

 

Linking a SimpleCommands Webhook to Zapier:

Integrating your Webhooks to Zapier is similar to integration them with IFTTT. See below for instructions on how to do so:

  1. Go to My Zaps in Zapier and press 'Make a Zap!'.
  2. Add a Trigger app. This can be anything you want in the Zapier environment.
  3. When adding an action step, select Webhooks and then POST.
  4. You'll be taken to this screen:        

zapier.png

Paste the Webhook's endpoint into the URL section, select POST in the Payload Type. Press 'Continue' and follow Zapier's instructions until you complete the Webhook integration.

 

Linking a SimpleCommands Webhook to Microsoft Flow:

Integrating your Webhooks to Microsoft Flow is similar to integration them with IFTTT or Zapier. See below for instructions on how to do so:

  1. Go to My Flows in Microsoft Flow and press '+ New', 'Automated--from Blank'.
  2. Add a Trigger. This can be anything you want in the Microsoft Flow environment.
  3. Next add an action step, select HTTP.
  4. You'll be taken to this screen:        

msftflows.png

Paste the Webhook's endpoint into the URL section, select POST in Method and application/json in Content-Type. Press 'Continue' and follow Microsoft Flow's instructions until you complete the Webhook integration.

 

You can use your Webhook's endpoint to integrate with countless other smart devices and services, these are just a few examples of some popular services. As long as you can create an integration based off the endpoint URL it can now work with SimpleCommands!

 

For any additional questions please visit our Knowledge Base, or contact us here. We'll get back to you as quickly as we can!

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.