Shotstack Workflows lets you automate video creation at scale without the need to write a single line of code, allowing you to build powerful workflows to automate your video creation.
In this guide we will show you how to automate your video creation with Shotstack Workflows by using Webhooks.
Before we show you how to automate videos with Workflows, we’ll take you through the basics to help you familiarise yourself and understand some terms.
All workflows begin with a Trigger. In Shotstack, you can choose between uploading a CSV or use a webhook, allowing you to start your workflow when an event occurs on a third-party marketing platform, such as a new customer signing up.
Actions are the steps that make up the workflow. Actions can be used to create, transform, enhance, generate and analyse all kinds fo media files. Actions are chained together to create a workflow.
This is a generative AI technology that transforms text into audible speech, allowing you to add hyper-realistic voiceovers in over 30 different languages for your videos.
Your third-party platform has to have the ability to send an HTTP POST request to Shotstack when certain events occur. Shotstack will then generate a unique request URL once you publish your workflow and you can configure your webhook to pass information to Shotstack via HTTP request body. Any data your webhook sends to Shotstack can be referenced in subsequent workflow steps.
Shotstack will create a video and send a webhook notification to your third-party platform when the video is ready. You can then automate and send an email with the video to your customers.
If this sounds too complex for you, we suggest checking out our tutorial on creating videos in bulk using CSV instead.
From the dashboard, click on Workflows on the main header. Select Create Workflow, name your Workflow and hit save.
Click on Select Trigger and choose Webhook. You will see a URL under your trigger. This is your request URL and you will need this when setting up your automation in your chosen third-party service. Keep this secure as anyone who has access to the link can trigger your workflow.
Under Sample Data, you need to specify the data you want to pass to Shotstack from your third-party service and use on your video. You need to add a key-value pair in JSON format.
Keys can be anything from names, email addresses, and locations to recent purchases and will appear under Workflow Data once entered. Make sure that the keys match up with the data from the other platform that you’re connecting to Shotstack via your Webhook.
Click the plus sign to add an Action. Select Render Video Template and choose your template built via the Shotstack Studio. Make sure you map your Merge Fields in your dynamic template to the right key in your Webhook.
Click the plus sign to add another Action. Click on Host on Shotstack and choose the video Output from the previous Action. Hit save and exit the Workflow.
Note: Shotstack’s hosting service is included in your subscription. We also have integrations with AWS S3, Google Cloud Storage and others if you prefer to use your own hosting service. These can be configured in Integrations.
You can create a workflow and configure your webhook in your third-party service. We recommend checking your platform's documentation for the exact steps.
In this example, we will use Hubspot. You can set up a workflow in HubSpot that triggers when a new contact is created. In the workflow, add a Webhook action that sends the contact data to Shotstack’s webhook endpoint.
In the same workflow, add another webhook action that receives the video URL from your video creation service and updates a custom property on the contact record. Finally, add an email action that sends an email to the contact with the video URL embedded in the email body.
Here's how your Hubspot Workflow would look like:
Turn on your Workflow and you’re done! Whenever a new customer subscribes to your plan, the data will be passed on to Shotstack and a new video will be created, which will then be sent to the customer via email.
Ready to try it out? Sign up to get a free account.
Every month we share articles like this one to keep you up to speed with automated video editing.
Discover automated video editing with Shotstack Workflows and learn how to generate thousands of unique videos using a CSV file and no code.
Introducing Workflows, a groundbreaking no-code video creation tool that empowers developers & creators to produce videos at scale, incorporating generative AI tools.
Create dynamic videos by designing your video templates in Shotstack Studio, an online video editor, and automating your video creation, saving you time and resources.