Générez automatiquement des courriers ou emails personnalisés selon le contexte et la demande, à partir d’un simple formulaire.
Générez automatiquement des courriers ou emails personnalisés selon le contexte et la demande, à partir d’un simple formulaire.
{
"name": "Remove the background from Google Drive images with Picsart",
"flow": [
{
"id": 1,
"module": "google-drive:watchFilesInAFolder",
"version": 4,
"parameters": {
"limit": 2,
"select": "create",
"folderId": "/1gqJ4-vRlU-6mqb3fMtc6wo7YS6ov0cjm",
"mimeType": "all",
"destination": "drive"
},
"mapper": {},
"metadata": {
"designer": {
"x": -283,
"y": 21
},
"restore": {
"parameters": {
"select": {
"label": "By Created Time"
},
"folderId": {
"path": [
"RemoveBG2"
]
},
"mimeType": {
"label": "All"
},
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "google-restricted"
},
"label": "My Google Restricted connection (aram.mkhitaryan@picsart.com)"
},
"destination": {
"label": "My Drive"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:google-restricted",
"label": "Connection",
"required": true
},
{
"type": "hidden"
},
{
"name": "select",
"type": "select",
"label": "Watch Files",
"required": true,
"validate": {
"enum": [
"create",
"modify"
]
}
},
{
"name": "destination",
"type": "select",
"label": "Choose a Drive",
"required": true,
"validate": {
"enum": [
"drive",
"share",
"team"
]
}
},
{
"name": "mimeType",
"type": "select",
"label": "File Types to Watch",
"required": true,
"validate": {
"enum": [
"all",
"document",
"spreadsheet",
"slide",
"drawing"
]
}
},
{
"name": "limit",
"type": "uinteger",
"label": "Limit",
"required": true
},
{
"name": "folderId",
"type": "folder",
"label": "Select the Folder to be Watched",
"required": true
}
]
}
},
{
"id": 2,
"module": "google-drive:getAFile",
"version": 4,
"parameters": {},
"filter": {
"name": "Watching for supported image formats",
"conditions": [
[
{
"a": "{{1.mimeType}}",
"b": "image/jpg",
"o": "text:equal"
}
],
[
{
"a": "{{1.mimeType}}",
"b": "image/jpeg",
"o": "text:equal"
}
],
[
{
"a": "{{1.mimeType}}",
"b": "image/png",
"o": "text:equal"
}
],
[
{
"a": "{{1.mimeType}}",
"b": "image/webp",
"o": "text:equal"
}
],
[
{
"a": "{{1.mimeType}}",
"b": "image/tif",
"o": "text:equal"
}
],
[
{
"a": "{{1.mimeType}}",
"b": "image/mpo",
"o": "text:equal"
}
]
]
},
"mapper": {
"file": "{{1.id}}",
"select": "map",
"formatDrawings": "image/jpeg",
"formatDocuments": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"formatSpreadsheets": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"formatPresentations": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
"metadata": {
"designer": {
"x": 142,
"y": 24
},
"restore": {
"expect": {
"select": {
"label": "Enter manually"
},
"formatDrawings": {
"label": "JPEG"
},
"formatDocuments": {
"label": "MS Word Document"
},
"formatSpreadsheets": {
"label": "MS Excel"
},
"formatPresentations": {
"label": "MS PowerPoint"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "google-restricted"
},
"label": "My Google Restricted connection (aram.mkhitaryan@picsart.com)"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:google-restricted",
"label": "Connection",
"required": true
}
],
"expect": [
{
"type": "hidden"
},
{
"name": "select",
"type": "select",
"label": "Enter a File ID",
"required": true,
"validate": {
"enum": [
"map",
"value"
]
}
},
{
"name": "formatDocuments",
"type": "select",
"label": "Convert Google Documents Files to Format",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf",
"application/vnd.oasis.opendocument.text",
"text/html",
"text/plain",
"application/rtf"
]
}
},
{
"name": "formatSpreadsheets",
"type": "select",
"label": "Convert Google Spreadsheets Files to Format",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/x-vnd.oasis.opendocument.spreadsheet",
"application/pdf"
]
}
},
{
"name": "formatPresentations",
"type": "select",
"label": "Convert Google Slides Files to Format",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/pdf"
]
}
},
{
"name": "formatDrawings",
"type": "select",
"label": "Convert Google Drawings Files to Format",
"required": true,
"validate": {
"enum": [
"image/jpeg",
"image/png",
"image/svg+xml",
"application/pdf"
]
}
},
{
"name": "file",
"type": "text",
"label": "File ID",
"required": true
}
]
}
},
{
"id": 3,
"module": "picsart:removeChangeBackground",
"version": 1,
"parameters": {},
"mapper": {
"image": "{{2.data}}",
"format": "png",
"fileName": "{{2.name}}",
"imageType": "image",
"background": "transparent"
},
"metadata": {
"designer": {
"x": 530,
"y": 21
},
"restore": {
"expect": {
"format": {
"label": "PNG"
},
"imageType": {
"label": "DATA"
},
"background": {
"label": "Transparent/White"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "picsart"
},
"label": "My Picsart connection"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:picsart",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "imageType",
"type": "select",
"label": "Image URL/DATA",
"required": true,
"validate": {
"enum": [
"image_url",
"image"
]
}
},
{
"name": "background",
"type": "select",
"label": "Background",
"required": true,
"validate": {
"enum": [
"transparent",
"text",
"bg_image_url",
"bg_image"
]
}
},
{
"name": "format",
"type": "select",
"label": "Format",
"required": true,
"validate": {
"enum": [
"jpg",
"png",
"webp"
]
}
},
{
"name": "fileName",
"type": "filename",
"label": "File Name",
"required": true
},
{
"name": "image",
"type": "buffer",
"label": "Data",
"required": true
}
]
}
},
{
"id": 5,
"module": "http:ActionGetFile",
"version": 3,
"parameters": {
"handleErrors": false
},
"mapper": {
"url": "{{3.imageURL}}",
"method": "get",
"serializeUrl": false,
"shareCookies": false
},
"metadata": {
"designer": {
"x": 881,
"y": 21
},
"restore": {},
"parameters": [
{
"name": "handleErrors",
"type": "boolean",
"label": "Evaluate all states as errors (except for 2xx and 3xx )",
"required": true
}
],
"expect": [
{
"name": "url",
"type": "url",
"label": "URL",
"required": true
},
{
"name": "serializeUrl",
"type": "boolean",
"label": "Serialize URL",
"required": true
},
{
"name": "method",
"type": "hidden",
"label": "Method"
},
{
"name": "shareCookies",
"type": "boolean",
"label": "Share cookies with other HTTP modules",
"required": true
}
]
}
},
{
"id": 4,
"module": "google-drive:uploadAFile",
"version": 4,
"parameters": {},
"mapper": {
"data": "{{5.data}}",
"select": "map",
"convert": false,
"filename": "{{5.fileName}}",
"folderId": "TARGET_FOLDER_ID"
},
"metadata": {
"designer": {
"x": 1286,
"y": 20
},
"restore": {
"expect": {
"select": {
"label": "Enter manually"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "google-restricted"
},
"label": "My Google Restricted connection (aram.mkhitaryan@picsart.com)"
}
}
},
"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": "folderId",
"type": "text",
"label": "Folder ID",
"required": true
}
]
}
}
],
"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": "eu2.make.com",
"notes": [
{
"moduleIds": [
4
],
"content": "As the last step, the file gets uploaded back to Google Drive. Make sure to specify the correct folder where all results should be collected.
",
"isFilterNote": false,
"metadata": {
"color": "#9138FE"
}
},
{
"moduleIds": [
3
],
"content": "The file will be downloaded from Google Drive, processed in Picsart, and then downloaded from Picsart for further use.
",
"isFilterNote": false,
"metadata": {
"color": "#9138FE"
}
},
{
"moduleIds": [
1
],
"content": "Watching for new files in a folder. Make sure to select the right format, how frequently to check, from when you want to check for new files.
",
"isFilterNote": false,
"metadata": {
"color": "#9138FE"
}
}
]
}
}