Darmowy szablon automatyzacji

✍️ Agent AI do tworzenia postów na Linkedin w celu promocji bloga za pomocą GPT-4o

128
25 dni temu
13
bloków

Kontekst

Jestem Data Scientistem w dziedzinie Supply Chain oraz twórcą treści, regularnie publikującym artykuły na temat optymalizacji opartej na danych, logistyki i zrównoważonego rozwoju. Promowanie postów na LinkedIn było dla mnie żmudnym, manualnym zadaniem — aż do momentu, gdy zdecydowałem się zautomatyzować ten proces za pomocą n8n i GPT-4o.

Ten szablon automatyzacji pozwala na automatyczne pobieranie treści z bloga, czyszczenie zawartości oraz generowanie profesjonalnego posta na LinkedIn przy użyciu AI — wszystko w jednym, spójnym procesie.

Dla kogo jest ten szablon?

Ten szablon idealnie sprawdzi się w przypadku:

  • Blogerów i pisarzy, którzy chcą promować swoje treści na LinkedIn
  • Zespołów marketingowych poszukujących automatyzacji generowania postów
  • Twórców treści korzystających z platformy Ghost

Generuje on profesjonalne posty na LinkedIn, zawierające:

  • Zachęcający wstęp
  • Krótkie podsumowanie
  • Wezwanie do działania (CTA)
  • Podpis zachęcający do kontaktu

Jak to działa?

Proces składa się z następujących kroków:

  • Wyzwalacz uruchamiany ręcznie lub przez harmonogram
  • Pobranie najnowszych postów z bloga przez API Ghost
  • Oczyszczenie treści HTML dla modelu AI
  • Wysłanie zawartości do GPT-4o w celu wygenerowania posta na LinkedIn
  • Zapisanie danych w arkuszu Google Sheets

Wymagania

Aby rozpocząć, potrzebujesz:

  • Konta Ghost CMS z opublikowanymi treściami
  • Arkusza Google do przechowywania wygenerowanych postów
  • Klucza API OpenAI
  • Zintegrowanego API Google Sheets przez OAuth2

Następne kroki

Wykorzystaj notatki w workflow, aby:

  • Dodać dane dostępowe do Ghost API
  • Połączyć się z arkuszem Google
  • Dostosować prompt AI (np. zmienić nazwę autora lub ton)
  • Opcjonalnie dodać automatyczne publikowanie na LinkedIn

Przykłady zastosowań

Ten szablon automatyzacji może być wykorzystany na wiele sposobów, oszczędzając czas i zwiększając zasięg treści. Oto kilka potencjalnych zastosowań:

  • Automatyczne promowanie nowych artykułów na LinkedIn bez ręcznego pisania postów
  • Tworzenie spójnej strategii content marketingu poprzez regularne publikacje
  • Zwiększenie zaangażowania odbiorców dzięki profesjonalnie sformatowanym postom
  • Śledzenie skuteczności treści poprzez zapis w arkuszu kalkulacyjnym
  • Optymalizacja czasu pracy twórców poprzez eliminację powtarzalnych zadań
  • Personalizacja komunikatów dla różnych segmentów odbiorców
  • Integracja z innymi kanałami social media poprzez modyfikację promptów

Dodatkowe informacje

Szablon można dostosować do innych platform, takich jak Twitter, Facebook, czy nawet newsletterów email, poprzez modyfikację promptu i kanału wyjściowego.

