Back to Catalog

Text-to-image generator with Google Sheets & Drive integration using Flux AI

Evoort SolutionsEvoort Solutions
915 views
2/3/2026
Official Page

๐Ÿ–ผ๏ธ Text-to-Image Generator using n8n + Flux AI

This n8n workflow automates image generation from text prompts using the Text-to-Image Flux AI API. It reads prompts from Google Sheets, generates images via API, uploads them to Google Drive, and logs the outcome.


๐ŸŒŸ Key Features

  • Integrates with Text-to-Image Flux AI on RapidAPI
  • Converts base64 image data to downloadable files
  • Stores images on Google Drive
  • Updates logs and errors back into Google Sheets
  • Skips prompts already processed

๐Ÿ“„ Google Sheet Column Structure

Your source Google Sheet should include the following columns:

| Column Name | Description | |-------------------|--------------------------------------------------| | Prompt | The text prompt to generate an image from | | drive path | (Optional) File path or URL of saved image | | Generated Date | Date/time the image was generated | | Base64 | Base64 string or error message (for logging) |

Only rows with a non-empty Prompt and empty drive path will be processed.


๐Ÿ“Œ Use Case

Perfect for:

  • Bulk AI image generation for content marketing
  • Creative automation with prompt-based image creation
  • Building image assets based on structured datasets
  • Any workflow where prompts are tracked via Google Sheets

Uses the Text-to-Image Flux AI API to generate high-quality images on demand.


๐Ÿ”ง Workflow Summary

| Step | Node | Description | |------|------|-------------| | 1 | Manual Trigger | Manually start the workflow | | 2 | Google Sheets2 | Reads prompts from Google Sheets | | 3 | Loop Over Items | Processes rows one by one | | 4 | If2 | Skips rows that already have images | | 5 | HTTP Request1 | Calls Text-to-Image Flux AI via RapidAPI | | 6 | Code1 | Converts base64 image to binary file | | 7 | Google Drive1 | Uploads the image file to a Drive folder | | 8 | Google Sheets1 | Logs base64 result and timestamp back | | 9 | If1 | Handles errors from the API | | 10 | Google Sheets4 | Logs errors to the sheet | | 11 | Wait | Adds delay between batches to prevent rate-limiting |


๐Ÿš€ RapidAPI: Text-to-Image Flux AI

This flow is powered by Text-to-Image Flux AI.

Be sure to:

  • Sign up at RapidAPI and subscribe to the API.
  • Copy your API Key.
  • Replace "your key" in the HTTP Request1 nodeโ€™s x-rapidapi-key header.

You can test the API directly here before connecting it to n8n.


โœ… Tips for Setup

  • Ensure youโ€™ve set up a Google Service Account with access to both Sheets and Drive.
  • Fill only the Prompt column โ€” leave drive path and Base64 empty for new prompts.
  • Monitor your RapidAPI dashboard for usage and quota.

Create your free n8n account and set up the workflow in just a few minutes using the link below:

๐Ÿ‘‰ Start Automating with n8n

Save time, stay consistent, and grow your LinkedIn presence effortlessly!

n8n Text-to-Image Generator with Google Sheets & Google Drive Integration (using Flux.AI)

This n8n workflow automates the process of generating images from text prompts stored in a Google Sheet, then saving the generated images to Google Drive. It leverages the Flux.AI API for image generation.

What it does

This workflow streamlines the creation of images from a list of prompts by:

  1. Triggering Manually: The workflow is initiated manually.
  2. Reading Google Sheet Data: It fetches data from a specified Google Sheet, likely containing text prompts for image generation.
  3. Looping Through Items: It processes each row (item) from the Google Sheet individually.
  4. Generating Images with Flux.AI: For each item, it makes an HTTP request to the Flux.AI API to generate an image based on a text prompt.
  5. Waiting for Image Generation: It includes a short wait period, likely to ensure the image generation process on Flux.AI's side is complete.
  6. Saving to Google Drive: It saves the generated image (received as binary data from Flux.AI) to a specified folder in Google Drive.
  7. Updating Google Sheet: It updates the original Google Sheet with the URL of the newly created image in Google Drive, and potentially marks the item as "Done".

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • Google Account: A Google account with access to Google Sheets and Google Drive.
  • Google Sheets Credential: An n8n credential configured for Google Sheets.
  • Google Drive Credential: An n8n credential configured for Google Drive.
  • Flux.AI API Key: An API key for Flux.AI to generate images. This will be used in the HTTP Request node.
  • Google Sheet: A Google Sheet with a column for text prompts (and potentially other columns for status or image URLs).
  • Google Drive Folder: A designated Google Drive folder where the generated images will be saved.

Setup/Usage

  1. Import the Workflow: Import the provided JSON into your n8n instance.
  2. Configure Credentials:
    • Set up your Google Sheets credential.
    • Set up your Google Drive credential.
    • In the "HTTP Request" node, configure the authorization header or body with your Flux.AI API key.
  3. Update Google Sheets Node:
    • Specify the Spreadsheet ID and Sheet Name from which to read the text prompts.
    • Ensure the column names in your Google Sheet match those expected by the workflow (e.g., for the prompt, and for updating the image URL/status).
  4. Update HTTP Request Node:
    • Verify the API endpoint for Flux.AI image generation.
    • Adjust the request body to correctly pass the text prompt from your Google Sheet data.
  5. Update Google Drive Node:
    • Specify the Folder ID in Google Drive where the images should be saved.
    • Ensure the file name is dynamically generated based on the prompt or a unique identifier.
  6. Update Google Sheets Node (for writing):
    • Specify the Spreadsheet ID and Sheet Name for updating the sheet.
    • Map the output from the Google Drive node (e.g., the file URL) to the appropriate column in your Google Sheet.
  7. Activate the Workflow: Once configured, activate the workflow.
  8. Execute Manually: Click "Execute Workflow" in the "When clicking 'Execute workflow'" trigger node to run the process.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitorโ€™s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger โ€” Manually start the workflow or schedule it to run periodically. Input Setup โ€” Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) โ€” Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring โ€” Clean and convert GPT output into JSON format. Data Storage (Google Sheets) โ€” Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the โ€œSet Input Fieldsโ€ node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors โ†’ Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection โ†’ Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report โ†’ Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization โ†’ Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs โ†’ Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting Itโ€™s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Daily cash flow reports with Google Sheets, Slack & Email for finance teams

