bg-gradient-orange
bg-gradient-orange-post-mobile
Dec, 4 2020

How to receive email notifications using Automate.io

integration_guides

Customers can configure email notifications by using the EMnify Data Streamer with Automate.io. In this how to I will configure an automation to receive an email from gmail each time an EMnify endpoint is blocked.

On automate.io create a new bot.

2020-10-15_14h30_36.png

Configure the apps to be used. For the incoming app select "webhooks - incoming hook". The destination app is "send Email via Gmail" in my case. Click on "Setup webhook" to get an API URL.2020-10-15_14h32_13.png

Log in on your EMnify account and navigate to the "tech settings" tab to add a new data streamer. Click on "Add New Stream" and select "RestAPI". 2020-10-15_14h35_05.png

Choose "Stream events" as stream type. You can select specific events like "Endpoint blocked" which will enable you to get an email if an endpoint is blocked. For the setup, select "SIM suspension" too as we will need to trigger at list one event to finish the setup. You can remove it after.

mceclip0.png

Click on "API Link"to paste the automate.io link we just created.

2020-10-15_14h38_59.png

Once you click on create, your new data streamer is set to "pending".

Suspend a SIM to trigger an event on the EMnify user interface. You can see that your streamer is now "running" and that information was received on the automate.io side:

mceclip1.png

Click on "Looks good" to finish the Bot configuration. On the "send email" side, you can add details: from / to email address and name, the body, etc. In the body, you can use variables received from the webhook:

mceclip2.png

Once you are done, click on save and activate your bot. You can set different bots depending on the events you want to receive.

/bg-gradient-blue

Subscribe to our Developer Newsletter