n8n

How to Automate One-Prompt Social Posting with Gmail Approval?

Create and publish social posts from one chat prompt, then route them for fast email approval. Ideal for marketing teams that need consistent posts across X, Instagram, Facebook, and LinkedIn with stored assets and clear audit trails.

A chat message starts the flow and feeds an AI model with a system prompt and schema stored in Google Docs. The AI writes captions, hashtags, and an image prompt, then saves the post JSON and image to Google Drive. An approval email goes out through Gmail. If approved, a router publishes to the selected channels using Twitter, Facebook Graph for Instagram and Facebook, and LinkedIn. Telegram can send success or error updates. The workflow also supports a memory buffer, optional web image hosting, and collects publish responses.

Setup needs OpenAI, Google Docs, Google Drive, Gmail, Twitter, Facebook Graph API, Instagram, LinkedIn, Telegram, SerpAPI, imgbb, and Pollinations AI accounts. Expect faster turnarounds and fewer copy paste steps. Great for recurring campaigns, event promos, and product launches where one prompt must fan out to many networks with a simple yes in email to approve.

What are the key features?

  • Chat trigger captures a user prompt and keeps short term memory for context.
  • Google Docs system prompt and schema control tone and structure without editing the flow.
  • OpenAI writes captions, hashtags, and an image prompt that follows the schema.
  • Optional SerpAPI search enriches content with fresh facts before writing.
  • Image is generated and stored in Google Drive, with optional imgbb hosting.
  • Gmail sends an approval email with post details, then checks for approval.
  • Router publishes to Twitter, Instagram, Facebook, and LinkedIn and collects responses.
  • Telegram sends success or error messages to a chat for quick monitoring.
  • All assets and JSON are saved to Google Drive with IDs returned for tracking.
  • Tool workflow hooks are ready for Threads and YouTube Shorts expansion.

What are the benefits?

  • Reduce manual work from 3 hours to 15 minutes by generating copy, images, and publishing in one flow.
  • Streamline approval cycles by up to 80% with one click email confirmation.
  • Connect 8 services in one place to remove app switching and copy paste errors.
  • Handle 4 social networks at once with consistent tone and hashtags.
  • Keep a clean record by saving post JSON and images to Google Drive for audit and reuse.
  • Cut publishing mistakes by validating routes and capturing platform responses.

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with OpenAI, Google Docs, Google Drive, Gmail, Twitter, Facebook Graph API, Instagram, LinkedIn, Telegram, SerpAPI, imgbb and Pollinations AI. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create OpenAI credentials. Use your API key from your OpenAI account. Name the credential clearly, for example OpenAI Prod.
  4. Create Google credentials for Docs and Drive using OAuth2. Double click a Google Docs or Google Drive node, choose Create new credential, and follow the on screen steps. Ensure the Google account has access to the target Docs and Drive folders.
  5. Set up Gmail OAuth2. Open a Gmail node, click Create new credential, grant send and read permissions, and test by sending a test email to yourself.
  6. Connect Twitter with OAuth2. Open the Twitter posting node, create a new credential, and approve the app. Your Twitter app may need elevated access to post media.
  7. Connect Facebook Graph API for Instagram and Facebook. In each posting node, create a new Facebook credential. Use a page linked to your Business Manager and ensure publish permissions are approved. For Instagram, link the Instagram business account to the Facebook page.
  8. Create a LinkedIn OAuth2 credential. Approve permissions for w_member_social or page level posting if you publish to company pages.
  9. Add a Telegram Bot token. In the Telegram nodes, create a new credential with the token from BotFather. Set the Chat ID field to your target chat and send a test message.
  10. Add SerpAPI and imgbb API keys if you plan to use those steps. Open each node, click Create new credential, and paste the API key from the provider dashboard.
  11. Open the Social Media System Prompt and Social Media Schema Google Docs nodes and set the document IDs or URLs that hold your prompt and schema. Save and run a quick test to confirm the docs load.
  12. Set Google Drive folder IDs in the save nodes so images and JSON land in the right folders. Create folders first in Drive and copy their IDs into the nodes.
  13. Configure the approval step. In the Prepare Social Media Email Contents node, set the recipient email. In the Is Approved branch, confirm the rule that detects yes or approved in the reply matches your team practice.
  14. Enable the chat trigger. Open the When chat message received node, turn it on, and send a sample prompt. Check that the workflow saves assets to Drive and sends the Gmail approval.
  15. Approve the email and confirm posts publish to each connected platform. If a post fails, read the Telegram error message and the Response nodes to adjust scopes, permissions, or media sizes.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Facebook Graph API

Sign up

Free: $0 (no direct API charges; usage subject to rate limits)

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

Google Docs

Sign up

Free: $0, Google Docs API usage at no additional cost (quota limits apply)

Google Drive

Sign up

Drive API: $0 (no additional cost; quota-limited)

ImgBB

Sign up

3-Year Pro: $3.99 / mo (billed $143.64 every 3 years). Includes API access.

Instagram

Sign up

Free: $0 (no published pricing; API access available at no charge, subject to rate limits)

LinkedIn

Sign up

Self-serve developer products (e.g., Sign In with LinkedIn, Share on LinkedIn): $0; Partner/Marketing APIs require approval and have no public pricing.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Pollinations AI

Sign up

Free tier: $0 — anonymous or token API access (Seed tier, ad-supported)

SerpAPI

Sign up

Free tier: $0 / mo, 100 searches / mo

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Twitter

Sign up

Free tier: $0 / mo, 500 posts / mo and 100 reads / mo (X API v2)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.