AutomationFlowsAI & RAG › 產出貼文 Hashtag (hashtag Generator · 本機 Ollama)

產出貼文 Hashtag (hashtag Generator · 本機 Ollama)

產出貼文 Hashtag (Hashtag Generator · 本機 Ollama). Uses httpRequest. Event-driven trigger; 4 nodes.

Event trigger★★★★☆ complexity4 nodesHTTP Request
AI & RAG Trigger: Event Nodes: 4 Complexity: ★★★★☆ Added:

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
{
  "id": "WkHashtagGen02",
  "name": "\u7522\u51fa\u8cbc\u6587 Hashtag (Hashtag Generator \u00b7 \u672c\u6a5f Ollama)",
  "nodes": [
    {
      "parameters": {},
      "id": "node-manual",
      "name": "When clicking Execute",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        400
      ]
    },
    {
      "parameters": {
        "jsCode": "const topic = '\uff08\u628a\u9019\u88e1\u63db\u6210\u4f60\u7684\u8cbc\u6587\u4e3b\u984c\u6216\u5167\u5bb9\uff0c\u4f8b\u5982\uff1a\u5206\u4eab\u4e00\u500b\u514d\u8cbb AI \u53bb\u80cc\u5de5\u5177\uff09';\nconst prompt = '\u4f60\u662f\u719f\u6089\u53f0\u7063\u793e\u7fa4\u7684\u884c\u92b7\u5c08\u5bb6\u3002\u6839\u64da\u4ee5\u4e0b\u8cbc\u6587\u4e3b\u984c/\u5167\u5bb9\uff0c\u7522\u751f hashtag \u4e26\u4f9d\u5e73\u53f0\u5206\u7d44\uff1a\\nIG\uff1a5-8 \u500b\\nThreads\uff1a1-3 \u500b\\nFacebook\uff1a1-2 \u500b\\n\u898f\u5247\uff1a\u4ee5\u7e41\u9ad4\u4e2d\u6587\u70ba\u4e3b\u3001\u53ef\u6df7\u5c11\u91cf\u82f1\u6587\u3001\u6bcf\u500b\u524d\u9762\u52a0 #\u3001\u5206\u5e73\u53f0\u689d\u5217\u3001\u4e0d\u8981\u591a\u9918\u89e3\u91cb\u3002\\n\\n\u4e3b\u984c/\u5167\u5bb9\uff1a\\n' + topic;\nreturn [{ json: { topic, prompt } }];"
      },
      "id": "node-input",
      "name": "Input (edit me)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        460,
        400
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://host.docker.internal:11434/api/chat",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: 'qwen2.5:latest', messages: [ { role: 'system', content: '\u4f60\u662f\u53f0\u7063\u4eba\uff0c\u4e00\u5f8b\u4f7f\u7528\u53f0\u7063\u7e41\u9ad4\u4e2d\u6587\u8207\u53f0\u7063\u6163\u7528\u8a9e\u56de\u8986\uff0c\u7d55\u5c0d\u4e0d\u8981\u51fa\u73fe\u4efb\u4f55\u7c21\u9ad4\u5b57\u6216\u4e2d\u570b\u7528\u8a9e\u3002' }, { role: 'user', content: $json.prompt } ], stream: false }) }}",
        "options": {
          "timeout": 180000
        }
      },
      "id": "node-ollama",
      "name": "Summarize with Ollama",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        680,
        400
      ]
    },
    {
      "parameters": {
        "jsCode": "const data = $input.first().json;\nlet out = '';\ntry { out = (data.message && data.message.content) || (data.content && data.content[0] && data.content[0].text) || data.response || ''; } catch (e) {}\nif (!out) out = JSON.stringify(data);\nreturn [{ json: { result: out } }];"
      },
      "id": "node-result",
      "name": "Result",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        900,
        400
      ]
    }
  ],
  "connections": {
    "When clicking Execute": {
      "main": [
        [
          {
            "node": "Input (edit me)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input (edit me)": {
      "main": [
        [
          {
            "node": "Summarize with Ollama",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize with Ollama": {
      "main": [
        [
          {
            "node": "Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": []
}
Pro

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

About this workflow

產出貼文 Hashtag (Hashtag Generator · 本機 Ollama). Uses httpRequest. Event-driven trigger; 4 nodes.

Source: https://github.com/YuriCrystal/n8n-marketing-flows/blob/main/templates/02-hashtag-generator.local-ollama.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

legal_rag_telegram_api_current_github_ready. Uses telegramTrigger, httpRequest. Event-driven trigger; 56 nodes.

Telegram Trigger, HTTP Request
AI & RAG

This workflow discovers trending topics from YouTube Most Popular and Google Trends, uses OpenAI to rank and draft Shorts-ready angles, stores items for review in Airtable, then sends approved records

HTTP Request, RSS Feed Read
AI & RAG

This n8n workflow automatically generates presentation-style "screen recording" videos with AI-generated slides and a talking head avatar overlay. You provide a topic and intention, and the workflow h

HTTP Request, N8N Nodes Veed, Google Drive +1
AI & RAG

Monitor Google Drive folder, parsing PDF, DOCX and image file into a destination folder, ready for further processing (e.g. RAG ingestion, translation, etc.) Keep processing log in Google Sheet and se

Google Drive Trigger, Google Drive, HTTP Request +2
AI & RAG

This workflow is designed for individuals and businesses looking to streamline the creation of engaging promotional videos. Whether you're marketing a product or developing a personal brand, this AI-d

HTTP Request, Google Cloud Storage, Google Sheets