This workflow follows the Chainllm → Gmail recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "[COPY] My workflow 2LinkedIn posts using a n8n AI agent",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
],
"id": "575ea4c1-29ae-4624-a936-61e62205b290",
"name": "When clicking \u2018Test workflow\u2019"
},
{
"parameters": {
"url": "https://venturebeat.com/category/ai/feed/",
"options": {}
},
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1.1,
"position": [
220,
0
],
"id": "61760064-93f9-4584-80d7-a102ee670696",
"name": "RSS Read"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "b35522ca-68b4-4ef6-aaea-d94371cccedd",
"name": "title",
"value": "={{ $json.title }}",
"type": "string"
},
{
"id": "ccab7a5b-ae95-434b-928c-678f3cb434fb",
"name": "link",
"value": "={{ $json.link }}",
"type": "string"
},
{
"id": "80287f33-91e4-4988-a214-fa6953943b40",
"name": "contentSnippet",
"value": "={{ $json.contentSnippet }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
440,
0
],
"id": "cd968103-e199-4f23-942b-29a8140ba4b1",
"name": "Edit Fields"
},
{
"parameters": {
"aggregate": "aggregateAllItemData",
"destinationFieldName": "news",
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
660,
0
],
"id": "c8e2f373-fee4-46eb-8a23-8d57d7804bff",
"name": "Aggregate"
},
{
"parameters": {
"promptType": "define",
"text": "=Voc\u00ea \u00e9 um curador e redator especializado em intelig\u00eancia artificial aplicada aos neg\u00f3cios. Preciso que analise os 5 artigos a seguir e gere um resumo semanal claro, interessante e estrat\u00e9gico. O p\u00fablico s\u00e3o CEOs, diretores e gestores de pequenas e m\u00e9dias empresas que querem aplicar IA no dia a dia com foco em efici\u00eancia, redu\u00e7\u00e3o de desperd\u00edcios e crescimento sustent\u00e1vel.\n\nSua miss\u00e3o:\n\nResuma cada artigo em at\u00e9 4 linhas, destacando o que realmente importa (evite jarg\u00f5es e exageros de hype).\n\nFoque apenas em conte\u00fados com aplica\u00e7\u00e3o pr\u00e1tica e acess\u00edvel para PMEs.\n\nUse uma linguagem envolvente, com toques de curiosidade e autoridade, como se fosse uma newsletter premium de tend\u00eancias.\n\nEvite temas gen\u00e9ricos ou voltados a big techs que n\u00e3o se conectem \u00e0 realidade operacional das PMEs.\"\n\n\n\n{{ JSON.stringify($json.news) }}\n",
"hasOutputParser": true
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.6,
"position": [
880,
0
],
"id": "dd549d3f-f36d-4b6a-a1e6-afe95a5cd8d0",
"name": "Basic LLM Chain"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
860,
200
],
"id": "69d43b3f-0cd2-4227-988a-e821fe9c1421",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsonSchemaExample": "{\n\t\"articles\" : [{\n \"title\" : \"\", \n \"link\" : \"\"\n }]\n}"
},
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"typeVersion": 1.2,
"position": [
1060,
200
],
"id": "0cdee11a-cb69-42a4-9909-9bed91d3a7c4",
"name": "Structured Output Parser"
},
{
"parameters": {
"fieldToSplitOut": "output.articles",
"options": {}
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
1240,
0
],
"id": "986b670d-472a-4a1f-b0db-a4ad016d42dc",
"name": "Split Out"
},
{
"parameters": {
"url": "={{ $json.link }}",
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1460,
0
],
"id": "48dc3274-f620-4903-b38c-45dc59a093a3",
"name": "HTTP Request"
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "article",
"cssSelector": "article",
"skipSelectors": ".post-boilerplate,.boilerplate-befor"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1680,
0
],
"id": "7ff9c4ef-9288-4d3b-93aa-a6a1220dd894",
"name": "HTML"
},
{
"parameters": {
"aggregate": "aggregateAllItemData",
"destinationFieldName": "articles",
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
1900,
0
],
"id": "5f2feaf2-5ee7-4593-977f-a3c4f14a45fa",
"name": "Aggregate1"
},
{
"parameters": {
"promptType": "define",
"text": "=Com base nos artigos abaixo, crie um post de LinkedIn envolvente, direto e com apelo estrat\u00e9gico voltado para CEOs, diretores, founders e gestores de pequenas e m\u00e9dias empresas.\n\nRegras e estilo:\n- Pense em um post com SEO e AEO estrat\u00e9gico.\n- A leitura deve ser gostosa e fluida.\n\u2013 Escreva em texto simples, sem formata\u00e7\u00e3o Markdown.\n\u2013 Comece com um gancho impactante: duas frases curtas que despertem curiosidade e mencionem o uso de IA de forma provocativa.\n\u2013 Intercale dados e afirma\u00e7\u00f5es com perguntas ret\u00f3ricas que humanizem a leitura (ex: \u201cJ\u00e1 imaginou?\u201d, \u201cE se sua empresa j\u00e1 usasse isso hoje?\u201d).\n\u2013 Apresente os fatos com foco em utilidade pr\u00e1tica, mostrando como a IA ajuda a economizar tempo, resolver problemas do dia a dia ou impulsionar o crescimento com efici\u00eancia.\n\u2013 Evite termos gen\u00e9ricos ou sensacionalistas: seja espec\u00edfico, interessante e \u00fatil.\n\u2013 Finalize com uma pergunta provocativa + um CTA expl\u00edcito (ex: \u201cComo voc\u00ea aplicaria isso no seu time?\u201d, \u201cVamos conversar sobre como adaptar isso \u00e0 sua realidade?\u201d).\n\u2013 N\u00e3o adicione links no post.\n\u2013 Adicione hashtags estrat\u00e9gicas no final (ex: #ia #inteligenciaartificial #InteligenciaArtificial #Gest\u00e3o #Inova\u00e7\u00e3oNasPMEs).\n\n\n<articles>\n{{ JSON.stringify($json.articles) }}\n</articles>\n"
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.6,
"position": [
2120,
0
],
"id": "10b8ed87-2095-4486-99bd-baba7bde0bf0",
"name": "Basic LLM Chain1"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
2120,
160
],
"id": "39e53cb7-5e83-4f17-b038-5988d1c0d8cd",
"name": "OpenAI Chat Model1",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "=Reescreva a seguinte publica\u00e7\u00e3o do LinkedIn para corresponder ao estilo da publica\u00e7\u00e3o de exemplo. O texto deve gerar curiosidade. Certifique-se de que o texto esteja em texto simples e com a formata\u00e7\u00e3o IGUAL ao exemplo. \n\n<ExamplePost>\nO futuro das compras online pode j\u00e1 n\u00e3o estar mais nas m\u00e3os... humanas.\n\nOs agentes de intelig\u00eancia artificial com poder de compra chegaram para transformar o e-commerce como conhecemos.\n\nEstamos falando de softwares que pesquisam, selecionam, recomendam e at\u00e9 fazem pagamentos em nome do consumidor.\n\nEmpresas como Mastercard, Microsoft e IBM j\u00e1 est\u00e3o testando e escalando solu\u00e7\u00f5es capazes de:\n\ud83d\udd38Personalizar recomenda\u00e7\u00f5es com base no hist\u00f3rico de compras\n\ud83d\udd38Automatizar pagamentos com seguran\u00e7a\n\ud83d\udd38Recuperar carrinhos abandonados com estrat\u00e9gias sob medida\n\ud83d\udd38Reduzir custos operacionais e aumentar o ticket m\u00e9dio\n\nO Mastercard Agent Pay, por exemplo, permite que a IA feche a compra para voc\u00ea, sempre com a \u00faltima palavra do usu\u00e1rio.\n\nJ\u00e1 pensou pedir a um agente para comprar aquele presente atrasado e ele simplesmente resolver?\n\nOs resultados impressionam:\n\ud83d\udd38Aumento de at\u00e9 30 por cento nas convers\u00f5es\n\ud83d\udd38Redu\u00e7\u00e3o de custos em cerca de 30 por cento\n\ud83d\udd38Casos como o da Dzarm, que cresceu 150 por cento nas vendas de Black Friday com IA\n\nMas calma, n\u00e3o \u00e9 s\u00f3 magia tecnol\u00f3gica.\n\nPor tr\u00e1s dessa revolu\u00e7\u00e3o, surgem discuss\u00f5es \u00e9ticas importantes:\n\ud83d\udd38Como garantir privacidade? \n\ud83d\udd38Como evitar vieses nos algoritmos? \n\ud83d\udd38Como manter o consumidor no controle final?\n\nO que fica claro \u00e9 que as empresas que entenderem e aplicarem essa tecnologia agora v\u00e3o liderar o jogo do e-commerce nos pr\u00f3ximos anos.\n\nVoc\u00ea j\u00e1 consegue imaginar o impacto disso no seu neg\u00f3cio ou na sua experi\u00eancia como consumidor?\n</ExamplePost>\n\n<Article>\n {{ $json.text }}\n</Article>"
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.6,
"position": [
2480,
0
],
"id": "4ed39583-e7c7-4069-a9a5-3077e24bc4c4",
"name": "Basic LLM Chain2"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4o",
"mode": "list",
"cachedResultName": "gpt-4o"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
2500,
180
],
"id": "08220e4b-a55f-4562-b8ec-20a69a34be56",
"name": "OpenAI Chat Model2",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "sendAndWait",
"sendTo": "myllenacerq.contato@gmail.com",
"subject": "=[VALIDATION] LinkedIn Post",
"message": "={{ $json.linkedin_post }}",
"responseType": "customForm",
"formFields": {
"values": [
{
"fieldLabel": "Post Validado? \u2728",
"fieldType": "dropdown",
"fieldOptions": {
"values": [
{
"option": "Sim, pode seguir! \ud83d\ude04"
},
{
"option": "N\u00e3o, sugerir melhorias! \ud83e\udd14"
}
]
},
"requiredField": true
},
{
"fieldLabel": "Altera\u00e7\u00f5es Sugeridas \ud83d\udc47",
"fieldType": "textarea",
"placeholder": "O que voc\u00ea gostaria de sugerir? "
}
]
},
"options": {}
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
3060,
0
],
"id": "50aeade0-e540-47a0-a019-a769bb43a85f",
"name": "Gmail",
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "ac445c73-510c-47d4-9830-b46cea04484d",
"leftValue": "={{ $json.data['Post Validado? \u2728'] }}",
"rightValue": "Sim, pode seguir! \ud83d\ude04",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
3280,
0
],
"id": "078f2c97-4338-46c1-b221-a1302ab3d914",
"name": "If"
},
{
"parameters": {
"promptType": "define",
"text": "=Apply the modification requests on the following LinkedIn post. Besides applying the requested modifications, return the same linkedin post.\n\nLinkedIn post:\n```\n{{ $('Gmail').item.json.linkedin_post }}\n```\n\n\nChange requests:\n{{ $json.data['Altera\u00e7\u00f5es Sugeridas \ud83d\udc47'] }}",
"hasOutputParser": true
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.6,
"position": [
3500,
100
],
"id": "0a5c46f6-55c0-4b35-95fd-fc3f81e30d2f",
"name": "Basic LLM Chain3"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
3600,
320
],
"id": "25caa6f7-b1d3-4cae-bb45-c1647d0135ad",
"name": "OpenAI Chat Model3",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsonSchemaExample": "{\n \"modified_post\": \"\"\n}"
},
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"typeVersion": 1.2,
"position": [
3740,
320
],
"id": "bd94f0ea-ee26-46b1-a149-4c0924e8a49d",
"name": "Structured Output Parser1"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "1ec131a4-0189-4a48-9009-82c8df93e6d2",
"name": "linkedin_post",
"value": "={{ $json.text }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
2840,
0
],
"id": "f2abe827-dff2-4187-9984-b3f3fbb329c4",
"name": "Edit Fields1"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "8a2d4968-daff-420a-b498-a93d12116a85",
"name": "text",
"value": "={{ $json.output.modified_post }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3940,
360
],
"id": "5ac4d840-40c2-4fb0-80af-14df5177bde3",
"name": "Edit Fields2"
},
{
"parameters": {
"postAs": "organization",
"organization": "106914025",
"text": "={{ $('Edit Fields1').item.json.linkedin_post }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.linkedIn",
"typeVersion": 1,
"position": [
3500,
-100
],
"id": "1bba87bf-3c10-419b-837d-50a79890e6de",
"name": "LinkedIn",
"credentials": {
"linkedInOAuth2Api": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "RSS Read",
"type": "main",
"index": 0
}
]
]
},
"RSS Read": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Basic LLM Chain",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Basic LLM Chain",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Basic LLM Chain": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "HTML",
"type": "main",
"index": 0
}
]
]
},
"HTML": {
"main": [
[
{
"node": "Aggregate1",
"type": "main",
"index": 0
}
]
]
},
"Aggregate1": {
"main": [
[
{
"node": "Basic LLM Chain1",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Basic LLM Chain1": {
"main": [
[
{
"node": "Basic LLM Chain2",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain2",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Basic LLM Chain2": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
]
]
},
"Gmail": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "LinkedIn",
"type": "main",
"index": 0
}
],
[
{
"node": "Basic LLM Chain3",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model3": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain3",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser1": {
"ai_outputParser": [
[
{
"node": "Basic LLM Chain3",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Edit Fields1": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"Basic LLM Chain3": {
"main": [
[
{
"node": "Edit Fields2",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields2": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "620d0cdf-b264-475d-b544-d46c8e7d996c",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "ycFKCoweh6WgWn06",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
gmailOAuth2linkedInOAuth2ApiopenAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
[COPY] My workflow 2LinkedIn posts using a n8n AI agent. Uses rssFeedRead, chainLlm, lmChatOpenAi, outputParserStructured. Event-driven trigger; 23 nodes.
Source: https://github.com/MyllenaCerq/My-workflow-2LinkedIn-posts-using-a-n8n-AI-agent/blob/0c9c516d643d9b6b25f08567b800aab67aaabd5b/My_workflow_2LinkedIn_posts.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
My workflow 14. Uses lmChatOpenAi, outputParserStructured, rssFeedRead, httpRequest. Event-driven trigger; 63 nodes.
My workflow 14. Uses rssFeedRead, chainLlm, outputParserStructured, httpRequest. Event-driven trigger; 30 nodes.
Typeform IA - YT. Uses typeformTrigger, agent, lmChatOpenAi, toolWorkflow. Event-driven trigger; 75 nodes.
Ultimate Blogblizt is a powerhouse workflow that solves the tedious task of crafting and publishing SEO-optimized tech blog posts. It integrates AI models (OpenAI, Google Gemini), WordPress, and multi
This workflow is perfect for: Agile development teams and project managers who need to quickly set up Jira projects Product managers who want to convert feature ideas into structured user stories and