Twitter 标题生成器
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 EmailSend, GoogleDrive, HttpRequest, ChainLlm, GoogleDriveTrigger 等节点。 使用 Cloudinary 和 GPT-4o-mini 从 Google Drive 图片生成 Twitter/X 标题
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "AaKfljggy90pXuZs",
"meta": {
"instanceId": "8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177"
},
"name": "Twitter 标题生成器",
"tags": [],
"nodes": [
{
"id": "406e4913-92c2-4619-9c96-64a9d1ddb556",
"name": "基础LLM链",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
672,
0
],
"parameters": {
"text": "={{ $json.secure_url }} || Analyze this automation image and generate a classy and attractive caption for Twitter (X) based on the instructions in the system prompt.",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=You are a professional Twitter (X) content strategist and email designer.\n\nWhen given an image url , dashboard, or visual automation, analyze it deeply and return the following two outputs:\n\nA short, professional subject line (max 60 characters).\n\nA complete HTML email body with inline CSS that includes:\n\nThe image (use {{ $json.secure_url }} in the src attribute).\n\nA Twitter (X)-style post block (formatted like a professional social copy within the email) that contains:\n• Headline (bold, 1 line)\n• Primary tweet — one tweet, punchy, <= 280 characters, optimized for engagement (clear hook + value + CTA).\n• Tweet thread — 3 short tweets (each <= 280 characters) that expand the idea: Hook → Insight → Action. Number the tweets (1/3, 2/3, 3/3).\n• Alt text for the image (1–2 lines, descriptive, <120 characters).\n• Suggested first-reply (one short reply to pin under the tweet/thread, e.g., resources or link).\n• 10–12 relevant Twitter/X hashtags (high-signal, platform-appropriate — avoid over-stuffing; pick the most relevant).\n• Suggested @mentions (1–3 accounts types to mention, e.g., partner, tool, or community handles; leave as placeholders if unknown).\n• Recommended posting windows (IST) — 3 time slots ideal for engagement.\n\nA compact, professional summary section inside the email with:\n• 2–3 sentence overview of the visual\n• Bullet list of Key features (3–6 bullets)\n• Bullet list of Ideal users (2–5 bullets)\n• “Built with” list (tools/tech stack; 3–6 items)\n• Single-line CTA (e.g., “Try it”, “Request demo”, “Reply to learn more”)\n\nDesign & accessibility:\n• Use {{ $json.secure_url }} for the image src.\n• Include the alt text near the image tag (use the same alt text as in the Twitter block).\n• Max width 600px, centered content.\n• White content card on a light gray background, soft box shadow, clean spacing, readable bullets.\n• Inline CSS only (no external styles).\n• Fonts: Arial or Helvetica.\n• Email must render well in Gmail & Outlook.\n• Keep markup simple and robust: tables are allowed if needed for Outlook compatibility, but keep it clean.\n\nStyle & length rules:\n\nSubject line ≤ 60 characters.\n\nPrimary tweet and each thread tweet ≤ 280 characters (include a character count comment next to each tweet inside the email as a small, parenthetical note).\n\nHeadline: single bold line inside the email.\n\nHashtags: 10–12 total.\n\nKeep the whole email concise — one glance should tell the reader what the visual does and how to share it on X.\n\n🎯 Your response must follow this exact format — do not include code blocks or markdown:\n\nSubject: [your subject line here]\nBody: [your full HTML content here — one line or multiline]\n\nDo not return JSON. Do not use ``` or Markdown formatting."
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "891fb13d-10e5-4f9e-aaca-d1f8529b299f",
"name": "Azure OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
768,
224
],
"parameters": {
"model": "gpt-4o-mini",
"options": {}
},
"credentials": {
"azureOpenAiApi": {
"id": "C3WzT18XqF8OdVM6",
"name": "Azure Open AI account"
}
},
"typeVersion": 1
},
{
"id": "1d3b6dc1-e7f2-4577-b17f-c2872831d5ad",
"name": "发送邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
1072,
0
],
"webhookId": "20066331-0f47-48ec-8ad5-77cb26504344",
"parameters": {
"html": "={{ $json.text }}",
"options": {},
"subject": "Twitter Post",
"toEmail": "<RECIEVER_EMAIL",
"fromEmail": "<YOUR_EMAIL>"
},
"credentials": {
"smtp": {
"id": "gJdU446NGTfpXScn",
"name": "SMTP account 2"
}
},
"typeVersion": 2.1
},
{
"id": "4d7f5f02-0d0d-44e6-90b9-738b5779596e",
"name": "将帧上传到 Cloudinary",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
448,
0
],
"parameters": {
"url": "https://api.cloudinary.com/v1_1/dpuvigpmt/image/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
},
{
"name": "upload_preset",
"value": "upload"
}
]
},
"genericAuthType": "httpBasicAuth"
},
"credentials": {
"httpBasicAuth": {
"id": "JU8RVqLrd8GnIY3j",
"name": "Unnamed credential"
}
},
"retryOnFail": true,
"typeVersion": 4.2
},
{
"id": "cda8a3ff-4b61-4d68-8fca-580b10750baf",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1072,
-320
],
"parameters": {
"color": 3,
"height": 304,
"content": "类型:n8n-nodes-base.emailSend"
},
"typeVersion": 1
},
{
"id": "8ef3c770-d420-49a2-a6d1-ffa0592e5abb",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
736,
-352
],
"parameters": {
"color": 4,
"height": 336,
"content": "类型:n8n-nodes-base.langchain"
},
"typeVersion": 1
},
{
"id": "809d5a50-725c-46ce-a28a-ad4ade39cf50",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
368,
-336
],
"parameters": {
"color": 5,
"height": 320,
"content": "类型:n8n-nodes-base.httpRequest"
},
"typeVersion": 1
},
{
"id": "d55c6928-f5ab-487c-a560-6df24b23c1f4",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
176
],
"parameters": {
"color": 6,
"height": 240,
"content": "类型:n8n-nodes-base.googleDrive"
},
"typeVersion": 1
},
{
"id": "37e94fb7-07c1-4268-bd70-90aa250f9e63",
"name": "便利贴5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-192,
-272
],
"parameters": {
"color": 7,
"height": 256,
"content": "类型:n8n-nodes-base.googleDriveTrigger"
},
"typeVersion": 1
},
{
"id": "0fc331db-8dae-4974-a19a-bbfea8d3107b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
528,
352
],
"parameters": {
"color": 4,
"height": 224,
"content": "类型:n8n-nodes-base.azureOpenAi"
},
"typeVersion": 1
},
{
"id": "eb3add42-5770-45c0-a2e7-2958def4a8eb",
"name": "从 Drive 获取文件",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
0,
0
],
"parameters": {
"event": "fileUpdated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "1GDkSI9txB88oOcu_jr1tXEzkT0_FoGmC",
"cachedResultUrl": "https://drive.google.com/drive/folders/1GDkSI9txB88oOcu_jr1tXEzkT0_FoGmC",
"cachedResultName": "Instagram "
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "gQtjXVGUgZru29qC",
"name": "Google Drive account"
}
},
"typeVersion": 1
},
{
"id": "535f3639-dcc5-4fd3-9c14-ca740ed3b138",
"name": "下载 Drive 文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
224,
0
],
"parameters": {
"fileId": "={{ $json[\"id\"] }}",
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "gQtjXVGUgZru29qC",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "47369773-409f-4a02-8b4b-22e5c19c0d2a",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-608,
-80
],
"parameters": {
"color": 4,
"width": 336,
"height": 592,
"content": "前置条件与 API 要求"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "383087ac-19f2-452d-a452-0d553ac7c581",
"connections": {
"Basic LLM Chain": {
"main": [
[
{
"node": "Send email",
"type": "main",
"index": 0
}
]
]
},
"Get files from drive": {
"main": [
[
{
"node": "Download the drive files",
"type": "main",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Download the drive files": {
"main": [
[
{
"node": "upload frames to cloudinary",
"type": "main",
"index": 0
}
]
]
},
"upload frames to cloudinary": {
"main": [
[
{
"node": "Basic LLM Chain",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
LinkedIn帖子邮件提醒
使用GPT-4o从Google Drive图片自动生成LinkedIn帖子
Email Send
Google Drive
Http Request
+4
12 节点Rahul Joshi
内容创作
使用 Azure OpenAI 和 Google Workspace 自动化 DEI 资格筛选
使用Azure GPT-4o、Google云端硬盘和表格自动进行DEI资格筛选
If
Code
Gmail
+9
19 节点Rahul Joshi
内容创作
人员流失风险预警工作流(Azure OpenAI + n8n)
员工流失风险检测与HR提醒,使用Azure OpenAI GPT-4o-mini和Gmail
If
Code
Gmail
+7
16 节点Rahul Joshi
内容创作
技能差距 → 培训推荐
为 HR 团队使用 GPT-4o、Google Sheets 和 Gmail 个性化候选人反馈
If
Code
Gmail
+7
27 节点Rahul Joshi
内容创作
将服装图片上传到Cloudinary并使用Azure OpenAI (GPT-4o) 记录到工作表
使用GPT-4o、Cloudinary和Google Sheets处理和编目服装图片
Set
Code
Merge
+9
26 节点Rahul Joshi
内容创作
面试质量审计
使用GPT-4o-mini和Google表格通过Slack审核面试反馈并生成报告
If
Code
Slack
+5
23 节点Rahul Joshi
内容创作
工作流信息
难度等级
中级
节点数量13
分类2
节点类型7
作者
Rahul Joshi
@rahul08Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.
外部链接
在 n8n.io 查看 →
分享此工作流