AI Blog Content Generator using Slack, Perplexity, Pinecone, and Google Docs - n8n Workflow

Automate creating 800-word, research-backed blog posts using an advanced n8n workflow. Integrates Slack, Pinecone (RAG), Perplexity, and Google Docs for effortless, on-brand content generation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Marketing managers needing fast, scalable, and on-brand content creation.
Automation specialists looking for sophisticated Langchain/RAG n8n templates.
Content teams seeking to leverage AI for research and drafting.
Users familiar with n8n who want to build advanced, multi-tool AI agents.

Overview

This powerful n8n workflow transforms a simple idea from your team chat into a polished, publish-ready blog post. By acting as an ultimate AI content author, this automation solves the bottleneck of content creation by blending proprietary style guides (stored in Pinecone for RAG) with real-time research (via Perplexity).

The core of this n8n automation is the Langchain Agent, which orchestrates the entire process. When a team member posts a blog idea in Slack, the n8n trigger instantly starts the process. The agent utilizes its tools to ensure the resulting 800+ word article is both current and perfectly aligned with your established brand voice, delivering the final output directly into a Google Doc for easy review.

How it Works

The entire process is initiated by the custom n8n trigger:


  1. Slack Activation: The n8n workflow starts when a team member uses the @ mention command with a blog post idea in the specified Slack channel. This acts as the primary n8n trigger.

  2. AI Orchestration: The 'Blogpost AI Agent' n8n node takes the blog idea. This agent is configured with strict instructions to generate a professional, structured article of at least 800 words.

  3. Real-Time Research (Perplexity): The agent first uses the Perplexity tool (sonar-pro model) to gather the most current data, news, and insights relevant to the topic, ensuring the article is factually up-to-date.

  4. Brand Style Injection (Pinecone RAG): Simultaneously, the agent queries the Pinecone Vector Store. This retrieval-augmented generation (RAG) tool injects stored company style guides or past successful blog posts into the context, guaranteeing the generated content is on-brand.

  5. Drafting (Anthropic): The 'Anthropic Chat Model' node (claude-sonnet-4-20250514) is used by the agent to synthesize the research and style inputs into the final article.

  6. Google Docs Output: The complete, polished blog content is first used to create a new Google Doc using the 'Create a document' n8n node, and then inserted into that document by the 'Update a document' n8n node, making it immediately accessible for the content team.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data and paste it into your n8n instance using the 'New' > 'Import from JSON' option.

  2. Set up Credentials: You must provide credentials for the following services within your n8n environment:

Slack API (for the n8n trigger).
Perplexity API Key.
Anthropic or OpenAI API Key (for the Chat Model and Embeddings).
Pinecone API Key.
* Google Docs/Drive credentials.

  1. Configure Placeholder Nodes: Update the placeholders (<<CHANNELID>>>, <<INDEX>>>, <<DRIVEFOLDERID>>>, etc.) in the 'Slack Trigger', 'Pinecone Vector Store', and 'Google Docs' n8n nodes with your specific IDs and indexes.

  2. Activate the Workflow: Ensure the 'Slack Trigger' n8n node is configured correctly for app mentions, and then activate the entire n8n workflow to begin automation.

Node Details

This advanced n8n workflow utilizes several specialized n8n node components:

Slack Trigger: The starting n8n trigger node. It listens for app_mention events in a designated channel, passing the message content (the blog idea) to the agent.
Blogpost AI Agent: The central Langchain n8n node. It manages the content creation process, utilizing internal constraints (800+ words, specific structure) and external tools (Perplexity, Pinecone).
Anthropic Chat Model: The large language model driving the content generation. Key configuration uses claude-sonnet-4-20250514 for high-quality, professional output.
Message a model in Perplexity (Perplexity Tool): Acts as a real-time research tool linked to the agent. Uses the sonar-pro model to retrieve the most up-to-date information.
Pinecone Vector Store: Configured as a RAG tool. It retrieves relevant documents (e.g., style guides) from a specific Pinecone index, ensuring brand consistency in the final article generated by this n8n template.
Embeddings OpenAI: Required for processing vector searches against the Pinecone n8n node.


  • Create a document & Update a document (Google Docs): These two sequential n8n node steps handle the final delivery, creating a placeholder document and then inserting the AI Agent’s generated text into it.

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

Featured*