The Wia Developer Hub

Welcome to the Wia developer hub. You'll find comprehensive guides and documentation to help you start working with Wia as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Twilio

Integrate with Twilio

Wia & Twilio

Wia & Twilio

Start Setting Up Integration

Open the Space dropdown, by clicking on the Space name in the top left corner, and click Settings. Select Integrations in the sidebar.

On the Twilio row, click Setup to begin setting up the integration.

Get Your Twilio API Keys

If you don't already have a Twilio account, click here to set one up for free.

  • Go to the Twilio Console and login.

  • In the Project Info panel, copy and paste Account Sid and Auth Token into the integration panel in Wia and click Create Integration.

You will need to setup a phone number before you can setup SMS. Go to Phone Numbers and check you have one setup.

Create a Flow

  • Go to the Flows and click Create Flow.

  • Enter a name for your Flow. I'm going to call mine Send SMS For Temperature.

  • You will then be redirected to the Flow Studio.

Add a Trigger Node

  • In the Flow Studio, drag over an Event trigger node from the panel on the left.

  • Select the node, enter temperature as the name of the Event in the panel on the right and click Update.

Add an Output Node

  • Drag over an SMS output node from the Twilio section in the panel on the left.

  • Select the node, then on the panel on the right, do the following:

  • Choose your From phone number

  • Enter your To phone number (NOTE: enter the country code and have no spaces i.e. +14568893405).

  • Enter your Body message. I'm going to set mine as Temperature is ${event.data}. This takes the temperature data from the Event. we are going to send. You can see more variables by clicking the Show variables panel link.

  • Click Update to save your changes.

Connect the Nodes

  • Click on the white diamond shape at the bottom of the Event node and drag the line to the input of the Output node.

Add Flow to Your Device

  • Go to Devices and select the Device your would like to add the Flow to.

  • Click on Flows in the subnav then click on Enable beside the Flow.

Run the Flow

Publish an Event from the Device and you will see the SMS message come through.

(Optional) Send Messages to Mutiple Numbers

You can add as many output nodes as you like. To send to another number, just repeat the 'Add an Output Node' and 'Connect the Nodes' steps above.

That's all folks!

P.S. If you need any help with getting setup, tweet us or email support@wia.io

References

Twilio is a developer platform for communications. Software teams use Twilio API to add capabilities like voice, video, and messaging to their applications. This enables businesses to provide the right communications experience for their customers.

Twilio

Integrate with Twilio