๐ฌ Automate content publishing with GPT-4 via Google Sheets to email & Slack approval
โก 133 views ยท ๐ฌ Content Creation & Video
Description
Streamline the final stage of your content production workflow by automating publishing, formatting, metadata generation, and approval routing. This AI-powered subworkflow pulls optimized drafts from Google Sheets, enriches them with SEO metadata, converts them into publish-ready HTML, and delivers them via email and Slack for approval or distribution. Ideal for teams managing high-volume content pipelines with structured review processes. โจ๐๐
What This Template Does
- Triggers via chat to start the content publishing process. ๐ฌ
- Fetches the latest optimized content draft from Google Sheets using a content ID. ๐
- Prepares metadata such as topic, intent, platform, and parameters. ๐งฉ
- Uses an AI agent (GPT-4) to generate SEO metadata, HTML-formatted article, tags, and structured publish data. ๐ค
- Enforces JSON structure to ensure consistent output formatting. ๐งฑ
- Saves the publish-ready content (title, meta description, HTML, tags) back into Google Sheets for version tracking. ๐
- Sends the content to an approver via Gmail with a previewed HTML body. ๐ง
- Awaits approval and branches based on decision. ๐
- If approved, sends the final published content to the intended recipient via Gmail. ๐จ
- Sends a success confirmation message to Slack for team visibility. ๐ข
Key Benefits
โ AI-generated SEO optimization, metadata, and HTML formatting โ Centralizes content versioning within Google Sheets โ Automates approval workflows and content delivery โ Ensures consistent output structure with JSON parsing โ Reduces manual formatting, editing, and routing tasks โ Delivers instant Slack notifications for team transparency
Features
- Chat-triggered publishing workflow
- Google Sheets content retrieval and storage
- AI-driven formatting, metadata generation, HTML conversion
- Structured JSON enforcement for clean automation
- Gmail integration for approval + publishing
- Slack notifications for successful publication
- Short-term memory support for context persistence
Requirements
- Google Sheets OAuth2 credentials
- OpenAI API key (GPT-4 or GPT-4 mini)
- Gmail OAuth2 credentials for sending and receiving approval messages
- Slack API credentials with chat:write access
- Preconfigured Google Sheet containing optimized content drafts
Target Audience
- Content operations teams handling recurring content workflows
- SEO and marketing teams producing high-volume articles
- Agencies managing structured approval pipelines
- Automation specialists building content publishing systems
- Teams needing standardized, AI-enhanced HTML content
Step-by-Step Setup Instructions
- Connect your Google Sheets OAuth2 credential and replace the sheet/document IDs. ๐๏ธ
- Add your OpenAI API key for the AI Publishing Agent. ๐
- Connect Gmail credentials for both approval and final publishing emails. ๐ง
- Update all email addresses and Slack channel IDs with your own. โ๏ธ
- Modify metadata fields (topic, intent, platform) if needed. ๐ฏ
- Run the workflow with a sample content ID to verify the flow. ๐
- Enable and integrate as a subworkflow inside your main content pipeline. ๐
๐ Nodes Used
Google Sheets, Slack, Gmail, AI Agent, OpenAI Chat Model, Simple Memory
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File