Uso de GPT-4.1 para añadir títulos y conclusiones generados por IA a artículos de WordPress

Intermedio

Este es unContent Creation, Multimodal AIflujo de automatización del dominio deautomatización que contiene 8 nodos.Utiliza principalmente nodos como Set, Code, HttpRequest, ManualTrigger, OpenAi. Uso de GPT-4.1 para agregar títulos y conclusiones generados por IA a artículos de WordPress

Requisitos previos
  • Pueden requerirse credenciales de autenticación para la API de destino
  • Clave de API de OpenAI
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "meta": {
    "instanceId": "8e39b7468c6828f4a107b01649bad86d436b5b7484be7eb792fe15ba099d5821"
  },
  "nodes": [
    {
      "id": "37f90234-8233-495a-b9e5-394de7c76852",
      "name": "Al hacer clic en 'Ejecutar flujo de trabajo'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        64,
        96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3b725892-b48f-42b1-b76f-13222f146ade",
      "name": "Nota adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -48
      ],
      "parameters": {
        "color": 5,
        "width": 1776,
        "height": 320,
        "content": "## Article Content Enhancer with AI Summary\n\nThis workflow enhances existing articles by adding an AI-generated heading and a short summary paragraph at the end. It retrieves the article content, processes it for the AI prompt, and updates the post with the new section.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "13591b8e-c2e3-45f3-b841-2e26c7ebe54c",
      "name": "Obtener contenido del artículo (API)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        288,
        96
      ],
      "parameters": {
        "url": "=https://example.com/wp-json/wp/v2/posts?per_page=100",
        "options": {
          "batching": {
            "batch": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth"
      },
      "credentials": {
        "httpBasicAuth": {
          "id": "a390F9PA3LRvL5DR",
          "name": "YOUR_API_KEY"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "bbb1b9e0-83ae-4145-8b28-989e10051fea",
      "name": "Preparar campos de contenido del artículo",
      "type": "n8n-nodes-base.set",
      "position": [
        544,
        96
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "2f9c26a8-4c05-4719-8027-d99943ec8a4c",
              "name": "id",
              "type": "string",
              "value": "={{$json[\"id\"]}}"
            },
            {
              "id": "f1fce4f9-7125-4c48-98f8-fa8ca9933714",
              "name": "=title",
              "type": "string",
              "value": "={{$json[\"title\"][\"rendered\"]}}"
            },
            {
              "id": "facdf038-65a1-408c-bdd6-fce4c73011db",
              "name": "content",
              "type": "string",
              "value": "={{$json[\"content\"][\"rendered\"]}}"
            },
            {
              "id": "0566adcc-82f7-4967-9d9a-d4a08c9c5c8d",
              "name": "plainContent",
              "type": "string",
              "value": "={{ $json[\"content\"][\"rendered\"] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "65ba1acf-a99f-455b-8583-09e43799d7c2",
      "name": "Formatear contenido del artículo para el prompt",
      "type": "n8n-nodes-base.code",
      "position": [
        784,
        96
      ],
      "parameters": {
        "jsCode": "return items.map(item => {\n  const rawHtml = item.json.content;\n  const plainText = rawHtml.replace(/<[^>]+>/g, ' ').replace(/\\s+/g, ' ').trim();\n  return {\n    json: {\n      id: item.json.id,\n      title: item.json.title,\n      content: plainText\n    }\n  }\n});\n"
      },
      "typeVersion": 2
    },
    {
      "id": "5c58ac22-c58b-48e3-a164-a977b8e61ce2",
      "name": "Generar título y párrafo de resumen (IA)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1024,
        96
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=Acting as a specialized content writer for a [Your Topic] website,\n\nThis is the text of a website article. Please write a suitable heading and a 3-line concluding paragraph (useful, experience-based, user-friendly content with high engagement) to add at the end of the article.  \nArticle text:  \n{{ $json.content }}\n\nPlease strictly follow these guidelines:  \n- The information must be accurate, reliable, specialized, up-to-date, and original.  \n- Pay special attention to user satisfaction and addressing their needs and questions.  \n- The content should be useful and practical; it must offer significant value compared to other web content and be trustworthy and citable. It should also go beyond obvious facts.  \n- Try to use copywriting and advertising techniques in the content; the brand name is [Your Brand] .  \n- The content should be structured with a clear outline, headings, paragraphs, etc., and must be clear and simple, not complicated.  \n- Include detailed and precise information as much as possible.  \n- The content must be comprehensive, covering various aspects of the user's questions and the topic, including points competitors have missed.  \n- Preferably, include the content’s keyword (such as the article title) in the produced text.  \n- The content aims to:  \n   1. Attract organic traffic  \n   2. Build branding  \n   3. Be visible in chatbots  \n   4. Increase conversion rate through copywriting  \n- The tone should match the rest of the website’s content.\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "oETjE0hiLJ8SZxWX",
          "name": "YOUR_API_KEY"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "386099a2-583c-48ad-bdc3-d91d691cf385",
      "name": "Formatear salida de IA para actualización",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        96
      ],
      "parameters": {
        "jsCode": "return items.map(item => {\n  const id = item.json.id;\n  const htmlContent = item.json.content; \n  const summary = item.json.message?.content || \"\";\n\n \n  const newContent = htmlContent + \"<hr />\" + summary; \n\n  return {\n    json: {\n      id,\n      content: newContent\n    }\n  };\n});\n"
      },
      "typeVersion": 2
    },
    {
      "id": "bd7f690c-ac97-4c5a-8db5-524e4f8b2186",
      "name": "Actualizar artículo en WordPress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1616,
        96
      ],
      "parameters": {
        "url": "=https://example.com/wp-json/wp/v2/posts",
        "method": "PATCH",
        "options": {
          "batching": {
            "batch": {}
          }
        },
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "content",
              "value": "={{ $json.content }}"
            },
            {
              "name": "post_id",
              "value": "={{ $('Fetch Article Content (API)').item.json.id }}"
            }
          ]
        },
        "genericAuthType": "httpBasicAuth"
      },
      "credentials": {
        "httpBasicAuth": {
          "id": "a390F9PA3LRvL5DR",
          "name": "YOUR_API_KEY"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "pinData": {},
  "connections": {
    "13591b8e-c2e3-45f3-b841-2e26c7ebe54c": {
      "main": [
        [
          {
            "node": "bbb1b9e0-83ae-4145-8b28-989e10051fea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "386099a2-583c-48ad-bdc3-d91d691cf385": {
      "main": [
        [
          {
            "node": "bd7f690c-ac97-4c5a-8db5-524e4f8b2186",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bbb1b9e0-83ae-4145-8b28-989e10051fea": {
      "main": [
        [
          {
            "node": "65ba1acf-a99f-455b-8583-09e43799d7c2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "65ba1acf-a99f-455b-8583-09e43799d7c2": {
      "main": [
        [
          {
            "node": "5c58ac22-c58b-48e3-a164-a977b8e61ce2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "37f90234-8233-495a-b9e5-394de7c76852": {
      "main": [
        [
          {
            "node": "13591b8e-c2e3-45f3-b841-2e26c7ebe54c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5c58ac22-c58b-48e3-a164-a977b8e61ce2": {
      "main": [
        [
          {
            "node": "386099a2-583c-48ad-bdc3-d91d691cf385",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Creación de contenido, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Flujos de trabajo relacionados recomendados

Automatización de contenido de WordPress y WooCommerce con OpenAI: reseñas, comentarios y actualizaciones
Automatización de contenido de WordPress y WooCommerce con OpenAI: reseñas, comentarios y actualizaciones
Set
Code
Wordpress
+
Set
Code
Wordpress
38 NodosAli Khosravani
Creación de contenido
Generar reseñas de productos realistas para WooCommerce con OpenAI
Usar OpenAI para generar reseñas de productos realistas para WooCommerce
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
7 NodosAli Khosravani
Creación de contenido
Automatización de Printify - Actualizar títulos y descripciones - AlexK1919
Usar GPT-4o-mini para generar automáticamente títulos y descripciones de productos SEO para Printify
If
Set
Code
+
If
Set
Code
26 NodosAmit Mehta
Creación de contenido
Generación de comentarios con GPT-5 para automatizar la interacción en WordPress
Usar GPT-5 para generar comentarios y automatizar la interacción en blogs de WordPress
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
7 NodosAli Khosravani
IA Multimodal
Automatización de creación de contenido viral con OpenAI, ElevenLabs y Fal.ai para videos, podcasts y ASMR
Automatizar la creación de contenido viral para video, podcasts y ASMR con OpenAI, ElevenLabs y Fal.ai
Set
Code
Wait
+
Set
Code
Wait
97 NodosAdam Crafts
Creación de contenido
Publicación autónoma de blog basada en videos de YouTube
Publicación autónoma de blogs desde videos de YouTube usando ChatGPT, Sheets, Apify, Pexels y WordPress
If
Set
Code
+
If
Set
Code
80 NodosOriol Seguí
Creación de contenido
Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos8
Categoría2
Tipos de nodos6
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
Ali Khosravani

Ali Khosravani

@alikhosro

Automation & SEO Specialist with years of experience building smart workflows, AI-powered content solutions, and marketing automations. Skilled in n8n, WordPress, and API integrations to help businesses save time and grow faster.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34