Connecting to Zapier
How to use Zapier for automation
This guide will help you create a test integration and learn how Zapier can be used to connect the platform. From there you can create more advanced automations such as creating content within the platform. When you’re done it will look like this:

The resulting message in your nominated Slack channel will look like this:

Prerequisites
A Zapier account.
An Monterosa API key, for example
JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb. If you don’t know how to get one, find out here.Familiarisation with Control API basics.
Familiarisation with Zapier Webhooks.
Steps
Login to Zapier and create a new Zap
Choose Webhook as the Trigger
Select
Retrieve Pollas the first option
Within the Trigger’s URL, paste your Interaction Cloud instance name and follow the following format:
https://{instance}/api/v2/projects/{project_id}/events?filter[state]=current
The filter[state]=current will list only Events which are currently Live, meaning that a timed or manually controlled event will only be returned when it has started.

Enter
datain the Key field to denote the structure of the JSONIn the Headers add:
Authorization
Bearer {your key}and
Content-Type
application/vnd.api+jsonFollow the flow through, test your data. Make sure you have at least one Event live to ensure something is returned.
Add Slack as a next step
Associate your Slack account

Select the channel you want to alert

Craft the message you want to send using variables drawn from the data you just got back.
Continue to follow the Zapier instructions to test your data
When everything is working, you can Publish your Zap and leave it running live
You could also try

Alerting new Events, not just those that are live (change the API filter type)
Alerting finished Events
Watch Outs
A paid Zapier plan will be required if you want frequent polling
If you are creating Events or Elements there are API limits but still be very careful not to spam the platform or you might have access revoked.
Getting further help
If you need further help on this topic please ask your account manager or raise a support ticket at support@monterosa.co
Last updated

