n8n

How to Automate Gmail Blog Publishing?

Turn a YouTube video into a finished SEO blog post and send it to your inbox with one click. Great for marketers, creators, and agencies who want fast content from videos. It writes the article, creates an image, and emails everything for review.

On run, you set the video link and the email to receive the result. The flow pulls the transcript through Dumpling AI, then asks OpenAI GPT 4o to draft a title, description, an image prompt, and the full article. It generates a matching image with Dumpling AI using the FLUX 1 dev model. The text is converted from markdown to clean HTML so the email keeps proper layout, and the image file is downloaded so it can be attached. You get a ready to publish draft without copying or pasting. This cuts tasks that usually take hours down to minutes and keeps a steady format across posts.

Make sure the video has captions enabled and connect your OpenAI, Dumpling AI, and Gmail accounts. Expect faster post production and a steady flow of blog drafts for websites and newsletters. Helpful for YouTube channels, agencies, and solo creators who repurpose videos into written content.

What are the key features?

  • Manual start with a simple form to set the video URL and recipient email
  • Transcript capture via Dumpling AI using an HTTP request with header auth
  • AI drafting in OpenAI that returns title, description, image prompt, and full article as JSON
  • AI image generation through Dumpling AI with the FLUX 1 dev model
  • Markdown to HTML conversion for clean email formatting
  • Image download step that saves the file to a binary attachment
  • Gmail send with HTML body, clear subject, and the image attached

What are the benefits?

  • Reduce content drafting time from 3 hours to 10 minutes
  • Automate up to 80 percent of blog production steps
  • Keep email formatting clean with HTML conversion
  • Eliminate copy and paste errors from transcripts
  • Attach the image file reliably even when links expire
  • Connect Gmail, OpenAI, and Dumpling AI in one flow
  • Scale to 5 times more posts per week with the same team

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 Gmail, OpenAI and Dumpling AI. See the Tools Required section above for links to create accounts with these services.
  3. Open the n8n credentials manager. Create a Gmail OAuth2 credential, an OpenAI API Key credential, and a Dumpling AI credential using HTTP Header or Bearer auth. Name them clearly, for example OpenAI Prod and DumplingAI Prod.
  4. For OpenAI, visit the official API page to create an API key. Paste the key in the OpenAI credential in n8n and save.
  5. For Dumpling AI, create an API key in your account. In n8n, create an HTTP Header or Bearer credential and add the key as the Authorization header. Save the credential.
  6. Open the Set Variables node. Enter your YouTube video URL and the recipient email address. Save the node.
  7. Open the Get YouTube Transcript node. Select your Dumpling AI credential. Confirm POST is selected and that the body uses the video URL from Set Variables. Run the node to verify you receive transcript text.
  8. Open the Generate Blog Post node. Select your OpenAI credential and confirm JSON output is enabled. Check that the prompt will produce title, description, image prompt, and content. Test with sample input to confirm fields are returned.
  9. Open the Generate AI Image node. Select the Dumpling AI credential. Confirm the model is set to FLUX 1 dev and the prompt points to the blogImagePrompt field. Execute the node and verify an image URL is returned.
  10. Open the Markdown node. Map the AI article content into the markdown input so the node outputs htmlContent. Run it once and confirm the HTML looks correct.
  11. Open the Download Image node. Set the URL field to the image URL from the image step. Enable file download so the image is stored as binary data. Note the binary property name.
  12. Open the Gmail node. Choose your Gmail OAuth2 credential. Set To to the Recipient Email Address from Set Variables. Use the article title for Subject and the Markdown htmlContent for the email body. Add the downloaded image as an attachment. Send a test email.
  13. Run the workflow from the manual trigger. Check the execution log for each node. If no transcript returns, confirm the video has captions. If the email appears as plain text, confirm you used the HTML output. If the image is missing, confirm the download step and attachment mapping.

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.

Dumpling AI

Sign up

Starter: $40 / mo (billed annually). Includes API access (30 RPM) and 120,000 credits/year

Gmail

Sign up

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

OpenAI

Sign up

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

Credits:
YouTube video

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.