AutomationFlowsAI & RAG › AI Content

AI Content

AI-Content. Uses agent, lmChatGoogleGemini. Webhook trigger; 4 nodes.

Webhook trigger★★★★☆ complexityAI-powered4 nodesAgentGoogle Gemini Chat
AI & RAG Trigger: Webhook Nodes: 4 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Agent → Google Gemini Chat 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 →

Download .json
{
  "name": "AI-Content",
  "nodes": [
    {
      "parameters": {
        "promptType": "define",
        "text": "=Kullan\u0131c\u0131 \u015fu konuyu verdi:\n{{ $json.body.topic }}\nBir uzman i\u00e7erik yazar\u0131 ve SEO uzman\u0131 olarak bu girdiye g\u00f6re a\u015fa\u011f\u0131daki alanlar\u0131 olu\u015ftur:\n\n- title: \u0130\u00e7eri\u011fi en iyi \u015fekilde \u00f6zetleyen, dikkat \u00e7ekici bir ba\u015fl\u0131k.\n- content: Konuyla ilgili k\u0131sa ama etkileyici bir i\u00e7erik (maksimum 500 karakter).\n- slug: Ba\u015fl\u0131\u011fa uygun, k\u00fc\u00e7\u00fck harfli, T\u00fcrk\u00e7e karakter i\u00e7ermeyen URL uyumlu slug.\n- seoTitle: Arama motoru sonu\u00e7lar\u0131nda dikkat \u00e7ekecek bi\u00e7imde optimize edilmi\u015f ba\u015fl\u0131k.\n- seoDescription: 150-160 karakter aras\u0131nda, SEO uyumlu a\u00e7\u0131klama.\n- seoKeywords: 5-8 anahtar kelimeyi **tek string** olarak, aralar\u0131nda virg\u00fcl ile ay\u0131r.\n\nSonucu yaln\u0131zca a\u015fa\u011f\u0131daki JSON format\u0131nda d\u00f6nd\u00fcr. Ek a\u00e7\u0131klama veya metin ekleme.\n\n{\n  \"title\": \"\",\n  \"content\": \"\",\n  \"slug\": \"\",\n  \"seoTitle\": \"\",\n  \"seoDescription\": \"\",\n  \"seoKeywords\": \"\"\n}\n",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        208,
        0
      ],
      "id": "fd992549-d899-44d3-8940-9f3833f73dda",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        80,
        208
      ],
      "id": "40f9314f-d102-4dde-ba2f-5e6c5dd71312",
      "name": "Google Gemini Chat Model",
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "cfd6cc29-12ac-47d1-b182-a2a689b47f62",
        "responseMode": "lastNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -112,
        0
      ],
      "id": "b73ce937-90d6-4948-81f0-72ea15cd752b",
      "name": "Webhook"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// AI Agent node'dan gelen ham veri\nconst raw = $input.item.json.response || $input.item.json.output;\n\n// E\u011fer AI markdown format\u0131nda d\u00f6nd\u00fcrm\u00fc\u015fse temizle\nconst clean = typeof raw === \"string\" ? raw.replace(/```json|```/g, \"\").trim() : raw;\n\nlet parsed;\ntry {\n  // string ise parse et, de\u011filse oldu\u011fu gibi al\n  parsed = typeof clean === \"string\" ? JSON.parse(clean) : clean;\n} catch(err) {\n  parsed = { error: \"Invalid JSON format\", raw };\n}\n\n// E\u011fer seoKeywords diziyse, string haline getir\nif (parsed.seoKeywords && Array.isArray(parsed.seoKeywords)) {\n  parsed.seoKeywords = parsed.seoKeywords.join(\", \");\n}\n\n// \ud83d\udd39 Tek item olarak d\u00f6nd\u00fcr (array de\u011fil)\nreturn { json: parsed };\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        560,
        0
      ],
      "id": "2ffbc669-db9b-4bfc-9ee2-80ea6fa017a8",
      "name": "Code in JavaScript"
    }
  ],
  "connections": {
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1c6f1ce3-5d13-4890-a1f0-1ac5596692da",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "MmgBQUxUd94wH65A",
  "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.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

AI-Content. Uses agent, lmChatGoogleGemini. Webhook trigger; 4 nodes.

Source: https://github.com/ayberkdo/nextjs-n8n-ai-blog/blob/2172da28f7405108cf7c5d8a0eed798ff021e07f/n8n/workflow/ai-content.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

⏺ 🚀 How it works

Agent, Anthropic Chat, Output Parser Structured +6
AI & RAG

Are you drowning in daily operational chaos, desperately trying to juggle sales, projects, content, and client communication? Imagine an AI brain that handles it all, freeing you to lead your business

Telegram Trigger, Telegram, OpenAI +13
AI & RAG

CLINICAINTEGRAL_secretary. Uses postgres, mcpClientTool, googleDriveTool, toolWorkflow. Webhook trigger; 89 nodes.

Postgres, Mcp Client Tool, Google Drive Tool +14
AI & RAG

secretaria. Uses postgres, n8n-nodes-evolution-api, openAi, httpRequest. Webhook trigger; 71 nodes.

Postgres, N8N Nodes Evolution Api, OpenAI +12
AI & RAG

LineOA. Uses httpRequest, agent, lmChatGoogleGemini, outputParserStructured. Webhook trigger; 69 nodes.

HTTP Request, Agent, Google Gemini Chat +3