Zapier connects SwarmGen to thousands of apps without writing a line of code. Set a trigger — a new Shopify order, a Typeform submission, a new row in Google Sheets — and let SwarmGen automatically generate a branded image and deliver the URL to the next step in your Zap.
How to set it up
- 1
Build your template in SwarmGen
Create an HTML template with merge fields like {{title}}, {{price}}, and {{image}}. Set the dimensions and export format (PNG, JPG, or PDF).
- 2
Add a Webhooks by Zapier action
In your Zap, add a "Webhooks by Zapier" action set to POST. Set the URL to https://swarmgen.io/api/templates/YOUR_TEMPLATE_UUID/render and add an Authorization header set to Bearer sgk_YOUR_API_KEY.
- 3
Map your trigger data to merge fields
Set the payload type to JSON. In the data field, build a JSON body with a "data" key containing your merge field values mapped from the trigger step. Add "returnUrl": true to receive a URL in the response.
- 4
Use the image URL in subsequent steps
SwarmGen returns { "url": "...", "jobId": "...", "format": "png", "expiresAt": "..." }. Map the url field to a Gmail attachment, Slack message, Notion database, or any downstream app in your Zap. Render URLs are valid for 5 days — download and re-host for long-lived use.
Code example
// POST https://swarmgen.io/api/templates/YOUR_TEMPLATE_UUID/render
// Authorization: Bearer sgk_YOUR_API_KEY
// Response: { "url": "https://...", "jobId": "...", "format": "png", "expiresAt": "..." }
{
"data": {
"title": "{{Product Name}}",
"price": "{{Price}}",
"image": "{{Product Image URL}}",
"vendor": "{{Vendor}}"
},
"returnUrl": true
}Bespoke integrations are not supported by our team. The sample code here is for guidance and you will need technical knowledge or a developer to implement it. We plan to release dedicated plugins for key tools as demand grows.
Ready to connect Zapier?
Create a free account, build a template, and start generating images from your Zapier workflows in minutes.
Get started free