Workflow został stworzony przy użyciu n8n w wersji 1.85.4.

   Skopiuj kod szablonu   
{"meta":{"instanceId":"=","templateCredsSetupCompleted":true},"nodes":[{"id":"c6fd43cc-35ae-48cf-8d3a-60fce2d5c293","name":"When clicking ‘Test workflow’","type":"n8n-nodes-base.manualTrigger","position":[-1080,-420],"parameters":{},"typeVersion":1},{"id":"39b0ce07-f7b6-4cb8-a228-7ec5c51fca0c","name":"AI Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[280,-280],"parameters":{"text":"=Article Title: {{ $json.title }}nArticle Link: {{ $json.link }}nArticle Content: {{ $json.clean_content }}","options":{"systemMessage":"=You are a content marketing assistant. Based on the article metadata (ID, title) and cleaned content, generate a short LinkedIn promotional message for a professional audience.nnFollow this structure:nnStart with a hook that grabs attention (a bold insight, surprising fact, or thought-provoking question).nnBriefly summarize the article’s value — what readers will learn or gain from it.nnInclude a clear call-to-action encouraging readers to read the article.nnEnd with this author signature and invitation:n“—nSamir SacinSupply Chain Data Scientist & Founder of LogiGreenn📩 Contact me: https://logi-green.com/contactus”nnUse a professional and engaging tone. Do not include hashtags or Markdown formatting."},"promptType":"define"},"typeVersion":1.8},{"id":"=","name":"OpenAI Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[220,-120],"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o-mini"},"options":{}},"credentials":{"openAiApi":{"id":"=","name":"OpenAi account"}},"typeVersion":1.2},{"id":"44db3b7f-03cd-4942-b1d2-e0136fad29fe","name":"Clean HTML","type":"n8n-nodes-base.code","position":[-160,-320],"parameters":{"jsCode":"const htmlContent = $input.first().json.content;nnconst cleanText = htmlContentn .replace(/<[^>]*>/g, '') // remove tagsn .replace(/\s+/g, ' ') // normalize spacesn .replace(/ /g, ' ') // decode common entityn .trim();nnreturn [n {n json: {n clean_content: cleanTextn }n }n];n"},"typeVersion":2},{"id":"=","name":"Extract Blog Posts","type":"n8n-nodes-base.ghost","position":[-860,-420],"parameters":{"limit":3,"options":{},"operation":"getAll"},"credentials":{"ghostContentApi":{"id":"=","name":"Ghost Content account"}},"notesInFlow":true,"typeVersion":1},{"id":"402db85f-4a3f-4df4-986e-b27a4ebabda9","name":"Extract Post Content","type":"n8n-nodes-base.set","position":[-640,-420],"parameters":{"options":{},"assignments":{"assignments":[{"id":"00b337cd-1c61-4f19-8c51-b76f3a8dece1","name":"id","type":"string","value":"={{ $json.id }}"},{"id":"8d38f4bc-bca6-4343-8c5e-5d9fd9cbe178","name":"title","type":"string","value":"={{ $json.title }}"},{"id":"c34ddd76-0db6-4225-82fa-04d5542f9c7c","name":"featured_image","type":"string","value":"={{ $json.feature_image }}"},{"id":"c0f9593c-0d5a-4659-9e25-91b098318bd6","name":"excerpt","type":"string","value":"={{ $json.excerpt }}"},{"id":"0d11d3d5-49f8-473a-8602-b49769f88005","name":"content","type":"string","value":"={{ $json.html }}"},{"id":"ec89a00d-9d76-4594-a8ce-98aa177e6737","name":"link","type":"string","value":"={{ $json.url }}"}]}},"notesInFlow":true,"typeVersion":3.4},{"id":"0154183e-aaab-4efe-b72f-7a0626390528","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[-1120,-780],"parameters":{"color":7,"width":200,"height":520,"content":"### 1. Workflow TriggernThis workflow uses simple trigger.nn#### How to setup?n*Nothing to do.*n"},"typeVersion":1},{"id":"2641b9c3-bb34-4f4d-9bb6-8b9fcc68d2a5","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[-900,-780],"parameters":{"color":7,"width":400,"height":520,"content":"### 2. Extract Blog Posts ContentnThe Ghost node extracts all the posts of your blog with content and metadata. In the second node, we extract description, URL, content and features image url.nn#### How to setup?n- **Ghost Account API**:n 1. Add your Ghost Blog Account Credentialsn 2. Select the number of Blog Posts you want to collectn [Learn more about the Ghost Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.ghost)nn"},"typeVersion":1},{"id":"3f7609d8-e8f8-404b-a5d5-a7f7bf7cf5a8","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[-460,-780],"parameters":{"color":7,"width":1520,"height":800,"content":"### 3. Generate a Linkedin Post for each Post with an AI AgentnThis block loops through all the posts pulled by the Ghost Node, send the content to the AI agent that generates a Linkedin post. The results are combined and pulled in a Google Sheet.nn#### How to setup?n- **AI Agent with the Chat Model**:n 1. Add a **chat model** with the required credentials *(Example: Open AI 4o-mini)*n 2. Adapt the system prompt with your **post signature** and additional points you want to add in your postsn [Learn more about the AI Agent Node](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)n- **Record Long Break in the Google Sheet Node**:n 1. Add your Google Sheet API credentials to access the Google Sheet filen 2. Select the file using the list, an URL or an IDn 3. Select the sheet in which you want to record your working sessionsn 4. Map the fieldsn [Learn more about the Google Sheet Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets)nn"},"typeVersion":1},{"id":"=","name":"Record the posts","type":"n8n-nodes-base.googleSheets","position":[900,-180],"parameters":{"columns":{"value":{"id":"={{ $json.id }}","title":"={{ $json.title }}","content":"={{ $json.content }}","excerpt":"={{ $json.excerpt }}","clean_content":"={{ $json.clean_content }}","linkedin_post":"={{ $json.output }}","featured_image":"={{ $json.featured_image }}"},"schema":[{"id":"id","type":"string","display":true,"removed":false,"required":false,"displayName":"id","defaultMatch":true,"canBeUsedToMatch":true},{"id":"title","type":"string","display":true,"removed":false,"required":false,"displayName":"title","defaultMatch":false,"canBeUsedToMatch":true},{"id":"featured_image","type":"string","display":true,"removed":false,"required":false,"displayName":"featured_image","defaultMatch":false,"canBeUsedToMatch":true},{"id":"excerpt","type":"string","display":true,"removed":false,"required":false,"displayName":"excerpt","defaultMatch":false,"canBeUsedToMatch":true},{"id":"content","type":"string","display":true,"removed":false,"required":false,"displayName":"content","defaultMatch":false,"canBeUsedToMatch":true},{"id":"clean_content","type":"string","display":true,"removed":false,"required":false,"displayName":"clean_content","defaultMatch":false,"canBeUsedToMatch":true},{"id":"linkedin_post","type":"string","display":true,"removed":false,"required":false,"displayName":"linkedin_post","defaultMatch":false,"canBeUsedToMatch":true}],"mappingMode":"defineBelow","matchingColumns":["id"],"attemptToConvertTypes":false,"convertFieldsToString":false},"options":{},"operation":"append","sheetName":{"__rl":true,"mode":"list","value":"gid=0","cachedResultUrl":"=","cachedResultName":"Sheet1"},"documentId":{"__rl":true,"mode":"list","value":"=","cachedResultUrl":"=","cachedResultName":"Blog Post"}},"credentials":{"googleSheetsOAuth2Api":{"id":"=","name":"="}},"notesInFlow":true,"typeVersion":4.5},{"id":"a61fedfd-c1ff-4c3a-9440-fa5bf7bd6df7","name":"Merge Linkedin","type":"n8n-nodes-base.merge","position":[660,-420],"parameters":{"mode":"combineBySql"},"notesInFlow":true,"typeVersion":3},{"id":"8c767967-759b-44e5-aeeb-186a83e1b210","name":"Add Clean HTML","type":"n8n-nodes-base.merge","position":[80,-420],"parameters":{"mode":"combineBySql"},"typeVersion":3},{"id":"65fc196a-4137-4440-a092-9b27eb40b822","name":"Loop Over Posts","type":"n8n-nodes-base.splitInBatches","position":[-360,-420],"parameters":{"options":{}},"typeVersion":3}],"pinData":{},"connections":{"AI Agent":{"main":[[{"node":"Merge Linkedin","type":"main","index":1}]]},"Clean HTML":{"main":[[{"node":"Add Clean HTML","type":"main","index":1}]]},"Add Clean HTML":{"main":[[{"node":"AI Agent","type":"main","index":0},{"node":"Merge Linkedin","type":"main","index":0}]]},"Merge Linkedin":{"main":[[{"node":"Record the posts","type":"main","index":0}]]},"Loop Over Posts":{"main":[[],[{"node":"Clean HTML","type":"main","index":0},{"node":"Add Clean HTML","type":"main","index":0}]]},"Record the posts":{"main":[[{"node":"Loop Over Posts","type":"main","index":0}]]},"OpenAI Chat Model":{"ai_languageModel":[[{"node":"AI Agent","type":"ai_languageModel","index":0}]]},"Extract Blog Posts":{"main":[[{"node":"Extract Post Content","type":"main","index":0}]]},"Extract Post Content":{"main":[[{"node":"Loop Over Posts","type":"main","index":0}]]},"When clicking ‘Test workflow’":{"main":[[{"node":"Extract Blog Posts","type":"main","index":0}]]}}}
  • CSV
  • Sheet
  • Spreadsheet
  • GS
  • cpde
  • Javascript
  • JS
  • Python
  • Script
  • Custom Code
  • Function
  • LangChain
  • Chat
  • Conversational
  • Plan and Execute
  • ReAct
  • Tools
Planeta AI 2025 
magic-wandmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram