Mit GPT und Bildern über Telegram-Bot-Interface virale LinkedIn-Inhalte erstellen

Fortgeschritten

Dies ist ein Content Creation, Multimodal AI-Bereich Automatisierungsworkflow mit 15 Nodes. Hauptsächlich werden SplitOut, Telegram, HttpRequest, Agent, TelegramTrigger und andere Nodes verwendet. Mit GPT und Bildern über Telegram-Bot-Oberfläche virale LinkedIn-Inhalte erstellen

Voraussetzungen
  • Telegram Bot Token
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
  • OpenAI API Key
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "meta": {
    "instanceId": "744512f77fc51097e8ca6be7a65f53ac98b545404aa0360c7832162d51cb4e02"
  },
  "nodes": [
    {
      "id": "e3517ee8-ff96-4a9c-8000-789edfde137f",
      "name": "Telegram-Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -816,
        112
      ],
      "webhookId": "e02b3b11-f6e1-4f34-9b8c-c5c14c1a5461",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "AarnxB8wJEK5UvZA",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3493a02f-74b5-4f47-a65c-d29270527f2d",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        48,
        -48
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "result.data.results"
      },
      "typeVersion": 1
    },
    {
      "id": "56bf0f72-13b6-4dbb-9076-21d2dcaf2147",
      "name": "generate_img",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -192,
        -48
      ],
      "parameters": {
        "url": "https://ai-text-to-image-generator-flux-free-api.p.rapidapi.com/aaaaaaaaaaaaaaaaaiimagegenerator/quick.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.output.img_prompt }}"
            },
            {
              "name": "style_id",
              "value": "4"
            },
            {
              "name": "size",
              "value": "1-1"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "ai-text-to-image-generator-flux-free-api.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "YOUR_RAPID_API_KEY"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "14334c13-43d4-457f-904e-127f3b0fff08",
      "name": "download_img",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        288,
        -48
      ],
      "parameters": {
        "url": "={{ $json.thumb }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "4b98d03e-15fa-4cf9-8fba-d614059bb22c",
      "name": "OpenAI-Chat-Modell",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -416,
        720
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-nano",
          "cachedResultName": "gpt-5-nano"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "RZp4ut0OPqv29RiA",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "92b864a4-898d-4780-bc89-b89438b6b7bb",
      "name": "tavily",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        -128,
        640
      ],
      "parameters": {
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "options": {
          "days": 3,
          "topic": "general",
          "max_results": 5,
          "search_depth": "advanced"
        }
      },
      "credentials": {
        "tavilyApi": {
          "id": "qLj9ixhXupU9fEMj",
          "name": "Tavily account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "db0412c2-37c4-4256-9a42-580f089284b1",
      "name": "expert_algo",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -576,
        112
      ],
      "parameters": {
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "=Tu es un expert en algorythme LinkedIn. Tu es capable d'analyser les meilleurs posts viraux, et comprendre pourquoi ils ont été viraux. \n\nTa mission est d'analyser tout les posts LinkedIn qui ont le plus d'impressions et de réactions en rapport avec la demande de l'utilisateur, et d'envoyer en output un framework pertinent pour créer un post viral destiné à être publier et un prompt pour générer une image pour le post !\n\nRègles :\n- Utilise ton outil de recherche \"tavily\" pour surveiller les posts LinkedIn viraux. \n- Ta réponse doit être bien structuré avec un framework exploitable.\n\nFormat de réponse : \n{\n  \"framework\": \"Framework exploitable pour rédiger le post LinkedIn\",\n  \"img_prompt\": \"Prompt exploitable pour générer l'image pous le post\"\n}"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "04e2ae49-6ee9-469f-8318-484a1b605460",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -432,
        208
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"framework\": \"string\",\n  \"img_prompt\": \"string\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "63c2485f-0186-4126-a83e-27046efbb96d",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -48,
        336
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"post_1\": \"string\",\n  \"post_2\": \"string\",\n  \"post_3\": \"string\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
      "name": "Community Manager",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        240
      ],
      "parameters": {
        "text": "=Voici les 3 proposition de post : \n1 : \n{{ $json.output.post_1 }}\n2 : \n{{ $json.output.post_2 }}\n3 : \n{{ $json.output.post_3 }}",
        "options": {
          "systemMessage": "=Tu es un Community Manager sénior, ta mission est d'analyser les 3 propositions de posts LinkedIn que tu reçois en input, et de choisir celui qui te semble le plus viral et le transmet dans ton output. \n\nRègles :\n- Utilise ton outil tavily pour effectuer les recherches nécessaires pour savoir quelle proposition de post serai la plus virale.\n- Format de réponse : \n{\n  \"post\": \"Post LinkedIn choisi\"\n}"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "a21e029e-b5b1-468b-937a-5952c0d405f3",
      "name": "CM Junior",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -192,
        240
      ],
      "parameters": {
        "text": "=Voici le framework à utiliser :\n{{ $json.output.framework }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "=Tu es expert en rédaction de post LinkedIn viral, tu es community manager sénior et les algorithmes des réseaux sociaux n'ont plus aucun secret pour toi \n\nTa mission est de me proposer 3 posts LinkedIn viral grâce au framework que tu reçois en input. \n\nRègles : \n- Les posts LinkedIn doivent faire entre 500 et 900 caractères\n- Ton style de rédaction doit impérativement refléter le mien : ton amical et instructif. \n- Utilise impérativement le framework pour rédiger tes propositions de posts LinkedIn. \n\nFormat de réponse : \n\n{\n  \"post_1\": \"Première proposition de post\",\n  \"post_2\": \"Deuxième proposition de post\",\n  \"post_3\": \"Troisième proposition de post\"\n}"
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    },
    {
      "id": "97507dd8-0812-4109-a669-11e59d88c438",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        304,
        336
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"post\": \"string\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "23a40733-0b6c-4289-b44d-25431f6a0923",
      "name": "Send a photo message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        496,
        -48
      ],
      "webhookId": "5c18ebd7-0e5d-4367-ba1f-6352371122b4",
      "parameters": {
        "chatId": "=YOUR_TELEGRAM_CHAT_ID",
        "operation": "sendPhoto",
        "binaryData": true,
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "AarnxB8wJEK5UvZA",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e8740c71-f52e-428f-b327-a15aa9730db9",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        496,
        240
      ],
      "webhookId": "6eb32d3f-093b-4070-8695-45c97f7a8edd",
      "parameters": {
        "text": "={{ $json.output.post }}",
        "chatId": "=YOUR_TELEGRAM_CHAT_ID",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "AarnxB8wJEK5UvZA",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "da682c59-f46b-408c-afd5-430a91a41feb",
      "name": "Haftnotiz",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -288
      ],
      "parameters": {
        "width": 2240,
        "height": 1200,
        "content": "## LinkedIn Viral Content Generator & Image Poster (Telegram Bot)  \n\n### Description:  \n\nThis workflow helps you generate a viral LinkedIn post + AI image PROMPTED by user request on Telegram.  \nIt uses AI to analyze trending LinkedIn content, builds an effective framework for virality, creates post variations, selects the best one, generates an image, and sends both back on Telegram.\n\n\n---\n\n## Requirements / Setup  \n\n### Description:  \n\n- Configure your OpenAI credentials  \n- Set your Telegram credentials and chat ID  \n- Obtain your RAPIDAPI key for the free AI image generator  \n- (Optionally: Set up Tavily credentials if needed for research tools)\n\n\n---\n\n## Personalization  \n\n### Description:\n  \n\n- All authentication values must be inserted via Credentials panel, not hard-coded in nodes  \n- Edit any placeholders (e.g., chat ID, keys) before activating your workflow\n\n\n---\n\n\n## Test Before Publish  \n\n### Description:  \n\n\n- Run the workflow with your own values to ensure everything works  \n- Make sure NO sensitive/personal data remains before sharing  \n- You can add example outputs in note (markdown supports code formatting)\n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "92b864a4-898d-4780-bc89-b89438b6b7bb": {
      "ai_tool": [
        [
          {
            "node": "db0412c2-37c4-4256-9a42-580f089284b1",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "a21e029e-b5b1-468b-937a-5952c0d405f3": {
      "main": [
        [
          {
            "node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3493a02f-74b5-4f47-a65c-d29270527f2d": {
      "main": [
        [
          {
            "node": "14334c13-43d4-457f-904e-127f3b0fff08",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "db0412c2-37c4-4256-9a42-580f089284b1": {
      "main": [
        [
          {
            "node": "a21e029e-b5b1-468b-937a-5952c0d405f3",
            "type": "main",
            "index": 0
          },
          {
            "node": "56bf0f72-13b6-4dbb-9076-21d2dcaf2147",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "14334c13-43d4-457f-904e-127f3b0fff08": {
      "main": [
        [
          {
            "node": "23a40733-0b6c-4289-b44d-25431f6a0923",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "56bf0f72-13b6-4dbb-9076-21d2dcaf2147": {
      "main": [
        [
          {
            "node": "3493a02f-74b5-4f47-a65c-d29270527f2d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "db0412c2-37c4-4256-9a42-580f089284b1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "34fb849d-522e-40aa-bda4-3bd72c70d60c": {
      "main": [
        [
          {
            "node": "e8740c71-f52e-428f-b327-a15aa9730db9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "db0412c2-37c4-4256-9a42-580f089284b1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "a21e029e-b5b1-468b-937a-5952c0d405f3",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "04e2ae49-6ee9-469f-8318-484a1b605460": {
      "ai_outputParser": [
        [
          {
            "node": "db0412c2-37c4-4256-9a42-580f089284b1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "63c2485f-0186-4126-a83e-27046efbb96d": {
      "ai_outputParser": [
        [
          {
            "node": "a21e029e-b5b1-468b-937a-5952c0d405f3",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "97507dd8-0812-4109-a669-11e59d88c438": {
      "ai_outputParser": [
        [
          {
            "node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Content-Erstellung, Multimodales KI

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes15
Kategorie2
Node-Typen10
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34