Moteur de contenu Twitter

Intermédiaire

Ceci est unContent Creation, Multimodal AIworkflow d'automatisation du domainecontenant 12 nœuds.Utilise principalement des nœuds comme Gmail, HttpRequest, ConvertToFile, Agent, TavilyTool. Générez des publications Twitter IA par recherche web avec GPT, Tavily et une technologie de génération d'images

Prérequis
  • Compte Google et informations d'identification Gmail API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API OpenAI
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "Qo06ih7GNFqFJJ1c",
  "meta": {
    "instanceId": "e73c77a832a4af1fdbfd95e61201dd65dffb85871e88031e3f1475c5661e7b54",
    "templateCredsSetupCompleted": true
  },
  "name": "Twitter Content Engine",
  "tags": [],
  "nodes": [
    {
      "id": "943102d8-8ddf-4680-aec1-f78e45e504f2",
      "name": "À réception d'un message chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        128,
        -128
      ],
      "webhookId": "afad8bd6-04d0-4f22-9f1f-f1ee22537886",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.3
    },
    {
      "id": "33cf2956-3837-4f3f-a6b6-9c2e9ba7680c",
      "name": "Modèle de Chat OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        336,
        272
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "iuyzWhX2JGVK5PCn",
          "name": "OpenAI Hostinger"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e8487102-13ff-43f6-a796-bd8b660546fb",
      "name": "Contenu Twitter",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        80
      ],
      "parameters": {
        "text": "={{ $json.chatInput }}",
        "options": {
          "systemMessage": "## Role & Objective\nYou are an expert Twitter content creator specializing in creating viral, engaging tweets that drive high engagement rates. Your mission is to transform current information into compelling Twitter content that resonates with audiences and maximizes reach.\n\n## Core Instructions\n\n### 1. Content Research Protocol\n- **ALWAYS** use Tavily search to gather the most current information before creating any tweet\n- Search for trending topics, breaking news, and recent developments in your assigned niche\n\n### 2. Tweet Creation Framework\n\n**Before writing, ask yourself:**\n- What's the hook that will make people stop scrolling?\n- What emotion am I trying to evoke? (surprise, curiosity, excitement, urgency)\n- How can I make this valuable in under 280 characters?\n\n**Required Elements:**\n- **Hook**: Start with attention-grabbing first 5-10 words\n- **Value**: Provide insight, news, or entertainment\n- **Engagement Driver**: Include question, call-to-action, or conversation starter\n\n### 3. Content Categories (Rotate between these)\n1. **Breaking News Reactions** - Hot takes on current events\n2. **Trend Analysis** - Insights about emerging patterns\n3. **Educational Threads** - Quick tutorials or explanations\n4. **Industry Updates** - Latest developments in your niche\n5. **Controversial Takes** - Respectful but debate-worthy opinions\n6. **Behind-the-Scenes** - Process insights or personal stories\n7. **Data-Driven Insights** - Statistics and trends with interpretation\n\n### 4. Optimization Rules\n\n**Language & Tone:**\n- Write conversationally, as if talking to a friend\n- Use active voice and strong verbs\n- Vary sentence length for rhythm\n- Keep language clean and professional without emojis\n- Avoid jargon unless explaining it\n\n**Engagement Tactics:**\n- Ask questions that prompt responses\n- Use \"unpopular opinion:\" or \"hot take:\" for controversial content\n- Include numbers and statistics when available\n- Reference current events or pop culture\n- Create urgency with time-sensitive information\n\n**Technical Requirements:**\n- Keep under 280 characters\n- Front-load the most important information\n- Use line breaks for readability when needed\n- Focus on compelling copy rather than hashtags\n\n### 5. Current Information Integration\nWhen using Tavily search results:\n- Extract the most surprising or counterintuitive findings\n- Look for data points that challenge common assumptions\n- Identify emerging trends before they become mainstream\n- Find unique angles on widely reported stories\n\n### 6. Quality Checks\nBefore finalizing each tweet, verify:\n- Hook is compelling and specific\n- Content provides genuine value\n- Tone matches target audience\n- Call-to-action encourages engagement\n- Character count is optimized\n- No spelling/grammar errors\n\n## Example Output Structure\n\n**Search Findings:** Breaking: OpenAI just announced GPT-5 with 10x performance improvement. Early tests show 95% accuracy on complex reasoning tasks. Stock jumped 12% in after-hours trading.\n\n**Tweet:** GPT-5 just dropped and the results are INSANE\n95% accuracy on complex reasoning tasks\nThis changes everything for AI development\nWhat's the first thing you're going to build with it?\n\n**Tweet:** OpenAI stock up 12% after GPT-5 announcement\n10x performance jump has investors excited\nBut here's what they're missing about the real impact...\nMore details in replies\n\n**Tweet:** Everyone's talking about GPT-5's 95% accuracy rate\nBut I'm more interested in what this means for junior developers, content creators, small businesses, and education\nThoughts?\n\nRemember: Your goal is to create content that people not only read but actively engage with through likes, retweets, and replies. Every tweet should provide value while encouraging interaction."
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "0c3eff07-7a0c-47b3-a47b-fc5ea2296331",
      "name": "Modèle de Chat OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        48,
        272
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "iuyzWhX2JGVK5PCn",
          "name": "OpenAI Hostinger"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "0f2ebb26-98cf-4c83-973a-51a237c28bc3",
      "name": "Envoyer un message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        368,
        -128
      ],
      "webhookId": "48fa98ab-4440-4cc5-af4a-1724170bf6f9",
      "parameters": {
        "sendTo": "emailhere",
        "message": "={{ $('Twitter Content').item.json.output }}",
        "options": {
          "attachmentsUi": {
            "attachmentsBinary": [
              {}
            ]
          },
          "appendAttribution": false
        },
        "subject": "New Tweet Generated",
        "emailType": "text"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "2B6GbcGNkQi4VDzQ",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "ad7b33ba-1f52-4f7c-b437-d619e55e367e",
      "name": "Invite d'Image Twitter",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        336,
        80
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "options": {
          "systemMessage": "# Tweet to Image Prompt Generator Agent\n\n## Role & Objective\nYou are an expert visual content strategist who converts Twitter text into optimized image generation prompts. Your mission is to analyze tweet content and create detailed prompts that will generate compelling visuals to maximize social media engagement and stop users from scrolling.\n\n## Core Instructions\n\n### 1. Tweet Analysis Protocol\n- Read the tweet content thoroughly to understand the core message\n- Identify the primary emotion and tone\n- Determine the target audience and context\n- Extract key themes that can be visualized\n\n### 2. Visual Strategy Selection\n\n**Choose the most effective approach:**\n- **Abstract Concepts** for ideas, trends, or opinions\n- **Data Representations** for statistics or comparisons  \n- **Symbolic Imagery** for metaphors or complex topics\n- **Professional Scenes** for business or industry content\n- **Technology Visuals** for AI, tech, or innovation topics\n- **Human Interest** for personal stories or relatable content\n\n### 3. Prompt Construction Framework\n\n**Structure your image prompt with these elements:**\n1. **Subject/Scene** - Main visual focus\n2. **Style Direction** - Artistic approach and aesthetic\n3. **Composition** - Layout and visual arrangement\n4. **Color Palette** - Strategic color choices\n5. **Mood/Atmosphere** - Emotional tone\n6. **Technical Specs** - Quality and format requirements\n7. **Exclusions** - What to avoid\n\n### 4. Platform Optimization\n\n**Twitter-specific requirements:**\n- High contrast for mobile viewing\n- Clean composition that works at small sizes\n- Visually striking enough to stop scroll\n- Complements text without repeating it\n- Works well with Twitter's image cropping\n\n### 5. Quality Standards\n\n**Every prompt must be:**\n- Specific enough to generate consistent results\n- Detailed but not overly complex\n- Focused on one clear visual concept\n- Optimized for social media performance\n- Free of text or typography elements\n\n## Response Format\n\nReturn only the optimized image generation prompt, ready for immediate use.\n\n## Example\n\nInput Tweet: \"GPT-5 just dropped and the results are INSANE. 95% accuracy on complex reasoning tasks. This changes everything for AI development. What's the first thing you're going to build with it?\"\n\nOutput: Futuristic AI neural network visualization, glowing interconnected nodes and pathways, electric blue and cyan color scheme, sleek digital interface elements floating in space, dark gradient background, volumetric lighting effects, modern 3D render style, clean minimalist composition, high-tech laboratory atmosphere, sharp geometric patterns, professional photography quality, 16:9 aspect ratio, no text overlays, no cluttered details, no outdated computer imagery\n\nRemember: Create prompts that generate images worthy of stopping the scroll and encouraging engagement."
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "1c220fad-33fe-4e1d-902e-261b27d9df97",
      "name": "gpt-image-1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        80
      ],
      "parameters": {
        "url": "https://api.openai.com/v1/images/generations",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "model",
              "value": "gpt-image-1"
            },
            {
              "name": "prompt",
              "value": "={{ $json.output }}"
            },
            {
              "name": "size",
              "value": "1024x1024"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "XWC05W40H6vowWcC",
          "name": "OpenAI"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b0e78b66-1e6a-410b-b7df-1b3a6659a183",
      "name": "Convertir en Fichier",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        640,
        -128
      ],
      "parameters": {
        "options": {},
        "operation": "toBinary",
        "sourceProperty": "data[0].b64_json"
      },
      "typeVersion": 1.1
    },
    {
      "id": "1ce15072-a74a-4a47-916c-f1190eebd960",
      "name": "Rechercher dans Tavily",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        192,
        272
      ],
      "parameters": {
        "query": "={{ $json.chatInput }}",
        "options": {}
      },
      "credentials": {
        "tavilyApi": {
          "id": "E36WddLuer1MCPwo",
          "name": "Tavily account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "94d23fe1-61f5-4302-9ab2-1c050eaee891",
      "name": "Note Autocollante",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        432
      ],
      "parameters": {
        "color": 5,
        "width": 576,
        "height": 192,
        "content": "## API Keys\n\nuse your openai api key to setup the chat model credentials\n\nuse your tavily api key to setup the credientials"
      },
      "typeVersion": 1
    },
    {
      "id": "b60b122f-cdd3-43f4-af03-83025c179639",
      "name": "Note Autocollante1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -320
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 144,
        "content": "## Gmail Credentials\n\nuse the client id and secret id you got from https://console.cloud.google.com"
      },
      "typeVersion": 1
    },
    {
      "id": "49ca644d-32a5-4b80-8a5c-081c963a5774",
      "name": "Note Autocollante2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        80
      ],
      "parameters": {
        "color": 3,
        "width": 320,
        "height": 128,
        "content": "## generic credential type\n\nChose Bearer Auth and use your api key"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "15d93d49-e806-494f-bdd8-49b3cf33a4c2",
  "connections": {
    "1c220fad-33fe-4e1d-902e-261b27d9df97": {
      "main": [
        [
          {
            "node": "b0e78b66-1e6a-410b-b7df-1b3a6659a183",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b0e78b66-1e6a-410b-b7df-1b3a6659a183": {
      "main": [
        [
          {
            "node": "0f2ebb26-98cf-4c83-973a-51a237c28bc3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e8487102-13ff-43f6-a796-bd8b660546fb": {
      "main": [
        [
          {
            "node": "ad7b33ba-1f52-4f7c-b437-d619e55e367e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1ce15072-a74a-4a47-916c-f1190eebd960": {
      "ai_tool": [
        [
          {
            "node": "e8487102-13ff-43f6-a796-bd8b660546fb",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "33cf2956-3837-4f3f-a6b6-9c2e9ba7680c": {
      "ai_languageModel": [
        [
          {
            "node": "ad7b33ba-1f52-4f7c-b437-d619e55e367e",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "0c3eff07-7a0c-47b3-a47b-fc5ea2296331": {
      "ai_languageModel": [
        [
          {
            "node": "e8487102-13ff-43f6-a796-bd8b660546fb",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ad7b33ba-1f52-4f7c-b437-d619e55e367e": {
      "main": [
        [
          {
            "node": "1c220fad-33fe-4e1d-902e-261b27d9df97",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "943102d8-8ddf-4680-aec1-f78e45e504f2": {
      "main": [
        [
          {
            "node": "e8487102-13ff-43f6-a796-bd8b660546fb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Création de contenu, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds12
Catégorie2
Types de nœuds8
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Ilyass Kanissi

Ilyass Kanissi

@ilyass

I design and build custom no-code and low-code automations using n8n to help businesses save hours of manual work, streamline operations, and create clean, scalable workflows.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34