Skip to main content

Generate social media hashtags from Twitter & YouTube trends with Mistral AI

Workflow preview

Workflow preview
100%
Generate social media hashtags from Twitter & YouTube trends with Mistral AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Description This workflow automatically collects daily trending topics from Twitter and YouTube,...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.merge, n8n-nodes-base.scheduletrigger, n8n-nodes-crawl-and-scrape.crawleenode, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatmistralcloud

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by ResilNext.

Original n8n.io source

1.1 Workflow description

Title
Generate social media hashtags from Twitter & YouTube trends with Mistral AI
Workflow name
Generate social media hashtags from Twitter & YouTube trends with Mistral AI

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Description

This workflow automatically collects daily trending topics from Twitter and YouTube, filters them for relevance, and uses an AI model (such as Mistral Cloud or another OpenAI-compatible API) to generate engaging social media hashtags. The final results, including source platform and date, are saved into a connected Google Sheet for easy access, tracking, or team collaboration.

Ideal for content creators, marketers, and social media managers, this automation eliminates the manual effort of trend research and hashtag writing by combining real-time scraping with LLM-powered generation. The result is a scalable, daily strategy tool to stay aligned with what’s trending across major platforms.


How It Works

  1. Daily Trigger

    • Starts the workflow automatically on a daily schedule.
  2. Trend Scraping

  3. Filtering & Slicing

    • Removes irrelevant or duplicate entries and limits each platform’s list to top-performing trends.
  4. Merge Trends

    • Combines Twitter and YouTube trends into a single dataset.
  5. AI Hashtag Generation

    • Sends each trend topic to an AI model to generate relevant hashtags.
  6. Output to Google Sheets

    • Loops through AI results and writes them to a Google Sheet, including trend, platform, hashtags, and timestamp.

Setup Instructions

Estimated time: 10–15 minutes

Prerequisites

  • A self-hosted instance of n8n (required for community nodes)
  • API key for Mistral Cloud or any OpenAI-compatible LLM
  • Google Sheets account connected via OAuth2 credentials
  • Twitter and YouTube trend URLs (or scraping logic for target regions)

Template Image:

Example: Crawl and Scrape Node for Twitter Trends

You can use the following configuration in the Crawl and Scrape node to extract Twitter trends from Trends24

{
  "parameters": {
    "url": "https://trends24.in/",
    "selectors": [
      {
        "label": "Twitter Trends",
        "selector": ".trend-card__list li a",
        "type": "text"
      }
    ]
  },
  "name": "Scrape Twitter Trends",
  "type": "n8n-nodes-crawl-and-scrape.crawlAndScrape",
  "typeVersion": 1,
  "position": [300, 200]
}

Google Sheet Column Format

Column A: Generated Hashtags![Screenshot 339.png](fileId:1842)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 2 - daily trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - extract twitter trends

Type / Role
n8n-nodes-crawl-and-scrape.crawleeNode - crawleeNode
Config choices
Version 1

Block 4 - extract YouTube trends

Type / Role
n8n-nodes-crawl-and-scrape.crawleeNode - crawleeNode
Config choices
Version 1

Block 5 - Google Sheets2

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 6 - Loop Over Items2

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Mistral Cloud Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatMistralCloud - lmChatMistralCloud
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - filter twitter trends

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 13 - filter YouTube trends

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 14 - get only top 100 trends

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - hashtag generator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

3. Summary Table

Workflow Generate social media hashtags from Twitter & YouTube trends with Mistral AI
Complexity advanced
Nodes 15
Categories Content Creation, Multimodal AI
Author ResilNext
Published 20 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6203/6203.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate social media hashtags from Twitter & YouTube trends with Mistral AI do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Description This workflow automatically collects daily trending topics from Twitter and YouTube,...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.