Simplify financial oversight with this automated n8n workflow. Triggered daily, it fetches cash flow and expense data from a Google Sheet, analyzes inflows and outflows, validates records, and generates a comprehensive daily report. The workflow sends multi-channel notifications via email and Slack, ensuring finance professionals stay updated with real-time financial insights. ๐Ÿ’ธ๐Ÿ“ง Key Features Daily automation keeps cash flow tracking current. Analyzes inflows and outflows for actionable insights. Multi-channel alerts enhance team visibility. Logs maintain a detailed record in Google Sheets. Workflow Process The Every Day node triggers a daily check at a set time. Get Cash Flow Data retrieves financial data from a Google Sheet. Analyze Inflows & Outflows processes the data to identify trends and totals. Validate Records ensures all entries are complete and accurate. If records are valid, it branches to: Sends Email Daily Report to finance team members. Send Slack Alert to notify the team instantly. Logs to Sheet appends the summary data to a Google Sheet for tracking. Setup Instructions Import the workflow into n8n and configure Google Sheets OAuth2 for data access. Set the daily trigger time (e.g., 9:00 AM IST) in the "Every Day" node. Test the workflow by adding sample cash flow data and verifying reports. Adjust analysis parameters as needed for specific financial metrics. Prerequisites Google Sheets OAuth2 credentials Gmail API Key for email reports Slack Bot Token (with chat:write permissions) Structured financial data in a Google Sheet Google Sheet Structure: Create a sheet with columns: Date Cash Inflow Cash Outflow Category Notes Updated At Modification Options Customize the "Analyze Inflows & Outflows" node to include custom financial ratios. Adjust the "Validate Records" filter to flag anomalies or missing data. Modify email and Slack templates with branded formatting. Integrate with accounting tools (e.g., Xero) for live data feeds. Set different trigger times to align with your financial review schedule. Discover more workflows โ€“ Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
619

Create personalized email outreach with AI, Telegram bot & website scraping

Demo Personalized Email This n8n workflow is built for AI and automation agencies to promote their workflows through an interactive demo that prospects can try themselves. The featured system is a deep personalized email demo. --- ๐Ÿ”„ How It Works Prospect Interaction A prospect starts the demo via Telegram. The Telegram bot (created with BotFather) connects directly to your n8n instance. Demo Guidance The RAG agent and instructor guide the user step-by-step through the demo. Instructions and responses are dynamically generated based on user input. Workflow Execution When the user triggers an action (e.g., testing the email demo), n8n runs the workflow. The workflow collects website data using Crawl4AI or standard HTTP requests. Email Demo The system personalizes and sends a demo email through SparkPost, showing the automationโ€™s capability. Logging and Control Each user interaction is logged in your database using their name and id. The workflow checks limits to prevent misuse or spam. Error Handling If a low-CPU scraping method fails, the workflow automatically escalates to a higher-CPU method. โš™๏ธ Requirements Before setting up, make sure you have the following: n8n โ€” Automation platform to run the workflow Docker โ€” Required to run Crawl4AI Crawl4AI โ€” For intelligent website crawling Telegram Account โ€” To create your Telegram bot via BotFather SparkPost Account โ€” To send personalized demo emails A database (e.g., PostgreSQL, MySQL, or SQLite) โ€” To store log data such as user name and ID ๐Ÿš€ Features Telegram interface using the BotFather API Instructor and RAG agent to guide prospects through the demo Flow generation limits per user ID to prevent abuse Low-cost yet powerful web scraping, escalating from low- to high-CPU flows if earlier ones fail --- ๐Ÿ’ก Development Ideas Replace the RAG logic with your own query-answering and guidance method Remove the flow limit if youโ€™re confident the demo canโ€™t be misused Swap the personalized email demo with any other workflow you want to showcase --- ๐Ÿง  Technical Notes Telegram bot created with BotFather Website crawl process: Extract sub-links via /sitemap.xml, sitemap_index.xml, or standard HTTP requests Fall back to Crawl4AI if normal requests fail Fetch sub-link content via HTTPS or Crawl4AI as backup SparkPost used for sending demo emails --- โš™๏ธ Setup Instructions Create a Telegram Bot Use BotFather on Telegram to create your bot and get the API token. This token will be used to connect your n8n workflow to Telegram. Create a Log Data Table In your database, create a table to store user logs. The table must include at least the following columns: name โ€” to store the userโ€™s name or Telegram username. id โ€” to store the userโ€™s unique identifier. Install Crawl4AI with Docker Follow the installation guide from the official repository: ๐Ÿ‘‰ https://github.com/unclecode/crawl4ai Crawl4AI will handle website crawling and content extraction in your workflow. --- ๐Ÿ“ฆ Notes This setup is optimized for low cost, easy scalability, and real-time interaction with prospects. You can customize each component โ€” Telegram bot behavior, RAG logic, scraping strategy, and email workflow โ€” to fit your agencyโ€™s demo needs. ๐Ÿ‘‰ You can try the live demo here: @emaildemobot ---

Michael A PutraBy Michael A Putra
474