Stencil Documentation
  • General
  • API
    • Authentication
      • Account
    • Pagination
    • Status Code and Throttling
    • Endpoints
      • Projects
      • Templates
      • Images
      • Collections
      • PDFs
      • Airtable
    • Charts
  • Using Stencil
    • Template Editor (New)
    • Template Editor (Legacy)
      • Limited Markdown Supports
      • Anchoring Element
      • Using Custom Font
      • Circular Text Positioning
    • White Label for Business
      • Setting Up Your First Client
      • DNS Setup with Cloudflare
  • Guides
    • Airtable Integration
      • Basic
    • Integromat Integration
      • Connection
      • Instant Trigger
    • Zapier Integration
      • Authentication
      • Trigger - New Image
      • Action - Create Image
    • Secure Signed Image
      • Basic
    • Query String Integration
      • Basic
      • Cache
    • Forms Integration
    • Case Studies
      • Generate Instagram Post from WooCommerce
      • Generate Open Graph Image for WordPress
      • Generate Personalized SendGrid Email Campaigns
      • Sending Charts to Twitter
      • Generate Instagram Post from Shopify
      • Automating Webflow Open Graph Image
      • Generate certificate of accomplishment
      • Automate Candidate's Certificate Generation
  • LINKS
    • Back to Stencil
    • Got bug?
    • Need feature?
    • Blog
Powered by GitBook
On this page
  • Requirements
  • Recommended Approach
  • 1. Set Trigger in scenario
  • 2. Set up Trigger webhook
  • 3. Set Trigger webhook in Stencil's Console
  • 4. Test your changes (optional)
  • Alternative approach

Was this helpful?

  1. Guides
  2. Integromat Integration

Instant Trigger

Guide for setting up Integromat Instant Trigger

PreviousConnectionNextZapier Integration

Last updated 3 years ago

Was this helpful?

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

  1. Instant Trigger's webhook URL

  2. 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.

{
  "template": "68b168a8-17e8-4702-92fd-838c019bc3ec",
  "modifications": [
    {
      "name": "text_1",
      "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do..."
    }
  ],
  "webhook_url": "https://hook.integromat.com/2rxxxxxxxxxxxxxxxxxxxx"
}

The downside of this approach is that you would have to set this each time you generate the image.

Integromat integration section in Console
Sample request sent through Console
Instant Trigger module successfully received data being sent from Stencil.