How do I create a movie via Integromat?
Sending the request
- Head to Integromat ↗ and hit Create a new scenario
- Click the plus (+) and search for "Bannerbear"
- Choose Create a Movie from the list
- Under Connection, select your project from the drop-down menu or Add your project API Key
- Enter the movie object Width and Height
- Click Add item under "Inputs" and add the necessary inputs in the order you want them to appear
- Choose the Transition effect and enter the Soundtrack URL (optional)
- Enter the webhook URL (see "Handling the response" below)
- Click OK when you're done and Run Once to test it.
Handling the response
- Create a new scenario with a Custom Webhook
- Click Add to create a new webhook or select one from the drop-down menu
Note: This will generate a webhook URL, which you should copy and paste into the "Webhook URL" field in the Create a Movie module mentioned in the above scenario.
When the animated gif is rendered, you'll be notified via this webhook URL, triggering the process to begin / continue to the next step.
- If necessary, run the Create a Movie module once to help the custom webhook determine the structure of the payload it should expect.
- Click OK and continue building your scenario to your preference
Alternative to Webhooks
If creating a separate scenario is a hassle, consider ditching the webhook for the
Sleep tool, which allows you to delay the scenario flow long enough for the Movie rendering to complete.
Note: This may cause issues if the delay is too short, causing the scenario to continue before the movie has been fully rendered.
- Add a new module and search for Tools
- Select the Sleep action and enter the Delay in seconds
- Click OK and continue building your scenario to your preference
For more helpful information, consider checking our
Integromat blog articles ↗.