English
n8n Workflow Automation
Connect StackVid with n8n to automate social media publishing from Google Drive, Airtable, Notion, or AI video generation pipelines (Sora, Kling, Runway).
1. Credentials Setup in n8n
- Go to Credentials -> Click Add Credential.
- Select Header Auth.
- Set:
- Name:
Header: X-API-Key - Value:
tk_live_YOUR_KEY
- Name:
- Click Save.
2. Pipeline: Auto-Publish from Google Drive to TikTok
[Google Drive Trigger] ──► [HTTP Request: Get Upload URL] ──► [HTTP Request: PUT Binary] ──► [HTTP Request: Publish TikTok]Node 1: Request Presigned URL
- Method:
POST - URL:
https://api.stackvid.dev/api/uploads/presigned-url - Body:json
{ "fileType": "VIDEO", "contentType": "video/mp4", "fileSizeBytes": "={{ $json.size }}" }
Node 2: Binary Upload
- Method:
PUT - URL:
={{ $json.uploadUrl }} - Send Binary Data: Yes
- Headers:
Content-Type: video/mp4
Node 3: Publish to TikTok
- Method:
POST - URL:
https://api.stackvid.dev/api/tiktok/upload - Body:json
{ "videoUrl": "={{ $('HTTP Request: Get Upload URL').item.json.publicUrl }}", "caption": "={{ $('Google Drive Trigger').item.json.name }} #viral", "targetChannel": "US Fashion Channel" }