Skip to main content

Automate social media content planning with Llama 3.3 AI, trending topics & Google Suite

Workflow preview

Workflow preview
100%
Automate social media content planning with Llama 3.3 AI, trending topics & Google Suite preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works: 1. Daily Trigger: Every morning at 8 AM, the workflow is automatically triggered. 2. Fetch Trending Topics: The workflow collects trending topics from external sources, such as news R...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.rssfeedread, n8n-nodes-base.reddit, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate social media content planning with Llama 3.3 AI, trending topics & Google Suite
Workflow name
Automate social media content planning with Llama 3.3 AI, trending topics & Google Suite

How it works:

  1. Daily Trigger: Every morning at 8 AM, the workflow is automatically triggered.

  2. Fetch Trending Topics: The workflow collects trending topics from external sources, such as news RSS feeds and Reddit popular posts. These trends are merged and summarized to provide up-to-date context for content generation.

  3. Read Active Campaigns: The workflow reads all rows from the “Active Campaigns” Google Sheet, but only processes campaigns with a status of "active" to avoid generating content for paused or inactive campaigns.

  4. Enrich Campaigns with Trends: Each active campaign is enriched with the latest trending topics, so the generated content can reference current events or popular themes.

  5. AI Content Generation: For each enriched campaign, Groq AI generates:

  • An engaging post caption tailored to the platform and target audience
  • Creative direction with visual suggestions
  • Relevant hashtags (5-10)
  • Best posting time recommendation for the platform
  1. Quality Scoring: The workflow calculates a quality score for each generated content idea, considering factors like caption length, hashtag count, and creative direction.

  2. Append to Google Sheets: The generated content ideas, along with their quality scores and other details, are appended to the “Daily Content Plan” Google Sheet for record-keeping and team collaboration.

  3. Schedule in Google Calendar: For each campaign, an event is created in Google Calendar with the content details and recommended posting time, ensuring the team is reminded to review or publish the content.

  4. Daily Email Summary (Optional): At the end of the process, a summary email can be sent to the team, including statistics such as the number of campaigns processed, average quality score, and a platform breakdown.

Set up steps:

  1. Prepare Your Google Sheets:
  • Create a sheet named “Active Campaigns” with columns: Project Name, Theme, Target Audience, Platform, and Status (to mark campaigns as active/inactive).
  • Create another sheet named “Daily Content Plan” with columns for Project Name, Date, Platform, Caption, Creative Direction, Hashtags, and any other details you want to track.
  1. Connect Google Services to n8n:
  • In n8n, set up and authenticate your Google Sheets and Google Calendar credentials. You can find authentication information in the n8n documentation for Google credentials.
  1. Add a Cron Node: Drag in a Cron node and set it to trigger every day at 8:00 AM.

  2. Read Campaigns from Google Sheets:

  • Add a Google Sheets node.
  • Set the operation to “Read Rows” and select your “Active Campaigns” sheet.
  • (Optional) Use a Filter or IF node to process only rows where Status is “active”.
  1. (Optional) Fetch Trending Topics: If you want to enrich your content with trending topics, add nodes to fetch data from RSS feeds, Reddit, or other sources.

  2. Process Each Campaign:

  • Use a SplitInBatches node to process each campaign row individually.
  1. Generate Content Ideas with Groq AI:
  • Add a Groq AI node (or OpenAI node if Groq is not available).
  • Configure the prompt to generate a content idea using the campaign’s theme, target audience, and platform. You can reference fields from the Google Sheets node using expressions like $("Google Sheets").item.json['Theme'].
  1. Append Results to “Daily Content Plan”:
  • Add another Google Sheets node.
  • Set the operation to “Append” and select your “Daily Content Plan” sheet.
  • Map the generated content fields to the appropriate columns.
  1. Schedule Events in Google Calendar:
  • Add a Google Calendar node.
  • Set the operation to “Create Event”.
  • Use the project name and content idea for the event title and description, and set the event time as needed.
  1. (Optional) Send a Daily Summary Email:
  • Add an Email node to send a summary of the day’s content plan to your team.
  1. Test the Workflow:
  • Run the workflow manually to ensure all steps work as expected.
  • Check that new content ideas appear in the “Daily Content Plan” sheet and that events are created in Google Calendar.
  1. Activate the Workflow:
  • Once you’ve confirmed everything works, activate the workflow so it runs automatically every morning.

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 - Sticky Note

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

Block 2 - Daily 8 AM Trigger1

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

Block 3 - Workflow Configuration1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Fetch News RSS1

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

Block 5 - Fetch Reddit Popular1

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

Block 6 - Merge Trends1

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

Block 7 - Format Trending Topics1

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

Block 8 - Read Active Campaigns1

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

Block 9 - Check Campaign Status1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 10 - Enrich with Trends1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Groq Chat Model1

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

Block 12 - Generate Content Ideas1

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

Block 13 - Structured Output Parser1

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

Block 14 - Format for Sheets1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Append to Daily Content Plan1

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

Block 16 - Format for Calendar1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Create Calendar Event1

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 18 - Calculate Performance Metrics1

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

Block 19 - Aggregate Daily Summary1

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

Block 20 - Format Email Content1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Send Gmail Summary1

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 22 - Main Overview1

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

Block 23 - Section

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

Block 24 - Section 5

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

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate social media content planning with Llama 3.3 AI, trending topics & Google Suite
Complexity advanced
Nodes 26
Categories Content Creation, Multimodal AI
Author DigiMetaLab
Published 17 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11880/11880.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 Automate social media content planning with Llama 3.3 AI, trending topics & Google Suite do?

How it works: 1. Daily Trigger: Every morning at 8 AM, the workflow is automatically triggered. 2. Fetch Trending Topics: The workflow collects trending topics from external sources, such as news R...

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.