AutomationFlowsAI & RAG › Et

Et

ET. Uses lmChatAzureOpenAi, lmChatOllama, httpRequest, agent. Scheduled trigger; 12 nodes.

Cron / scheduled trigger★★★★☆ complexityAI-powered12 nodesLm Chat Azure Open AiOllama ChatHTTP RequestAgentWordPressFunction Item
AI & RAG Trigger: Cron / scheduled Nodes: 12 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Agent → HTTP Request 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
{
  "createdAt": "2025-04-05T06:56:33.473Z",
  "updatedAt": "2025-04-23T02:25:01.110Z",
  "id": "5tfw5RyL782IRARo",
  "name": "ET",
  "active": false,
  "nodes": [
    {
      "parameters": {
        "model": "gpt-4o-mini",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "typeVersion": 1,
      "position": [
        640,
        260
      ],
      "id": "2557283b-c839-4396-b876-b78413484d47",
      "name": "Azure OpenAI Chat Model",
      "credentials": {
        "azureOpenAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "typeVersion": 1,
      "position": [
        640,
        480
      ],
      "id": "5b4e040f-d367-4565-a4bc-3ad824284334",
      "name": "Ollama Chat Model",
      "credentials": {
        "ollamaApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "seconds"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -80,
        80
      ],
      "id": "4749dc4f-e590-4603-8951-3035b768a5a3",
      "name": "\u8a2d\u5b9a\u6642\u9593"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{\n  \"topic\": \"\u592a\u967d\u7684\u79d8\u5bc6 (\u592a\u967d\u3001\u6046\u661f\u3001\u6298\u5c04)\",\n  \"query\": \"solar+energy+OR+sunlight+and+life+OR+refraction+of+light\",\n  \"//\": \"\u592a\u967d\u7684\u79d8\u5bc6 (\u592a\u967d\u3001\u6046\u661f\u3001\u6298\u5c04)solar+energy+OR+sunlight+and+life+OR+refraction+of+light\u3001\u529b\u8207\u904b\u52d5 (\u5730\u7403\u5f15\u529b\u3001\u6469\u64e6\u529b\u3001\u52d5\u80fd\u3001\u963b\u529b\u3001\u842c\u6709\u5f15\u529b\u6027)gravity+on+earth+OR+force+and+motion+OR+measuring+force+OR+friction+and+its+effect\"\n  \n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        100,
        80
      ],
      "id": "7bc1c372-c829-499f-b6a3-da60d93918f0",
      "name": "\u9078\u64c7\u6d3b\u52d5\u4e3b\u984c\u8207\u95dc\u9375\u5b57"
    },
    {
      "parameters": {
        "url": "=https://newsapi.org/v2/everything?q={{ $json.query }}&apiKey=78e0265b8b124d189b2f83003e06ad21",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        280,
        80
      ],
      "id": "29238c51-cfaf-4347-8e9c-753c40bdc332",
      "name": "\u8b80\u53d6\u7db2\u8def\u6587\u7ae0"
    },
    {
      "parameters": {
        "promptType": "=define",
        "text": "=\u60a8\u662f\u570b\u5c0f\u81ea\u7136\u79d1\u88dc\u5145\u95b1\u8b80\u7de8\u8f2f\uff0c\u8ca0\u8cac\u7be9\u9078\u3001\u7ffb\u8b6f\u548c\u6574\u7406\u6700\u65b0\u7684\u81ea\u7136\u8207\u751f\u6d3b\u61c9\u7528\u76f8\u95dc\u65b0\u805e\uff0c\u4e26\u78ba\u4fdd\u8cc7\u8a0a\u6e05\u6670\u4e14\u7f8e\u89c0\u5730\u5448\u73fe\u7d66\u5b78\u751f\u3002\u8acb\u6839\u64da\u4ee5\u4e0b\u898f\u7bc4\u751f\u6210\u6700\u7d42\u5167\u5bb9\uff1a\n\n1. \u65b0\u805e\u9078\u64c7\u8207\u6574\u5408\n\u8acb\u4ed4\u7d30\u6aa2\u67e5\u63d0\u4f9b\u7684\u6574\u4efd\u65b0\u805e\u6e05\u55ae\uff0c\u4e26\u4f9d\u64da\u6bcf\u7bc7\u65b0\u805e\u7684\u76f8\u95dc\u6027\u4f86\u9078\u64c7\uff0c\u800c\u975e\u50c5\u9078\u53d6\u524d\u5e7e\u7b46\u3002\u5f9e\u63d0\u4f9b\u7684\u65b0\u805e\u6e05\u55ae{{ $json.articles }}\u4e2d\uff0c\u4e0d\u8981\u53ea\u6311\u9078\u6700\u524d\u9762\u7684\u65b0\u805e\uff0c\u8acb\u5f9e\u6574\u500b\u5217\u8868\u4e2d\u96a8\u6a5f\u6216\u5747\u52fb\u7be9\u9078\u81f3\u5c11 2 \u5247\u8207\u300c{{ $('\u9078\u64c7\u6d3b\u52d5\u4e3b\u984c\u8207\u95dc\u9375\u5b57').item.json.topic }}\u300d\u6216\u4e00\u822c\u751f\u6d3b\u81ea\u7136\u76f8\u95dc\u7684\u65b0\u805e\uff0c\u5408\u4f75\u6210\u4e00\u7bc7\u6709\u8da3\u6613\u61c2\u7684\u6587\u7ae0\u3002\n\n\u82e5\u65b0\u805e\u6d89\u53ca\u653f\u6cbb\u3001\u707d\u5bb3\u3001\u8ca1\u7d93\u7b49\u4e3b\u984c\uff0c\u8acb\u5ffd\u7565\u4e0d\u63a1\u7528\u3002\n\n2. \u7ffb\u8b6f\u8207\u7528\u8a5e\n\u4ee5\u7e41\u9ad4\u4e2d\u6587\u64b0\u5beb\uff0c\u53ef\u9069\u5ea6\u4fdd\u7559\u5e38\u898b\u82f1\u6587\u8853\u8a9e\uff08\u5982 Physics\u3001Energy\u3001Photosynthesis \u7b49\uff09\u3002\n\n\u8a9e\u8a00\u9700\u8cbc\u8fd1\u570b\u5c0f\u5b78\u751f\u7684\u7406\u89e3\u7a0b\u5ea6\uff0c\u907f\u514d\u904e\u5ea6\u5c08\u696d\u5316\u7528\u8a5e\u3002\n\n3. \u5167\u5bb9\u9577\u5ea6\u8207\u53ef\u8b80\u6027\n\u6587\u7ae0\u7d04 500 \u5b57\uff0c\u9069\u5408\u570b\u5c0f\u5b78\u751f\u95b1\u8b80\u3002\n\n\u6d3b\u6f51\u6613\u61c2\uff0c\u80fd\u5f15\u8d77\u597d\u5947\u5fc3\u4e26\u9f13\u52f5\u767c\u554f\u3002\n\n4. \u7dad\u57fa\u767e\u79d1\u9023\u7d50\u898f\u7bc4\n\u5728\u6587\u4e2d\u63d2\u5165 1~2 \u500b\u8207\u4e3b\u984c\u5bc6\u5207\u76f8\u95dc\u7684\u7dad\u57fa\u767e\u79d1\u9023\u7d50\u3002\n\n\u8acb\u5148\u6aa2\u67e5\u4e26\u78ba\u4fdd\u63d2\u5165\u7684\u9023\u7d50\u78ba\u5be6\u6709\u5c0d\u61c9\u7684\u7dad\u57fa\u767e\u79d1\u689d\u76ee\uff1b\u82e5\u67e5\u7121\u76f8\u540c\u6a19\u984c\u7684\u4e2d\u6587\u9801\u9762\uff0c\u8acb\u9023\u7d50\u5230\u6db5\u84cb\u7bc4\u570d\u66f4\u5ee3\u6216\u76f8\u8fd1\u6982\u5ff5\u7684\u689d\u76ee\u3002\n\n\u9023\u7d50\u683c\u5f0f\u7bc4\u4f8b\uff1a\n\n<a href=\"https://zh.wikipedia.org/wiki/\u751f\u614b\">\u7dad\u57fa\u767e\u79d1\u77e5\u8b58\u9023\u7d50</a>\n5. \u65b0\u805e\u53c3\u8003\u9023\u7d50\n\u5728\u6587\u7ae0\u6700\u5f8c\u7684\u6bb5\u843d\u6216\u6e05\u55ae\u4e2d\uff0c\u5217\u51fa\u6240\u5f15\u7528\u7684\u65b0\u805e\u9023\u7d50\uff0c\u4ee5\u5229\u8b80\u8005\u6838\u5c0d\u4f86\u6e90\u3002\n\n\u53ef\u4f9d\u7167\u4e0b\u5217\u683c\u5f0f\u7bc4\u4f8b\uff08HTML\uff09\u5448\u73fe\uff1a\n\n<h3>\u53c3\u8003\u65b0\u805e\u4f86\u6e90\uff1a</h3>\n<ul>\n  <li><a href=\"\u5c0d\u61c9\u7684\u65b0\u805e\u9023\u7d501\">\u65b0\u805e\u6a19\u984c\u6216\u6458\u8981(\u4f86\u6e90\u7db2\u7ad9\u540d)</a></li>\n  <li><a href=\"\u5c0d\u61c9\u7684\u65b0\u805e\u9023\u7d502\">\u65b0\u805e\u6a19\u984c\u6216\u6458\u8981(\u4f86\u6e90\u7db2\u7ad9\u540d)</a></li>\n</ul>\n6. HTML \u683c\u5f0f\u8207\u6392\u7248\n\u8acb\u52ff\u4f7f\u7528 Markdown \u683c\u5f0f\u3002\n\n\u4f7f\u7528 <h3> \u4f86\u8868\u793a\u6a19\u984c\uff1b\u4f7f\u7528 <p> \u4f86\u8868\u793a\u6bb5\u843d\uff1b\u4f7f\u7528 <ul>\u3001<li> \u4f86\u5217\u51fa\u8981\u9ede\u6216\u65b0\u805e\u6458\u8981\u3002\n\n7. \u6700\u7d42\u8f38\u51fa\u683c\u5f0f\uff08JSON\uff09\n\u8acb\u56b4\u683c\u4f9d\u7167\u4e0b\u5217 JSON \u7d50\u69cb\u8f38\u51fa\uff1a\n\n{\n  \"title\": \"\u751f\u6210\u7684\u6587\u7ae0\u6a19\u984c\",\n  \"content\": \"<h3>\u6458\u8981\uff1a</h3><p>\u2026</p><h3>\u5167\u5bb9\uff1a</h3><p>\u2026</p><ul><li>\u2026</li></ul>\"\n}\ntitle: \u70ba\u6587\u7ae0\u53d6\u4e00\u500b\u6709\u8da3\u3001\u6709\u5275\u610f\u7684\u4e3b\u984c\u3002\n\ncontent: \u70ba\u5b8c\u6574\u7684 HTML \u5b57\u4e32\uff0c\u5305\u542b <h3>\u3001<p>\u3001<ul>\u3001<li>\u3001\u7dad\u57fa\u767e\u79d1\u9023\u7d50\u3001\u4ee5\u53ca\u5f15\u7528\u7684\u65b0\u805e\u9023\u7d50\u7b49\u6a19\u7c64\u3002\n\n\u8acb\u5728 <content> \u4e2d\u7684\u5c3e\u6bb5\u6216\u7d50\u5c3e\u90e8\u5206\uff0c\u53e6\u5916\u65b0\u589e <h3>\u53c3\u8003\u65b0\u805e\u4f86\u6e90\uff1a</h3> \u6a19\u984c\u53ca <ul> \u6e05\u55ae\uff0c\u5217\u51fa\u672c\u6b21\u5f15\u7528\u7684\u65b0\u805e\u9023\u7d50\u3002",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.7,
      "position": [
        620,
        80
      ],
      "id": "0bf28394-038f-46a6-bb44-dce8f38b21f1",
      "name": "AI Agent\u751f\u6210"
    },
    {
      "parameters": {
        "title": "={{ $('\u6578\u64da\u8f49\u63db1').item.json.json.title }}",
        "additionalFields": {
          "content": "={{ $('\u6578\u64da\u8f49\u63db1').item.json.json.content }}",
          "status": "publish",
          "categories": [
            31
          ]
        }
      },
      "type": "n8n-nodes-base.wordpress",
      "typeVersion": 1,
      "position": [
        1100,
        80
      ],
      "id": "9700f163-4539-4eee-9c9c-7349cedf46c0",
      "name": "\u4e0a\u50b3Wordpress",
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "url": "https://etwork.live/wp-json/wp/v2/media?per_page=100&type=image",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1280,
        80
      ],
      "id": "91853f06-7269-4ac4-b01f-aa58f0367eeb",
      "name": "\u8b80\u53d6\u5716\u7247",
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "functionCode": "// \u78ba\u4fdd\u6211\u5011\u5f9e Pexels \u7684\u56de\u61c9\u4e2d\u63d0\u53d6\u5716\u7247\u6578\u7d44\nconst images = $json[\"photos\"];  // \u78ba\u4fdd\u5f9e 'photos' \u4e2d\u63d0\u53d6\u6578\u7d44\n\n// \u6aa2\u67e5\u662f\u5426\u7372\u5f97\u4e86\u5716\u7247\u6578\u7d44\uff0c\u907f\u514d\u51fa\u73fe undefined\nif (images && images.length > 0) {\n  const randomIndex = Math.floor(Math.random() * images.length);  // \u96a8\u6a5f\u9078\u64c7\u4e00\u5f35\u5716\u7247\n  const randomImage = images[randomIndex];\n  return {\n    json: {\n      selectedImageId: randomImage.id  // \u7372\u53d6\u8a72\u5716\u7247\u7684 ID\n    }\n  };\n} else {\n  return {\n    json: {\n      error: \"No images found.\"\n    }\n  };\n}\n"
      },
      "name": "\u8a2d\u5b9a\u5716\u7247",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        1460,
        80
      ],
      "id": "ed11f54b-eaef-4d74-8f61-53622d0a445a"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://etwork.live//wp-json/wp/v2/posts/{{ $('\u4e0a\u50b3Wordpress').item.json.id }}",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"featured_media\": {{ $('\u8b80\u53d6\u5716\u7247').item.json.id }}\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1660,
        80
      ],
      "id": "86f3a4e0-5b51-47ea-a2b9-c76498fe45ca",
      "name": "\u8a2d\u5b9a\u7cbe\u9078",
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "542a67ef-b627-4c71-8188-8a208c500cb1",
              "name": "articles",
              "value": "={{ $json.articles }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        460,
        80
      ],
      "id": "99a8935d-4e10-4c5e-b8a8-0fdf7ad5295d",
      "name": "\u6578\u64da\u8f49\u63db"
    },
    {
      "parameters": {
        "functionCode": "const rawString = $json.output;\nconst data = JSON.parse(rawString);\n\nreturn {\n  json: {\n    title: data.title,\n    content: data.content\n  }\n};\n"
      },
      "name": "\u6578\u64da\u8f49\u63db1",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        940,
        80
      ],
      "id": "db2af44e-f2a7-45a4-ba9b-2eb10deb2701"
    }
  ],
  "connections": {
    "Azure OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent\u751f\u6210",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        []
      ]
    },
    "\u8a2d\u5b9a\u6642\u9593": {
      "main": [
        [
          {
            "node": "\u9078\u64c7\u6d3b\u52d5\u4e3b\u984c\u8207\u95dc\u9375\u5b57",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u9078\u64c7\u6d3b\u52d5\u4e3b\u984c\u8207\u95dc\u9375\u5b57": {
      "main": [
        [
          {
            "node": "\u8b80\u53d6\u7db2\u8def\u6587\u7ae0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u8b80\u53d6\u7db2\u8def\u6587\u7ae0": {
      "main": [
        [
          {
            "node": "\u6578\u64da\u8f49\u63db",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent\u751f\u6210": {
      "main": [
        [
          {
            "node": "\u6578\u64da\u8f49\u63db1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u4e0a\u50b3Wordpress": {
      "main": [
        [
          {
            "node": "\u8b80\u53d6\u5716\u7247",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u8b80\u53d6\u5716\u7247": {
      "main": [
        [
          {
            "node": "\u8a2d\u5b9a\u5716\u7247",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u8a2d\u5b9a\u5716\u7247": {
      "main": [
        [
          {
            "node": "\u8a2d\u5b9a\u7cbe\u9078",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u6578\u64da\u8f49\u63db": {
      "main": [
        [
          {
            "node": "AI Agent\u751f\u6210",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u6578\u64da\u8f49\u63db1": {
      "main": [
        [
          {
            "node": "\u4e0a\u50b3Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "timezone": "Asia/Taipei",
    "callerPolicy": "workflowsFromSameOwner"
  },
  "staticData": {
    "node:Schedule Trigger": {
      "recurrenceRules": []
    },
    "node:\u8a2d\u5b9a\u6642\u9593": {
      "recurrenceRules": []
    }
  },
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "92b42a4d-7407-4402-ba97-d12d5d3d93bd",
  "triggerCount": 1,
  "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

ET. Uses lmChatAzureOpenAi, lmChatOllama, httpRequest, agent. Scheduled trigger; 12 nodes.

Source: https://github.com/Chunshan-Theta/n8n-ops/blob/5562294e10b43e60d468c50487f25f7ecf1ee28d/workflows/ET.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

This workflow is for beauty salons who want consistent, high‑quality social media content without writing every post manually. It also suits agencies and automation builders who manage multiple beauty

Telegram, Google Sheets Trigger, Agent +26
AI & RAG

This workflow is designed for marketers, content creators, agencies, and solo founders who want to publish long‑form posts with visuals on autopilot using n8n and AI agents. ​

Tool Http Request, Agent, HTTP Request +27
AI & RAG

Who Is This For?

Telegram, Google Sheets Trigger, Lm Chat Mistral Cloud +17
AI & RAG

Complete PostgreSQL-backed system: Keyword scoring → AI research → Multi-part content generation → fal.ai Nano Banana image generation → WordPress publishing

WordPress, OpenAI, Perplexity +8
AI & RAG

We’ve released Version 4 of our AI Powered Blog Automation workflow. We heard your complains and made a complete redesign built for serious content creators.

RSS Feed Read, OpenAI Chat, Text Classifier +6