Turn short chat prompts into AI images, store them in Google Drive, and log every result in Google Sheets with links and thumbnails. Great for marketing teams that need fresh visuals fast and want clear tracking of outputs and spend.
A chat based trigger captures the prompt and sends it to the OpenAI image API. The response can include one or many images, which are split and handled one by one. Each image is converted from base64 into a file, named with a timestamp, and uploaded to a selected Google Drive folder. The Drive link and a thumbnail image formula are written to a Google Sheet alongside the original prompt. Usage data from the run is aggregated and saved to a second sheet so you can monitor tokens and cost per prompt. A manual test trigger is included for quick checks before going live.
You will need an OpenAI API key and Google access for Drive and Sheets. Choose the Drive folder and the Sheets document where you want to save results. Expect faster image production, a clean asset library, and simple budget tracking for creative work. Ideal for social posts, ad mockups, blog art, and concept boards that need fast turnaround.