Automations
Automations are one of the provided integrations with Formie, and are used to forward on a payload of data to a specified URL. This can be useful to send to submission data to third-parties when a form is submitted. The third-party can then perform any number of actions.
The URL can be set at the plugin-settings level, or customised per-form. When editing a form, you can trigger a test payload to be sent, with random-generated data to test your connections to your endpoint URL.
Supported Providers
Formie integrates with the following providers:
- IFTTT
- Make
- n8n
- Web Request
- Zapier
IFTTT
Follow the below steps to connect to the IFTTT API.
Step 1. Create the Integration
- Navigate to Formie → Settings → Automations.
- Click the New Integration button.
- Select IFTTT as the Integration Provider.
Step 2. Connect to the IFTTT API
- Go to the IFTTT Create page.
- Click If This → Add, then search for and select Webhooks.
- Choose Receive a web request and enter an Event Name (e.g.
form_submission). Make a note of Event Name for later. - Click Then That → Add, and choose an action like sending an email, Slack message, Google Sheets, etc.
- Complete the applet and click Finish.
Step 3. Get Your Webhook Key
- Visit https://ifttt.com/maker_webhooks.
- Click Documentation.
- Copy your Webhook Key from the URL shown (
https://maker.ifttt.com/use/XXXXX). - Paste it into the Webhook Key field in Formie.
- Enter the same Event Name you used in IFTTT.
Step 4. Form Settings
- Go to the form you want to enable this integration on.
- Click the Integrations tab.
- In the left-hand sidebar, select the name you gave the integration.
- Enable the integration and fill out all required fields.
- Click Save to save the form.
- Click on the Send Test Payload button to send dummy content to the URL.
Make
Follow the below steps to connect to the Make API.
Step 1. Create the Integration
- Navigate to Formie → Settings → Automations.
- Click the New Integration button.
- Select Make as the Integration Provider.
Step 2. Connect to the Make API
- Go to the Make Dashboard.
- Click the Create a new scenario button.
- Click Build from scratch.
- Click the canvas and choose the Webhooks module.
- Select Custom webhook, then click Add and give your webhook a name.
- Click Save, then copy the generated Webhook URL.
- Click Run once to listen for the webhook.
Step 3. Form Setting & Test Payload
- Go to the form you want to enable this integration on.
- Click the Integrations tab.
- In the left-hand sidebar, select the name you gave the integration.
- Enable the integration and fill out all required fields.
- Click Save to save the form.
- Click on the Send Test Payload button to send dummy content to the URL.
n8n
Follow the below steps to connect to the n8n API.
Step 1. Create the Integration
- Navigate to Formie → Settings → Automations.
- Click the New Integration button.
- Select n8n as the Integration Provider.
Step 2. Connect to the n8n API
- Go to the n8n Dashboard or your self-hosted instance.
- Create a new workflow from scratch.
- Add a Webhook trigger node to your canvas.
- Set the HTTP Method to POST.
- Click Save, then copy the Test URL or Production URL from the Webhook node.
Step 3. Form Setting & Test Payload
- Go to the form you want to enable this integration on.
- Click the Integrations tab.
- In the left-hand sidebar, select the name you gave the integration.
- Enable the integration and fill out all required fields.
- Click Save to save the form.
- Click on the Send Test Payload button to send dummy content to the URL.
Web Request
A general-purpose web request that can be used to send any URL you provide with the payload of content. This can be used to POST-forward content to a URL you choose.
Step 1. Create the Integration
- Navigate to Formie → Settings → Automations.
- Click the New Integration button.
- Select Web Request as the Integration Provider.
- Save the integration.
Step 2. Form Setting & Test Payload
- Go to the form you want to enable this integration on.
- Click the Integrations tab.
- In the left-hand sidebar, select the name you gave the integration.
- Enable the integration and fill out all required fields.
- Click Save to save the form.
- Click on the Send Test Payload button to send dummy content to the URL.
Zapier
Follow the below steps to connect to the Zapier API.
Step 1. Create the Integration
- Navigate to Formie → Settings → Automations.
- Click the New Integration button.
- Select Zapier as the Integration Provider.
Step 2. Connect to the Zapier API
- Go to Zapier and create a new Zap.
- For the Choose App & Event value, enter Webhooks by Zapier.
- For the Choose Trigger Event value, enter Catch Hook.
- Click Continue.
- Copy the Custom Webhook URL into the Webhook field in Formie.
Step 3. Form Setting & Test Payload
- Go to the form you want to enable this integration on.
- Click the Integrations tab.
- In the left-hand sidebar, select the name you gave the integration.
- Enable the integration and fill out all required fields.
- Click Save to save the form.
- Click on the Send Test Payload button to send dummy content to the URL.
Payloads
Data sent to these nominated URL‘s is in the form of a JSON payload, and contains information about your form and submission.
An example payload would look something like:
{
"json":{
"submission":{
"id":123,
"formId":1025,
"statusId":null,
"userId":null,
"ipAddress":null,
"isIncomplete":false,
"isSpam":false,
"spamReason":null,
"uid":null,
"title":null,
"dateCreated":{
"date":"2020-08-14 22:33:48.000000",
"timezone_type":3,
"timezone":"Australia\/Melbourne"
},
"dateUpdated":{
"date":"2020-08-30 11:40:38.000000",
"timezone_type":3,
"timezone":"Australia\/Melbourne"
},
"text":"Natus ex sint aut et. Laudantium aut voluptas necessitatibus mollitia. Dolorum aut officiis ea.",
"email":"[email protected]",
"multiName":"{\"prefix\":\"Prof.\",\"firstName\":\"Catherine\",\"middleName\":\"Erling\",\"lastName\":\"Padberg\",\"name\":null,\"isMultiple\":true}",
"checkboxes":[
"Option 2"
],
"datetime":"2008-01-10 22:01:29",
"address":"{\"autocomplete\":null,\"address1\":\"9812 Adolfo Street Apt. 382\\nKassulkeburgh, AZ 14824\",\"address2\":\"1206\",\"address3\":\"Well\",\"city\":\"Adahberg\",\"state\":\"Michigan\",\"zip\":\"73546-4092\",\"country\":\"French Guiana\"}",
},
"form":{
"settings":{
"displayFormTitle":"",
"displayPageTabs":"",
"displayCurrentPageTitle":"",
"displayPageProgress":"",
"submitMethod":"page-reload",
"submitAction":"message",
"submitActionTab":null,
"submitActionUrl":"",
"submitActionFormHide":"",
"submitActionMessage":"[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Submission saved.\"}]}]",
"submitActionMessageTimeout":"",
"errorMessage":"[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Couldn\u2019t save submission due to errors.\"}]}]",
"loadingIndicator":"",
"loadingIndicatorText":"",
"validationOnSubmit":"1",
"validationOnFocus":"",
"submissionTitleFormat":"{timestamp}",
"collectIp":"",
"collectUser":"",
"storeData":null,
"availabilityMessage":null,
"availabilityMessageDate":null,
"availabilityMessageSubmissions":null,
"defaultLabelPosition":"verbb\\formie\\positions\\AboveInput",
"defaultInstructionsPosition":"verbb\\formie\\positions\\BelowInput",
"progressPosition":"end"
},
"handle":"contactForm",
"submitActionEntryId":null,
"requireUser":"0",
"availability":"always",
"availabilityFrom":null,
"availabilityTo":null,
"availabilitySubmissions":null,
"defaultStatusId":"1",
"dataRetention":"forever",
"dataRetentionValue":null,
"userDeletedAction":"retain",
"fieldLayoutId":241,
"id":1025,
"uid":"67c09dce-c4ec-4be8-8dbe-4154708c6443",
"title":"Contact Us",
"dateCreated":{
"date":"2020-08-14 22:33:48.000000",
"timezone_type":3,
"timezone":"Australia\/Melbourne"
},
"dateUpdated":{
"date":"2020-08-30 11:40:38.000000",
"timezone_type":3,
"timezone":"Australia\/Melbourne"
}
}
}
}