AutomationMart
Home/Browse/Generate & upload images with Leonardo AI, WordPress and Twitter
n8n

Generate & upload images with Leonardo AI, WordPress and Twitter

n8nn8n12 modulesv1.0
AirtableDiscordWordPress

Prompt-to-Image Generator & WordPress Uploader (n8n Workflow) This workflow generates high-quality AI images from text prompts using Leonardo AI, then automatically uploads the result to your WordPress media library and returns the final image URL. It functions as a Modular Content Production (MCP) tool - ideal for AI agents or workflows that need to dynamically generate and store visual assets on-demand. --- ⚙️ Features - 🧠 AI-Powered Generation Uses Leonardo AI to cre

At a glance

Generate & upload images with Leonardo AI, WordPress and Twitter is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Airtable, Discord, WordPress. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Airtable, Discord, WordPress
Modules
12
Price
Free
Version
v1.0
Generate & upload images with Leonardo AI, WordPress and Twitter workflow diagram

About this workflow

Prompt-to-Image Generator & WordPress Uploader (n8n Workflow) This workflow generates high-quality AI images from text prompts using Leonardo AI, then automatically uploads the result to your WordPress media library and returns the final image URL. It functions as a Modular Content Production (MCP) tool - ideal for AI agents or workflows that need to dynamically generate and store visual assets on-demand. --- ⚙️ Features - 🧠 AI-Powered Generation Uses Leonardo AI to create 1472x832px images from any text prompt, with enhanced contrast and style UUID preset. - ☁️ WordPress Media Upload Uploads the image as an attachment to your connected WordPress site via REST API. - ☁️ Twitter Media Upload Uploads the image to twitter so that you can post the image later on to X.com using the mediaid - 🔗 Returns Final URL Outputs the publicly accessible image URL for immediate use in websites, blogs, or social media posts. - 🔁 Workflow-Callable (MCP Compatible) Can be executed standalone or triggered by another workflow. Acts as an image-generation microservice for larger automation pipelines. --- 🧠 Use Cases For AI Agents (MCP) - Plug this into multi-agent systems as the "image generation module" - Generate blog thumbnails, product mockups, or illustrations - Return a clean imageurl for content embedding or post-publishing For Marketers / Bloggers - Automate visual content creation for articles - Scale image generation for SEO blogs or landing pages - Supports media upload for twitter For Developers / Creators - Integrate with other n8n workflows - Pass prompt and slug as inputs from any external trigger (e.g., webhook, Discord, Airtable, etc.) --- 📥 Inputs | Field | Type | Description | |--------|--------|----------------------------------------| | prompt | string | Text prompt for image generation | | slug | string | Filename identifier (e.g. hero-image) | Example: 📤 Output 🔄 Workflow Summary 1. Receive Prompt & Slug Via manual trigger or parent workflow execution 2. Generate Image POST to Leonardo AI's API with the prompt and config 3. Wait & Poll Delays 1 minute, then fetches final image metadata 4. Download Image GET request to retrieve generated image 5. Upload to WordPress Uses WordPress REST API with proper headers 6. Upload to Twitter Uses Twitter Media Upload API to get the media id incase you want to post the image to twitter 7. Return Result Outputs a clean publicimageurl JSON object along with wordpress and twitter media objects 🔐 Requirements - Leonardo AI account and API Key - WordPress site with API credentials (media write permission) - Twitter / x.com Oauth API (optional) - n8n instance (self-hosted or cloud) - This credential setup: - httpHeaderAuth for Leonardo headers - httpBearerAuth for Leonardo bearer token - wordpressApi for upload 🧩 Node Stack - Execute Workflow Trigger / Manual Trigger - Code (Input Parser) - HTTP Request → Leonardo image generation - Wait → 1 min delay - HTTP Request → Poll generation result - HTTP Request → Download image - HTTP Request → Upload to WordPress - Code → Return final image URL 🖼 Example Prompt Will return: 🧠 Integrate with AI Agents This workflow is MCP-compliant—plug it into: - Research-to-post pipelines - Blog generators - Carousel builders - Email visual asset creators Trigger it from any parent AI agent that needs to generate an image based on a given idea, post, or instruction.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Add new Gigrove orders in Airtable as records

Every time an order is created in your Gigrove, Make will add it to your Airtable as a row. To make sure the scenario works properly we have created a (sample table)[https://airtable.com/shrLfhRnrpjm97uTU] for you to use it as a reference.

Free

WordPress blog to Google Sheets sync (posts, categories, tags, media)

WordPress Blog to Google Sheets Sync Posts • Categories • Tags • Media --- 🧩 Overview This n8n workflow automatically syncs your WordPress website content — including posts, categories, tags, and media — into Google Sheets. It helps automate content reporting, SEO analysis, and data backups. The workflow can run on schedule or on demand via a webhook. --- 💡 Use cases - Maintain a live database of blog posts in Google Sheets. - Create dashboards in Google Da

Free

Create image posts on your LinkedIn profile from Airtable records

When you have new Airtable records that contain content for new posts, Make will retrieve the content from Airtable and create the posts on LinkedIn for you.

Free

Ssl expiry alert with SSL-Checker.io

Use Case Managing SSL certificates manually can be time-consuming and error-prone, often leading to unexpected downtime or security risks due to expired certificates. What This Workflow Does This workflow automatically monitors SSL certificates for a list of websites, checks their expiry status using SSL-Checker.io, and sends timely notifications if a certificate is about to expire. Setup Add your credentials for Google Sheets, Gmail, and SSL-Checker.io. Create a Google Sheet with a list of URLs

Free

Add an Airtable record to a Microsoft 365 Excel worksheet

This template allows you to add an Airtable record to a Microsoft 365 Excel worksheet as a new row. Your Airtable table has to contain a field of type "Last modified time" that changes when a specified field (you can name it "To Excel") is updated. See [this Airtable table](https://airtable.com/shr6HG31msah5n9bs) for reference. Your Microsoft 365 Excel worksheet has to contain headers (at least 5 to see the template's default settings).

Free

Send an email when a ClickUp task's status is changed

This automation is the second part of this [template](https://www.integromat.com/en/integration/8806-create-an-airtable-record-a-clickup-task-and-send-a-slack-notification-from-new-typeform-responses). Once HR has attended to the promotion or similar request and the ClickUp task's status is changed, an email is sent to the finance department for the next step in the process.

Free

Daily email digest with GPT-4 summaries to Google Docs

A Customizable n8n Automation That Turns Your Inbox Into A Daily Digest. The goal of this workflow is to offer a highly customizable foundation that users can tailor to fit their specific platform and setup. While the current version uses Gmail, it can easily be adapted to work with other providers by replacing the email node with alternatives such as IMAP Email Trigger, Microsoft Outlook, or any compatible Email node. This workflow can also be extended to work with platforms like Telegram, W

Free

Generate Azure VM timeline reports with Google Gemini AI chat assistant

An AI-powered chat assistant that analyzes Azure virtual machine activity and generates detailed timeline reports showing VM state changes, performance metrics, and operational events over time. How It Works The workflow starts with a chat trigger that accepts user queries about Azure VM analysis. A Google Gemini AI agent processes these requests and uses six specialized tools to gather comprehensive VM data from Azure APIs. The agent queries resource groups, retrieves VM configurations and inst

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free