Skip to main content

Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets

Workflow preview

Workflow preview
100%
Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Twitter Content Machine – Write, Refine & Publish Tweets on Autopilot This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high perform...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolworkflow, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.discord, n8n-nodes-base.if, n8n-nodes-base.executeworkflow, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets
Workflow name
Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets

AI Twitter Content Machine – Write, Refine & Publish Tweets on Autopilot

This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high-performing content on X (Twitter) — without writing a single line themselves. After a one-time setup, it automatically generates tweet ideas, writes in your voice, evaluates post quality, avoids duplicates, and publishes directly to Twitter. All approvals and rewrites are handled in a conversational loop powered by OpenAI, Discord, and Google Sheets.

Whether you’re building a personal brand or growing your startup audience, this tool will help you stay active, edgy, and relevant — with zero friction.

How it works

  • Distill what your flow does in a few high-level steps.
  • Loads your brand brief from a sub-workflow.
  • Generates a tweet idea aligned with your tone.
  • Checks Google Sheets to ensure the idea hasn’t been used.
  • Writes the post.
  • Evaluates it using a feedback sub-workflow — if the quality score is below 0.7, it rewrites the post.
  • Refines tone and voice using a Rewriter Agent that mimics your past content (from a Google Sheet).
  • Sends the final post to a Discord channel for manual approval.
  • On approval, posts directly to Twitter (X) and logs it to Google Sheets (History and Examples tabs).

Set up steps

  • Give users an idea of how long setup will take. Don’t describe every detail.
  • Keep detailed descriptions in sticky notes inside your workflow.

Key benefits

  • No burnout, no block – Stop spending energy thinking what to tweet. AI handles everything.
  • Style-matching – Posts sound like you, not a generic robot. Based on your real writing.
  • Fast & scalable – Publish once or five times a day — it’s up to you.
  • Avoid duplicates – Each idea is checked against your post history.
  • Human-in-the-loop – You approve final posts via Discord. No rogue tweets.

Integrations required

  • n8n
  • OpenAI API
  • Google Sheets
  • Twitter (OAuth2)
  • Discord (for approval)
  • Notion (optional for brand brief storage)

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 - OpenAI Chat Model

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

Block 2 - Simple Memory

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

Block 3 - Get_Brand_Brief

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.1

Block 4 - Get_Content_Fedback

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.1

Block 5 - AI Content creator

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

Block 6 - Discord confirm

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

Block 7 - If2

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

Block 8 - If1

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

Block 9 - Get Brief

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

Block 10 - Edit Fields

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

Block 11 - Structured Output Parser

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

Block 12 - Idea creator

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 13 - When clicking ‘Test workflow’

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

Block 16 - OpenAI Chat Model1

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

Block 17 - Simple Memory1

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

Block 18 - Check History

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.5

Block 19 - Check Examples

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.5

Block 20 - Rewriter

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Send post for approval

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

Block 24 - Try Again

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

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

3. Summary Table

Workflow Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets
Complexity advanced
Nodes 44
Categories Content Creation, Multimodal AI
Author LukaszB
Published 15 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4075/4075.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 Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets do?

AI Twitter Content Machine – Write, Refine & Publish Tweets on Autopilot This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high perform...

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.