Instant Trigger
Guide for setting up Integromat Instant Trigger
By setting Instant Trigger, it allows Integromat scenario to receive generated image immediately.
Stencil supports this feature out of the box and setting it up requires minimal effort. For now Instant Trigger support is scoped per template.
Integromat's Instant Triggers execute the flow immediately after the remote server sends data. It is powered by webhooks.
Requirements
Instant Trigger's webhook URL
A working template in Stencil
Recommended Approach
This approach scopes the Instant Trigger on template level. That means all images generated from this template will trigger Integromat Instant Trigger.
1. Set Trigger in scenario
In your scenario editor, select Image Generated trigger from the list of available modules. This allows Integromat to listen for data coming from Stencil.
Instant Trigger must be the first module in scenario
2. Set up Trigger webhook
Add a new webhook or use existing webhook based on your need. Then copy the given webhook URL.
3. Set Trigger webhook in Stencil's Console
Go back to Stencil's webapp, select the template that you want to integrate with Integromat.
Then, go to its console and select Integromat under the Integrations tab.
Paste the webhook URL from the previous step to the input box. Make sure your save your changes.
Congratulations! You have successfully set up your Integromat Instant Trigger. We've told you that it's going to be easy.
4. Test your changes (optional)
Test scenario
For testing purpose, I've setup my scenario to look like this. The trigger is linked to a Get multiple variables
module (Integromat's tools module) and will capture two variables from the output of the trigger.
Once you've got that set up, run the scenario and it will start listening for data.
Sending data from Console
Go to your template's Console page that is linked to the trigger. Use the Test API tool to send a request to generate image.
If image is generated successfully, you should see similar output in your trigger module.
Alternative approach
The other approach to trigger instant trigger is by setting the webhook_url
field with Integromat's Dedicated Instant Trigger webhook URL when generating the image.
The downside of this approach is that you would have to set this each time you generate the image.
Last updated