{
    "name": "Canva Instagram 1",
    "flow": [
        {
            "id": 1,
            "module": "util:FunctionIncrement",
            "version": 1,
            "parameters": {
                "reset": "scenario"
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": -307,
                    "y": -2
                },
                "restore": {
                    "parameters": {
                        "reset": {
                            "label": "Never"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "reset",
                        "type": "select",
                        "label": "Reset a value",
                        "required": true,
                        "validate": {
                            "enum": [
                                "run",
                                "execution",
                                "scenario"
                            ]
                        }
                    }
                ]
            }
        },
        {
            "id": 2,
            "module": "canva:exportDesign",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 3321824
            },
            "mapper": {
                "format": {
                    "type": "png",
                    "pages": "{{1.i}}",
                    "width": "1000",
                    "height": "1000",
                    "lossless": false,
                    "as_single_image": false
                },
                "folderId": "/",
                "design_id": "DAGNth3zEFg"
            },
            "metadata": {
                "designer": {
                    "x": -85,
                    "y": -7
                },
                "restore": {
                    "expect": {
                        "format": {
                            "nested": {
                                "type": {
                                    "mode": "chose",
                                    "label": "PNG"
                                },
                                "lossless": {
                                    "mode": "chose"
                                },
                                "as_single_image": {
                                    "mode": "chose"
                                }
                            }
                        },
                        "folderId": {
                            "mode": "chose",
                            "path": [
                                "/"
                            ],
                            "nested": [
                                {
                                    "name": "design_id",
                                    "type": "select",
                                    "label": "Design ID",
                                    "options": "rpc://canva/1/listItems?type=design",
                                    "required": true
                                }
                            ]
                        },
                        "design_id": {
                            "mode": "chose",
                            "label": "Motivational Quotes Automation"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "canva"
                            },
                            "label": "My Canva connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:canva",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "folderId",
                        "type": "folder",
                        "label": "Folder ID",
                        "required": true
                    },
                    {
                        "name": "format",
                        "spec": [
                            {
                                "name": "type",
                                "type": "select",
                                "label": "Type",
                                "required": true,
                                "validate": {
                                    "enum": [
                                        "pdf",
                                        "jpg",
                                        "png",
                                        "pptx",
                                        "gif",
                                        "mp4"
                                    ]
                                }
                            },
                            {
                                "name": "lossless",
                                "type": "boolean",
                                "label": "Lossless"
                            },
                            {
                                "name": "as_single_image",
                                "type": "boolean",
                                "label": "Export as a single image"
                            },
                            {
                                "name": "height",
                                "type": "integer",
                                "label": "Height"
                            },
                            {
                                "name": "width",
                                "type": "integer",
                                "label": "Width"
                            },
                            {
                                "name": "pages",
                                "type": "text",
                                "label": "Pages"
                            }
                        ],
                        "type": "collection",
                        "label": "Export Format",
                        "required": true
                    },
                    {
                        "name": "design_id",
                        "type": "select",
                        "label": "Design ID",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 12,
            "module": "google-drive:uploadAFile",
            "version": 4,
            "parameters": {
                "__IMTCONN__": 2483316
            },
            "mapper": {
                "data": "{{2.data}}",
                "select": "value",
                "convert": false,
                "filename": "{{1.i}}.png",
                "folderId": "/1nzRJyRbkCbW6nZnTGnHECNKbF7uSG-AC/1SJoFShsMsbDEeT3qnnhb47mKQLCuXfcJ/12xMxAFc00yY20P0Crk6kMhvQG5_btNR2/1gkAfZ3tdFt6mcEbchlJvjeDI2VObKNBp",
                "destination": "drive"
            },
            "metadata": {
                "designer": {
                    "x": 183,
                    "y": -4
                },
                "restore": {
                    "expect": {
                        "select": {
                            "label": "Select from the list"
                        },
                        "folderId": {
                            "mode": "chose",
                            "path": [
                                "2. Content Ideas ",
                                "1. Tutorials",
                                "28. Canva + Make.com ",
                                "Canva Images"
                            ]
                        },
                        "destination": {
                            "label": "My Drive"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "google-restricted"
                            },
                            "label": "My Google Restricted connection (cal@dainami.ai)"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:google-restricted",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "type": "hidden"
                    },
                    {
                        "name": "select",
                        "type": "select",
                        "label": "Enter a Folder ID",
                        "required": true,
                        "validate": {
                            "enum": [
                                "map",
                                "value"
                            ]
                        }
                    },
                    {
                        "name": "title",
                        "type": "text",
                        "label": "New File Name"
                    },
                    {
                        "name": "filename",
                        "type": "text",
                        "label": "File Name",
                        "required": true
                    },
                    {
                        "name": "data",
                        "type": "buffer",
                        "label": "Data",
                        "required": true
                    },
                    {
                        "name": "convert",
                        "type": "boolean",
                        "label": "Convert a File",
                        "required": true
                    },
                    {
                        "name": "destination",
                        "type": "select",
                        "label": "New Drive Location",
                        "required": true,
                        "validate": {
                            "enum": [
                                "drive",
                                "share",
                                "team"
                            ]
                        }
                    },
                    {
                        "name": "folderId",
                        "type": "folder",
                        "label": "New Folder Location",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 13,
            "module": "google-drive:makeApiCall",
            "version": 4,
            "parameters": {
                "__IMTCONN__": 2483316
            },
            "mapper": {
                "url": "/v3/files",
                "body": "{\"path\":\"{{12.name}}\"}",
                "method": "POST",
                "headers": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ]
            },
            "metadata": {
                "designer": {
                    "x": 427,
                    "y": -7
                },
                "restore": {
                    "expect": {
                        "qs": {
                            "mode": "chose"
                        },
                        "method": {
                            "mode": "chose",
                            "label": "POST"
                        },
                        "headers": {
                            "mode": "chose",
                            "items": [
                                null
                            ]
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "google-restricted"
                            },
                            "label": "My Google Restricted connection (cal@dainami.ai)"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:google-restricted",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "type": "hidden"
                    },
                    {
                        "name": "url",
                        "type": "text",
                        "label": "URL",
                        "required": true
                    },
                    {
                        "name": "method",
                        "type": "select",
                        "label": "Method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "GET",
                                "POST",
                                "PUT",
                                "PATCH",
                                "DELETE"
                            ]
                        }
                    },
                    {
                        "name": "headers",
                        "spec": [
                            {
                                "name": "key",
                                "type": "text",
                                "label": "Key"
                            },
                            {
                                "name": "value",
                                "type": "text",
                                "label": "Value"
                            }
                        ],
                        "type": "array",
                        "label": "Headers"
                    },
                    {
                        "name": "qs",
                        "spec": [
                            {
                                "name": "key",
                                "type": "text",
                                "label": "Key"
                            },
                            {
                                "name": "value",
                                "type": "text",
                                "label": "Value"
                            }
                        ],
                        "type": "array",
                        "label": "Query String"
                    },
                    {
                        "name": "body",
                        "type": "any",
                        "label": "Body"
                    }
                ]
            }
        },
        {
            "id": 9,
            "module": "openai-gpt-3:analyzeImages",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 2823764
            },
            "mapper": {
                "model": "gpt-4o",
                "top_p": "1",
                "images": [
                    {
                        "imageUrl": "{{12.webContentLink}}",
                        "imageUploadType": "url"
                    }
                ],
                "prompt": "1. Role\nYou are a professional instagram caption writer that specialises in writing compelling and engaging post copies for top creators and brands. \n\n2. Task\nUsing the provided image and information, your task is to generate an optimized instagram caption that is attention grabbing and engaging while following the specific guidelines. \n\n3.Specifics \n- Use the following captions formula to write the copy: Hook, Context, Details/Story, Lesson/Insight, CTA, Hashtags. \n- Make the caption a punchy one-liner that is no longer than 1-2 sentences. \n- Make sure to integrate 1-2 SEO optimised keywords naturally into the post for audience to find it. \n- Use first-person pronouns where appropriate, or third-person pronouns if the caption is based on an article. \n- Include up to 3 relevant hashtags, with the key ones placed earlier in the caption. Make sure to add a spacing break between the hashtag and the caption.\n- Maintain a distinctive brand voice and personality throughout the caption. \n- Fact check any claims and proofread the caption for spelling, grammar and brand style consistency.\n\n4.Context You play a crucial role in creating engaging and optimised Instagram captions that align with brand voice and drive audience engagement. \n\n5. Examples\n\nExample 1: \n- Image quote Input: If you just did all the shit you already know you should be doing but aren’t, you’d be 10x further than you are right now. Sometimes we need to be reminded more than we need to be taught. \n- Caption Output: What separates men from boys is that they don’t do what is convenient, they do what is required. \n\nExample 2: \n- Image quote input: The best results happen long after you get bored of doing it.\n- Caption Output: How to become confident in any skill: Do it so many times you get bored of doing it.\n\nExample 3: \n- Image quote input: If you cannot explain why you believe what you believe, then it isn’t your belief, it’s someone else’s. \n- Caption Output: The only insults that hurts are the ones we believe. \n\n6. Notes- Provide only the caption generated in the exact same format by referencing the example section.",
                "max_tokens": "1000",
                "temperature": "1",
                "n_completions": "1"
            },
            "metadata": {
                "designer": {
                    "x": 687,
                    "y": -7,
                    "name": "GPT Vision "
                },
                "restore": {
                    "expect": {
                        "model": {
                            "mode": "chose",
                            "label": "gpt-4o"
                        },
                        "images": {
                            "mode": "chose",
                            "items": [
                                {
                                    "imageUploadType": {
                                        "mode": "chose",
                                        "label": "Image URL"
                                    }
                                }
                            ]
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "openai-gpt-3"
                            },
                            "label": "My OpenAI connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:openai-gpt-3",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "prompt",
                        "type": "text",
                        "label": "Prompt",
                        "required": true
                    },
                    {
                        "name": "images",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "imageUploadType",
                                    "type": "select",
                                    "label": "How would you like to specify an image?",
                                    "options": [
                                        {
                                            "label": "Image URL",
                                            "value": "url",
                                            "nested": [
                                                {
                                                    "help": "Public URL of the image. For example, `https://getmyimage.com/myimage.png`.",
                                                    "mode": "edit",
                                                    "name": "imageUrl",
                                                    "type": "url",
                                                    "label": "Image URL",
                                                    "mappable": {
                                                        "help": "Public URL of the image. For example, `https://getmyimage.com/myimage.png`."
                                                    },
                                                    "required": true
                                                }
                                            ],
                                            "default": true
                                        },
                                        {
                                            "label": "Image File",
                                            "value": "imageFile",
                                            "nested": [
                                                {
                                                    "help": "Binary data of the image. For example, you can retrieve the binary data of your image using the __HTTP: Get a file__ module.",
                                                    "name": "imageFileData",
                                                    "type": "buffer",
                                                    "label": "Image File",
                                                    "required": true,
                                                    "semantic": "file:data"
                                                }
                                            ]
                                        }
                                    ],
                                    "required": true
                                }
                            ],
                            "type": "collection",
                            "label": "Image"
                        },
                        "type": "array",
                        "label": "Images",
                        "required": true
                    },
                    {
                        "name": "model",
                        "type": "select",
                        "label": "Model",
                        "required": true
                    },
                    {
                        "name": "max_tokens",
                        "type": "number",
                        "label": "Max Tokens"
                    },
                    {
                        "name": "temperature",
                        "type": "number",
                        "label": "Temperature",
                        "validate": {
                            "max": 2,
                            "min": 0
                        }
                    },
                    {
                        "name": "top_p",
                        "type": "number",
                        "label": "Top P",
                        "validate": {
                            "max": 1,
                            "min": 0
                        }
                    },
                    {
                        "name": "n_completions",
                        "type": "number",
                        "label": "Number"
                    }
                ]
            }
        },
        {
            "id": 14,
            "module": "instagram-business:CreatePostPhoto",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 2969440
            },
            "mapper": {
                "caption": "{{9.result}}",
                "accountId": "17841459721592041",
                "image_url": "{{12.webContentLink}}"
            },
            "metadata": {
                "designer": {
                    "x": 975,
                    "y": -11
                },
                "restore": {
                    "expect": {
                        "accountId": {
                            "mode": "chose",
                            "label": "Lumivaux (@testbusinesslumi)"
                        },
                        "user_tags": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "facebook"
                            },
                            "label": "My Facebook connection (Calvin Hia)"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:facebook",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "accountId",
                        "type": "select",
                        "label": "Page",
                        "required": true
                    },
                    {
                        "name": "image_url",
                        "type": "url",
                        "label": "Photo URL",
                        "required": true
                    },
                    {
                        "name": "caption",
                        "type": "text",
                        "label": "Caption"
                    },
                    {
                        "name": "user_tags",
                        "spec": [
                            {
                                "name": "username",
                                "type": "text",
                                "label": "Username",
                                "required": true,
                                "validate": {
                                    "pattern": "^(?!@)"
                                }
                            },
                            {
                                "name": "x",
                                "type": "number",
                                "label": "X position",
                                "required": true,
                                "validate": {
                                    "max": 1,
                                    "min": 0
                                }
                            },
                            {
                                "name": "y",
                                "type": "number",
                                "label": "Y position",
                                "required": true,
                                "validate": {
                                    "max": 1,
                                    "min": 0
                                }
                            }
                        ],
                        "type": "array",
                        "label": "User Tags"
                    },
                    {
                        "name": "location_id",
                        "type": "text",
                        "label": "Location ID"
                    }
                ]
            }
        }
    ],
    "metadata": {
        "instant": false,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "slots": null,
            "confidential": false,
            "dataloss": false,
            "dlq": false,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "zone": "us1.make.com"
    }
}