This workflow corresponds to n8n.io template #6653 — we link there as the canonical source.
This workflow follows the Google Drive → Google Drive Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "gvEg50E2MD9C3fop",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Postiz scheduler for n8n",
"tags": [],
"nodes": [
{
"id": "4c7c53ff-85f9-46a1-b90c-4a0b5d6ce7fb",
"name": "Google Drive Trigger",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-3104,
1312
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "1t3A6BXYskPkAl_VxS5-NjSyzjLiNxv-B",
"cachedResultUrl": "https://drive.google.com/drive/folders/1t3A6BXYskPkAl_VxS5-NjSyzjLiNxv-B",
"cachedResultName": "Video scheduler"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "5c570f99-6a96-4154-b615-0a2a11e45032",
"name": "Download file",
"type": "n8n-nodes-base.googleDrive",
"position": [
-2880,
1312
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 3
},
{
"id": "c3c4ee50-1a3b-4408-979f-3759c46f340c",
"name": "Extract datetime",
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"position": [
-1936,
1312
],
"parameters": {
"text": "={{ $json.data['Date time'] }}",
"options": {},
"attributes": {
"attributes": [
{
"name": "datetime",
"required": true,
"description": "=Date and time in ISO 8601 format with milliseconds and UTC + 2 ('Z'), e.g., 2024-12-14T08:18:54.274Z. Today is {{ $now }}. Return the output in UTC+2."
}
]
}
},
"typeVersion": 1.2
},
{
"id": "ec3be7bc-970b-48a4-aa46-c94afe52a381",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3072,
1536
],
"parameters": {
"width": 768,
"height": 912,
"content": "# TikTok post settings\n\n- **title** \n - Text string for the caption of your post (max ~2200 characters).\n\n- **privacy_level** \n - Who can see your video. \n - Allowed: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`\n\n- **duet** \n - Allow others to create Duet videos with your post. \n - Allowed: `true` or `false`\n\n- **stitch** \n - Allow others to use your video in their Stitch. \n - Allowed: `true` or `false`\n\n- **comment** \n - Enable or disable comments on your post. \n - Allowed: `true` or `false`\n\n- **autoAddMusic** \n - Add music automatically to your video. \n - Allowed: `\"yes\"` or `\"no\"`\n\n- **brand_content_toggle** \n - Marks the post as branded/promotional content. \n - Allowed: `true` or `false`\n\n- **brand_organic_toggle** \n - Marks branded content as organic (natural, unpaid). \n - Allowed: `true` or `false`\n\n- **content_posting_method** \n - Method of posting. \n - Allowed: `\"DIRECT_POST\"` or `\"UPLOAD\"`\n"
},
"typeVersion": 1
},
{
"id": "c5fca207-81d2-45fe-9648-58ba6bdbc7ee",
"name": "Schedule on TikTok",
"type": "n8n-nodes-postiz.postiz",
"position": [
-864,
928
],
"parameters": {
"date": "={{ $('Extract datetime').item.json.output.datetime }}",
"type": "schedule",
"posts": {
"post": [
{
"value": {
"contentItem": [
{
"image": {
"imageItem": [
{
"id": "={{ $('Upload to Postiz').item.json.id }}",
"path": "={{ $('Upload to Postiz').item.json.path }}"
}
]
},
"content": "={{ $('Send a text message').item.json.data.Caption }}"
}
]
},
"settings": {
"setting": [
{
"key": "title",
"value": "={{ $('Send a text message').item.json.data.Title }}"
},
{
"key": "privacy_level",
"value": "={{ $('Set fields').item.json.privacy_level }}"
},
{
"key": "duet",
"value": "={{ $('Set fields').item.json.duet }}"
},
{
"key": "stitch",
"value": "={{ $('Set fields').item.json.stitch }}"
},
{
"key": "comment",
"value": "={{ $('Set fields').item.json.comment }}"
},
{
"key": "autoAddMusic",
"value": "={{ $('Set fields').item.json.autoAddMusic }}"
},
{
"key": "brand_content_toggle",
"value": "={{ $('Set fields').item.json.brand_content_toggle }}"
},
{
"key": "brand_organic_toggle",
"value": "={{ $('Set fields').item.json.brand_organic_toggle }}"
},
{
"key": "content_posting_method",
"value": "={{ $('Set fields').item.json.content_posting_method }}"
}
]
},
"integrationId": "={{ $('Get integrations').item.json.id }}"
}
]
}
},
"credentials": {
"postizApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "8c078b6a-234c-4c73-a0ba-73172384f108",
"name": "Upload to Postiz",
"type": "n8n-nodes-base.httpRequest",
"position": [
-2656,
1312
],
"parameters": {
"url": "https://api.postiz.com/public/v1/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
},
"typeVersion": 4.2
},
{
"id": "fad0d8d9-5f34-49d5-a6e6-33c959aad6c7",
"name": "Get integrations",
"type": "n8n-nodes-postiz.postiz",
"position": [
-1536,
1312
],
"parameters": {
"operation": "getIntegrations"
},
"credentials": {
"postizApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "a764c2f6-52ff-4adf-9af6-46ce622acbde",
"name": "Schedule on Youtube",
"type": "n8n-nodes-postiz.postiz",
"position": [
-864,
1120
],
"parameters": {
"date": "={{ $('Extract datetime').item.json.output.datetime }}",
"type": "schedule",
"posts": {
"post": [
{
"value": {
"contentItem": [
{
"image": {
"imageItem": [
{
"id": "={{ $('Set fields').item.json.id }}",
"path": "={{ $('Set fields').item.json.path }}"
}
]
},
"content": "={{ $('Send a text message').item.json.data.Caption }}"
}
]
},
"settings": {
"setting": [
{
"key": "title",
"value": "={{ $('Send a text message').item.json.data.Title }}"
},
{
"key": "type",
"value": "={{ $('Set fields').item.json.youtubeType }}"
}
]
},
"integrationId": "={{ $json.id }}"
}
]
}
},
"credentials": {
"postizApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "d85d3683-d9e7-4387-adf9-d63617c2b358",
"name": "Schedule on Facebook",
"type": "n8n-nodes-postiz.postiz",
"position": [
-864,
1312
],
"parameters": {
"date": "={{ $('Extract datetime').item.json.output.datetime }}",
"type": "schedule",
"posts": {
"post": [
{
"value": {
"contentItem": [
{
"image": {
"imageItem": [
{
"id": "={{ $('Set fields').item.json.id }}",
"path": "={{ $('Set fields').item.json.path }}"
}
]
},
"content": "={{ $('Send a text message').item.json.data.Caption }}"
}
]
},
"settings": {
"setting": [
{
"key": "title",
"value": "={{ $('Send a text message').item.json.data.Title }}"
}
]
},
"integrationId": "={{ $json.id }}"
}
]
}
},
"credentials": {
"postizApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "c7c8f815-1c79-44a0-98d4-7d5abdf6589d",
"name": "Schedule on Instagram",
"type": "n8n-nodes-postiz.postiz",
"position": [
-864,
1504
],
"parameters": {
"date": "={{ $('Extract datetime').item.json.output.datetime }}",
"type": "schedule",
"posts": {
"post": [
{
"value": {
"contentItem": [
{
"image": {
"imageItem": [
{
"id": "={{ $('Set fields').item.json.id }}",
"path": "={{ $('Set fields').item.json.path }}"
}
]
},
"content": "={{ $('Send a text message').item.json.data.Caption }}"
}
]
},
"settings": {
"setting": [
{
"key": "title",
"value": "={{ $('Send a text message').item.json.data.Title }}"
},
{
"key": "post_type",
"value": "={{ $('Set fields').item.json.instagramType }}"
}
]
},
"integrationId": "={{ $json.id }}"
}
]
}
},
"credentials": {
"postizApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "cd382111-d04f-412d-9481-79a45226f86e",
"name": "Schedule on Threads",
"type": "n8n-nodes-postiz.postiz",
"position": [
-864,
1696
],
"parameters": {
"date": "={{ $('Extract datetime').item.json.output.datetime }}",
"type": "schedule",
"posts": {
"post": [
{
"value": {
"contentItem": [
{
"image": {
"imageItem": [
{
"id": "={{ $('Set fields').item.json.id }}",
"path": "={{ $('Set fields').item.json.path }}"
}
]
},
"content": "={{ $('Send a text message').item.json.data.Caption }}"
}
]
},
"settings": {
"setting": [
{
"key": "title",
"value": "={{ $('Send a text message').item.json.data.Title }}"
}
]
},
"integrationId": "={{ $json.id }}"
}
]
}
},
"credentials": {
"postizApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
},
{
"id": "daefc90c-4a7d-4f66-8d58-724e00d7c791",
"name": "Set fields",
"type": "n8n-nodes-base.set",
"position": [
-2432,
1312
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9edc5e75-5fe1-4d0e-b2a0-4e58dd5038c9",
"name": "privacy_level",
"type": "string",
"value": "PUBLIC_TO_EVERYONE"
},
{
"id": "99acb1ab-3d6d-41d1-8b5c-50ea087a8718",
"name": "duet",
"type": "boolean",
"value": true
},
{
"id": "e4204d31-e495-409e-b6aa-ca89507d2d95",
"name": "stitch",
"type": "boolean",
"value": true
},
{
"id": "e56063b9-5a1a-421d-a1e9-ed5d656da52f",
"name": "comment",
"type": "boolean",
"value": true
},
{
"id": "0f48d08a-598f-4480-9e18-f3a72397bfc8",
"name": "autoAddMusic",
"type": "string",
"value": "no"
},
{
"id": "47add0ab-e7d1-45b8-9a4f-9a9ada01d3e5",
"name": "brand_organic_toggle",
"type": "boolean",
"value": false
},
{
"id": "f67436b0-d826-4d8e-996f-619ce3587c75",
"name": "brand_content_toggle",
"type": "boolean",
"value": false
},
{
"id": "eb623872-c1c5-4603-b29b-a4a3655df7a4",
"name": "content_posting_method",
"type": "string",
"value": "DIRECT_POST"
},
{
"id": "f6392389-f97b-401c-85d6-056f31487f74",
"name": "youtubeType",
"type": "string",
"value": "public"
},
{
"id": "0c83ad0e-63cd-461b-838e-9c4ec960e7e7",
"name": "instagramType",
"type": "string",
"value": "post"
}
]
},
"includeOtherFields": true
},
"typeVersion": 3.4
},
{
"id": "99c56087-a358-4f32-a93a-9c9b16596657",
"name": "Split Out",
"type": "n8n-nodes-base.splitOut",
"position": [
-1312,
1312
],
"parameters": {
"options": {},
"fieldToSplitOut": "id, identifier"
},
"typeVersion": 1
},
{
"id": "3e0c9305-844f-4006-9596-1b2ab82d276d",
"name": "Filter",
"type": "n8n-nodes-base.filter",
"position": [
-1088,
928
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "19f5c3c9-379b-47a5-87a6-51d5307f455e",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.identifier }}",
"rightValue": "tiktok"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "52ff4c0c-7b17-46e3-b7ad-5230f7f169e1",
"name": "Filter1",
"type": "n8n-nodes-base.filter",
"position": [
-1088,
1120
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6e46ca24-81cc-4fa7-a3e2-cc7c5286e5bd",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.identifier }}",
"rightValue": "youtube"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "1ca45b01-74f5-4e28-bfed-1aa8754562d1",
"name": "Filter2",
"type": "n8n-nodes-base.filter",
"position": [
-1088,
1312
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6e46ca24-81cc-4fa7-a3e2-cc7c5286e5bd",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.identifier }}",
"rightValue": "facebook"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "c0a3c982-8770-4e70-b498-5ae02e30868e",
"name": "Filter3",
"type": "n8n-nodes-base.filter",
"position": [
-1088,
1504
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6e46ca24-81cc-4fa7-a3e2-cc7c5286e5bd",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.identifier }}",
"rightValue": "instagram"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "ba5086a8-628a-432f-be34-e32413cfe6ab",
"name": "Filter4",
"type": "n8n-nodes-base.filter",
"position": [
-1088,
1696
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6e46ca24-81cc-4fa7-a3e2-cc7c5286e5bd",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.identifier }}",
"rightValue": "threads"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "76b438c4-1c95-4fcb-a87d-3ca0b0e2387d",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2512,
1168
],
"parameters": {
"color": 3,
"height": 304,
"content": "## Set fields \nAdjust your social media settings according to your needs"
},
"typeVersion": 1
},
{
"id": "fa0ad2a3-0e80-4e78-a833-6806a097ac68",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2256,
1664
],
"parameters": {
"width": 384,
"height": 224,
"content": "# Youtube post settings\n\n- **type** \n - `public`, `unlisted` or `private`"
},
"typeVersion": 1
},
{
"id": "c3381335-f075-42ed-93e5-87b30bcdc03f",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2256,
1952
],
"parameters": {
"width": 384,
"height": 224,
"content": "# Instagram post settings\n\n- **post_type** \n - `post` or `story`"
},
"typeVersion": 1
},
{
"id": "d324906e-c0ae-4efe-87d9-c9d78a7b7935",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3664,
1088
],
"parameters": {
"color": 4,
"width": 464,
"height": 544,
"content": "## Requirements\n### Postiz\n- Create an account on [Postiz](https://postiz.com/?ref=onenode)\n- Install the [community node from Postiz](https://www.npmjs.com/package/n8n-nodes-postiz)\n- Connect your desired social media accounts\n- Get your API key and enable credentials on n8n\n\n### Google Drive\n- Create a folder that will watch for new files added\n- Enable your credentials on n8n for Google Drive\n- Insert a video in mp4 format. Or use Cloud Convert and convert it to mp4 before uploading to Postiz\n\n### Human in the loop\n- Confirm the post title, date and time (you can insert in natural language), and caption by filling the form\n\n## Configuration\nEdit the fields that will be passed later into the workflow inside the red sticker.\nAdapt the system prompt to generate the tags for youtube"
},
"typeVersion": 1
},
{
"id": "431f8f65-0598-4367-917a-69653c1981c3",
"name": "Send a text message",
"type": "n8n-nodes-base.telegram",
"position": [
-2208,
1312
],
"parameters": {
"chatId": "insert your private chat id",
"message": "fill post details",
"options": {
"appendAttribution": false
},
"operation": "sendAndWait",
"formFields": {
"values": [
{
"fieldLabel": "Title",
"placeholder": "Title",
"requiredField": true
},
{
"fieldLabel": "Date time",
"requiredField": true
},
{
"fieldLabel": "Caption",
"requiredField": true
}
]
},
"responseType": "customForm"
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "3801ed48-b008-4e57-bc93-31fd57c4fc0a",
"name": "Delete a file",
"type": "n8n-nodes-base.googleDrive",
"position": [
-608,
928
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $('Google Drive Trigger').item.json.id }}"
},
"options": {},
"operation": "deleteFile"
},
"credentials": {
"googleDriveOAuth2Api": {
"name": "<your credential>"
}
},
"typeVersion": 3
},
{
"id": "0b1cc519-bb5c-4525-af4b-a62a1b6eb1fc",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-672,
800
],
"parameters": {
"height": 320,
"content": "## Storage cleanup\nDeletes the initial file uploaded in your designated Drive folder"
},
"typeVersion": 1
},
{
"id": "900a2037-c516-4c4d-8784-369c55b2e7b2",
"name": "OpenRouter Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-2000,
1488
],
"parameters": {
"model": "qwen/qwen3-235b-a22b-2507",
"options": {}
},
"credentials": {
"openRouterApi": {
"name": "<your credential>"
}
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"timezone": "Europe/Madrid",
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": "qFOYM3IA9QZ7fMym",
"executionOrder": "v1"
},
"versionId": "718c0ee6-8e0b-4481-b1df-d0c606e0bc73",
"connections": {
"Filter": {
"main": [
[
{
"node": "Schedule on TikTok",
"type": "main",
"index": 0
}
]
]
},
"Filter1": {
"main": [
[
{
"node": "Schedule on Youtube",
"type": "main",
"index": 0
}
]
]
},
"Filter2": {
"main": [
[
{
"node": "Schedule on Facebook",
"type": "main",
"index": 0
}
]
]
},
"Filter3": {
"main": [
[
{
"node": "Schedule on Instagram",
"type": "main",
"index": 0
}
]
]
},
"Filter4": {
"main": [
[
{
"node": "Schedule on Threads",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
},
{
"node": "Filter1",
"type": "main",
"index": 0
},
{
"node": "Filter2",
"type": "main",
"index": 0
},
{
"node": "Filter3",
"type": "main",
"index": 0
},
{
"node": "Filter4",
"type": "main",
"index": 0
}
]
]
},
"Set fields": {
"main": [
[
{
"node": "Send a text message",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Upload to Postiz",
"type": "main",
"index": 0
}
]
]
},
"Extract datetime": {
"main": [
[
{
"node": "Get integrations",
"type": "main",
"index": 0
}
]
]
},
"Get integrations": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Upload to Postiz": {
"main": [
[
{
"node": "Set fields",
"type": "main",
"index": 0
}
]
]
},
"Schedule on TikTok": {
"main": [
[
{
"node": "Delete a file",
"type": "main",
"index": 0
}
]
]
},
"Schedule on Threads": {
"main": [
[]
]
},
"Schedule on Youtube": {
"main": [
[]
]
},
"Send a text message": {
"main": [
[
{
"node": "Extract datetime",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Trigger": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
},
"Schedule on Facebook": {
"main": [
[]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "Extract datetime",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Schedule on Instagram": {
"main": [
[]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
googleDriveOAuth2ApihttpHeaderAuthopenRouterApipostizApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Source: https://n8n.io/workflows/6653/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
End-to-End Video Creation from user idea or transcript AI-Powered Scriptwriting using LLMs (e.g., DeepSeek via OpenRouter) Voiceover Generation with customizable TTS voices Image Scene Generation usin
Effortlessly track your expenses with MoneyMate, an n8n workflow that transforms receipts into organized financial insights.
Disclaimer: This template requires the community node, which is only available on self-hosted n8n instances. You’ll need a self-hosted n8n setup to use this workflow.
This workflow allows you to automatically import research papers into your Zotero library by simply sending a DOI link through Telegram. It fetches metadata from reliable sources such as Crossref, Dat
This workflow turns a short text idea into stunning, AI-generated anime-style images, all from Telegram. It combines a chat LLM for prompt enhancement with Gemini (free) or Leonardo.AI (paid) image mo