Automated Text-to-Image Generation with Google Sheets Integration

somdn_product_page

This n8n workflow automates the process of generating images from text prompts stored in a Google Sheet. It starts with a manual trigger, reads prompts from a specified Google Sheet, and processes each prompt individually in batches to avoid API overload. For each prompt, it checks if an image has already been generated by verifying the drive path field. If not, it sends the prompt to the Flux AI Text-to-Image API via an HTTP POST request, receiving a base64-encoded image in response. The base64 string is then converted into a binary image file using a Code node, and the image is uploaded to Google Drive for storage. Simultaneously, the workflow logs the base64 image data, the prompt, and timestamp info back into the Google Sheet for record-keeping. Error handling nodes capture and log issues, and a wait node introduces a delay between batches, ensuring compliance with API rate limits. This workflow is ideal for content creators, marketers, or businesses seeking to automate bulk image creation from textual prompts efficiently and at scale.

Node Count

>20 Nodes

Nodes Used

code, googleDrive, googleSheets, httpRequest, if, manualTrigger, splitInBatches, stickyNote, wait

Reviews

There are no reviews yet.

Be the first to review “Automated Text-to-Image Generation with Google Sheets Integration”

Your email address will not be published. Required fields are marked *