Zapier

Use Zapier zaps to generate videos automatically

You can use Zapier to automate video generation.

Create Sheet

Create a Google Sheet (or clone this) with following columns.

1. Input columns

You will provide values for these columns of the sheet

  1. ready: This column indicates the zapier whther to process the row. Add value yes when the data in the row is ready.
  2. template_id: You can get this from template in Templates tab. zapier template id
  3. version: The version number of the template to render (defaults to 1)
  4. format: The format of the outpur video
    1. mp4
    2. webm
    3. gif
  5. fps: The frame rate of the output video (applicable only to mp4 and webm video outputs. gif output will have fixed frame rate = 12)
    1. 24
    2. 30
  6. pages: There are 2 ways to add data in this column
    1. Copy the value for this column from Playgroud zapier pages
    2. Add it in following format:
      [
          {
              "number": 1, //Required: the page number
              "background_color": "#fff", //Optional: the backgrond color
              "page_audio_url": "https://audio.example.com/test.mp3", //Optional: URL for the page audio
          },
          ...
      ]
  7. layers: There are 2 ways to add data in this column
    1. Copy the value for this column from Playgroud

      zapier layers
    2. Add it in following format:

      (each layer has different configurable props)

      [
          {
              "page": 1, //Required: The page number the layer is associated to
              "name": "shape_u5hXK", //Required: The unique name of the layer. Obtain this from "Layer manager"
              "fill_color": "#001", //Optional: The fill color prop value
              ...
          },
          ...
      ]
  8. audio_url: The url of the audio file (MP3/WAV) That will be added to the video.

2. Output columns

These columns will be updated by the Zap after the completion of the video generation request.

  1. status: The status of video generation request (FAILED/COMPLETE)
  2. id: The unique id of the video generation request.
  3. self: The uniqe URL of the video generation request.
  4. created_at: The creation date-time stamp.
  5. updated_at: The modification dat-time stamp.
  6. video_url: The URL of the generated video after successful completion of the video generation request.
  7. error: Any error encountered during video gen.

Get access

To get access to the AnimationAPI app on Zapier click this link

Create Zap

zapier flow

Step 1

In the trigger step select the App: Google Sheets.

zapier google sheets

1. Setup

  1. Select Trigger event: New or Updated Spreadsheet Row.
  2. Login to your Google Account
zapier trigger setup

2. Configure

  1. Select the Spredsheet and Worksheet.
  2. Map the Trigger column: ready
zapier trigger configure

Step 2

In the Zap add a step and select App: AnimationAPI(X.X.X). Select the latest available version.

zapier api app

1. Setup

  1. Select the Action Event: Create Videos
  2. In the Account click Connect a new Account
  3. Add your API key. You can get your API key from User Menu -> API Keys in the AnimationAPI app.
Zapierzapier api connect
AnimationAPI App User Menuapi keys

2. Configure

Map the app input fields with spreadsheet columns:

AnimationAPI Create Videos inputWorksheet column
Template Idtemplate_id
Versionversion
Formatformat
FPSfps
Pagespages
Layerslayers
Audio URLaudio_url

Step 3 (Zapier paid plan)

If you have paid subscription of Zapier then you can add a third step in your zap.

Add 1 more step to your Zap and select App: Google Sheets.

zapier google sheets

1. Setup

  1. Select the Action event: Update Spreadsheet Row(s).
  2. Select the Google Account.
zapier sheet update

2. Configure

  1. Select the Spreadsheet and Worksheet.
  2. Map the columns:
    Worksheet columnAnimationAPI Create Videos output
    statusStatus
    idID
    selfSelf
    created_atCreated At
    updated_atUpdated At
    video_urlVideo Url
    errorError
  3. In Row Number select the row selected in Step 2 - Configure .

Rendered Videos

You will find all the genrated video outputs in the Request history tab in the AnimationAPI app.

If you are on Zapier paid plan then in the Step 3 the video_url column of the spreadsheet will be populated with the output video URL after successful completion of the Zap.