{
    "metadata": {
        "version": 2
    },
    "zaps": [
        {
            "id": 1,
            "title": "Render Text To Video From Google Spreadsheet",
            "nodes": {
                "1": {
                    "id": 1,
                    "paused": false,
                    "type_of": "read",
                    "params": {
                        "spreadsheet": "YOUR_SPREADSHEET_ID",
                        "worksheet": "163374956",
                        "dedupe_column": "COL$A"
                    },
                    "meta": {
                        "$editor": {
                            "has_automatic_issues": false
                        },
                        "parammap": {
                            "spreadsheet": "Pictory Videos",
                            "worksheet": "Video  Trigger",
                            "dedupe_column": "Trigger DateTime"
                        },
                        "stepTitle": "Trigger Video Render"
                    },
                    "triple_stores": {
                        "copied_from": null,
                        "created_by": null,
                        "polling_interval_override": 0,
                        "block_and_release_limit_override": 0,
                        "spread_tasks": 1
                    },
                    "parent_id": null,
                    "root_id": null,
                    "action": "updated_row_notify_hook",
                    "selected_api": "GoogleSheetsV2CLIAPI@2.10.1",
                    "title": "Render Text To Video From Google Spreadsheet",
                    "authentication_id": "YOUR_GOOGLE_ACCOUNT_AUTH_ID"
                },
                "2": {
                    "id": 2,
                    "paused": true,
                    "type_of": "search",
                    "params": {
                        "row_count": "10",
                        "_zap_search_success_on_miss": false,
                        "_zap_search_multiple_results": "group",
                        "drive": "",
                        "spreadsheet": "YOUR_SPREADSHEET_ID",
                        "worksheet": "0",
                        "lookup_key": "COL$E",
                        "lookup_value": "approved",
                        "bottom_up": true
                    },
                    "meta": {
                        "$editor": {
                            "has_automatic_issues": false
                        },
                        "parammap": {
                            "spreadsheet": "Pictory Videos",
                            "worksheet": "Videos",
                            "lookup_key": "Review Status"
                        },
                        "stepTitle": "Search for Approved Rows"
                    },
                    "triple_stores": {
                        "copied_from": null,
                        "created_by": null,
                        "polling_interval_override": 0,
                        "block_and_release_limit_override": 0,
                        "spread_tasks": 1
                    },
                    "parent_id": 1,
                    "root_id": 1,
                    "action": "lookup_row",
                    "selected_api": "GoogleSheetsV2CLIAPI@2.10.1",
                    "title": null,
                    "authentication_id": "YOUR_GOOGLE_ACCOUNT_AUTH_ID"
                },
                "3": {
                    "id": 3,
                    "paused": true,
                    "type_of": "write",
                    "params": {
                        "trim_whitespace": true,
                        "iteration_start": "1",
                        "iteration_limit": "500",
                        "loop_values": {
                            "story": "{{=gives[\"353075022\"][\"results[]COL$B\"]}}",
                            "Row": "{{=gives[\"353075022\"][\"results[]row\"]}}",
                            "videoName": "{{=gives[\"353075022\"][\"results[]COL$A\"]}}",
                            "reviewStatus": "{{=gives[\"353075022\"][\"results[]COL$E\"]}}"
                        }
                    },
                    "meta": {
                        "$editor": {
                            "has_automatic_issues": false
                        },
                        "parammap": {}
                    },
                    "triple_stores": {
                        "copied_from": null,
                        "created_by": null,
                        "polling_interval_override": 0,
                        "block_and_release_limit_override": 0,
                        "spread_tasks": 1
                    },
                    "parent_id": 2,
                    "root_id": 1,
                    "action": "loop_values_line_items",
                    "selected_api": "ZapierLoopingCLIAPI@1.2.6",
                    "title": null,
                    "authentication_id": null
                },
                "4": {
                    "id": 4,
                    "paused": true,
                    "type_of": "write",
                    "params": {
                        "unflatten": false,
                        "return_raw_response": false,
                        "method": "POST",
                        "url": "https://api.pictory.ai/pictoryapis/v2/video/storyboard/render",
                        "pass_through": false,
                        "data": "{\n    \"videoName\": \"demo_text_to_video\",\n    \"smartLayoutName\": \"Wanderlust\",\n    \"webhook\": \"PASTE_ZAP_2_WEBHOOK_URL_HERE\",\n    \"voiceOver\": {\n        \"enabled\": true,\n        \"aiVoices\": [\n            {\n                \"speaker\": \"Brian\"\n            }\n        ]\n    },\n    \"backgroundMusic\": {\n        \"enabled\": true,\n        \"volume\": 0.1,\n        \"autoMusic\": true\n    },\n    \"scenes\": [\n        {\n            \"story\": \"{{=gives['353075506'][\"story\"]}}\",\n            \"createSceneOnNewLine\": true,\n            \"createSceneOnEndOfSentence\": true\n        }\n    ]\n}",
                        "headers": {
                            "Content-Type": "application/json",
                            "Authorization": "YOUR_PICTORY_API_KEY"
                        }
                    },
                    "meta": {
                        "$editor": {
                            "has_automatic_issues": false
                        },
                        "parammap": {},
                        "stepTitle": "Pictory Render Storyboard Video"
                    },
                    "triple_stores": {
                        "copied_from": null,
                        "created_by": null,
                        "polling_interval_override": 0,
                        "block_and_release_limit_override": 0,
                        "spread_tasks": 1
                    },
                    "parent_id": 3,
                    "root_id": 1,
                    "action": "custom",
                    "selected_api": "WebHookCLIAPI@1.1.1",
                    "title": null,
                    "authentication_id": null
                },
                "5": {
                    "id": 5,
                    "paused": true,
                    "type_of": "write",
                    "params": {
                        "drive": "",
                        "spreadsheet": "YOUR_SPREADSHEET_ID",
                        "worksheet": "0",
                        "row": "{{=gives[\"353075506\"][\"Row\"]}}",
                        "COL$A": "{{=gives[\"353075506\"][\"videoName\"]}}",
                        "COL$B": "{{=gives[\"353075506\"][\"story\"]}}",
                        "COL$C": "{{=gives[\"353075994\"][\"data\"][\"jobId\"]}}",
                        "COL$D": "",
                        "COL$E": "{{=gives[\"353075506\"][\"reviewStatus\"]}}"
                    },
                    "meta": {
                        "$editor": {
                            "has_automatic_issues": false
                        },
                        "parammap": {
                            "drive": "My Google Drive",
                            "spreadsheet": "Pictory Videos",
                            "worksheet": "Videos"
                        },
                        "stepTitle": "Write Job Id"
                    },
                    "triple_stores": {
                        "copied_from": null,
                        "created_by": null,
                        "polling_interval_override": 0,
                        "block_and_release_limit_override": 0,
                        "spread_tasks": 1
                    },
                    "parent_id": 4,
                    "root_id": 1,
                    "action": "update_row",
                    "selected_api": "GoogleSheetsV2CLIAPI@2.10.1",
                    "title": "Write Job Id",
                    "authentication_id": "YOUR_GOOGLE_ACCOUNT_AUTH_ID"
                }
            }
        }
    ]
}