Actions
Both actions return an object with a
url field. Bannerify saves the file on its CDN, and each run counts as one generation.
Prerequisites
- A Zapier account.
- A Bannerify API key.
- A template with named layers. Modifications explains why the names matter.
Add the action
- In your Zap, add a step and choose the Bannerify app.
- Choose Create Image or Create PDF.
- Connect your account and paste your API key in the Project API Key field.
- In Template, choose a template. Zapier loads the templates of the workspace that owns the key.
- For Create Image, choose a Format:
png,jpeg, orwebp. The default ispng. - Fill in the layer fields, as described below.
- Click Test step. The result has a
urlfield. Open the link to check the file.
Fill in the layers
After you choose a template, Zapier adds a field for each text layer and each image layer. The label shows the layer name and the field that it changes, such asheadline (text) or photo (src). Map a value from an earlier step into the field. A field that you leave empty keeps the value from the template.
For layers of other types, such as QR codes and tables, use Modifications JSON. It takes an object where each key is a layer name, or the array that the API uses:
Recipe: spreadsheet row to a Drive file
- Add a Google Sheets trigger and choose New Spreadsheet Row.
- Add the Bannerify action Create Image. Map each column to a layer field, for example the
Headlinecolumn toheadline (text). - Add a Google Drive action and choose Upload File. Use the
urlfrom the Bannerify step as the file. - Add a Slack action and choose Send Channel Message if you want the
urlposted in a channel.
Troubleshooting
Zapier shows the message that the API returns when a step fails. Handle errors lists the codes.