Documentation
Welcome to docs|Reactions|Implement reactions with Zapier

Implement reactions with Zapier

This page describes how to implement Zapier actions in Serialized.

Zapier Action The action type (ZAPIER_POST) requires the field targetUri to be populated with a valid Zapier webhook URI (i.e. starting with https://hooks.zapier.com/hooks). The map valueMap is used for storing the (up to nine) dynamic values. Simple templating is supported and event data can be accessed using dot (.) notation.

Example of a Reaction posting a request to Zapier:

{  "reactionName": "zapier-payment-notifier",  "feedName": "payment",  "reactOnEventType": "CaptureCompleted",  "action": {    "actionType": "ZAPIER_POST",    "targetUri": "https://hooks.zapier.com/hooks/catch/<your-key>",    "valueMap": {      "value1": "Payment made by ${event.data.customerId} with amount ${event.data.amount}.",      ...      "value9": "Some more data"    }  }}

Given this event:

 {  "eventId": "ca37d05c-a852-4de5-961f-16fb35e8cd7b",  "eventType": "CaptureCompleted",  "data": {    "customerId": "some-test-id-1",    "amount": 12345  }}

the request body POST:ed to Zapier would look like this:

{  "value1": "Payment made by some-test-id-1 with amount 12345.",  ...  "value9": "Some more data"}