tr Skip to content

Create an image using OpenAI on FluentForm submission and email it as attachment to Gmail

Each Fluent Forms submission becomes a prompt for OpenAI’s image model, and the generated image is then emailed through Gmail as an attachment to the address you set.

Fluent Forms OpenAI (ChatGPT) Gmail

3 steps Setup ~5 min Used on 1.2k sites Free to import

The Create an image using OpenAI on FluentForm submission and email it as attachment to Gmail workflow on the FlowMattic canvas, with 3 steps across Fluent Forms, OpenAI (ChatGPT), Gmail
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Some forms are really requests for a picture: a custom illustration idea, a mood-board brief, a product concept. This workflow takes what a visitor types into a Fluent Forms form, asks OpenAI to draw it, and emails the result, with no one on your side in between.

When the Fluent Forms trigger receives a new submission, its fields are available to build a prompt. The OpenAI Generate Image (DALL-E) step creates an image from that prompt using a DALL-E 2 or DALL-E 3 model. The last step sends an email from your Gmail account with the generated image attached, to the visitor's address or to your own.

You write the prompt yourself in the OpenAI step, mixing fixed wording with form answers so the style stays consistent. Every submission creates one image and sends one email, and each image request runs on your OpenAI API account. Use a test run to confirm how the image from the OpenAI step is passed into the Gmail attachment.

Personalised artwork giveaway

Visitors describe a scene in a Fluent Forms form and receive a generated image by email, useful as a lead magnet on a creative site.

Concept sketches for client briefs

A design studio's brief form produces a quick AI concept image that is emailed to the designer along with the client's answers.

Classroom or workshop activity

Participants submit a prompt through a form and get their generated picture in their inbox to discuss or share later.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    Fluent Forms New Form Submission

    Starts each time someone sends your Fluent Forms image request form. The answers are passed on so you can use them in the image prompt and the email.

  2. Step 2Action
    OpenAI (ChatGPT) Generate Image (DALL-E)

    Creates an image from a prompt you write, using a DALL-E 2 or DALL-E 3 model. Insert form answers into the prompt and connect your OpenAI API account.

  3. Step 3Action
    Gmail Send Email

    Sends an email from your Gmail account with the generated image attached. Set the recipient, subject and body, mapping the visitor's email from the form if they should receive it.

What you need

  • FlowMatticCore
  • Fluent Forms PluginPlugin
  • OpenAI (ChatGPT) AccountAccount
  • Gmail AccountAccount

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Add a Filter after the trigger that continues only when the description field is not empty, so OpenAI is never asked to draw a blank prompt.
  • Keep a fixed style sentence at the start of the prompt, such as flat illustration on a white background, and add the visitor's words after it.
  • Add a Google Sheets step at the end to log each prompt with the email it went to, so you can review what people asked for.

Questions about this workflow

Who receives the OpenAI image by Gmail?

The recipient you set in the Gmail step. Map the email field from the Fluent Forms submission to send it to the visitor, or enter a fixed address to send it to yourself.

Do I need an OpenAI API key for this Fluent Forms workflow?

Yes. The Generate Image step runs through the OpenAI account you connect in FlowMattic, and image generation is billed to that account by OpenAI.

Can visitors control the whole OpenAI prompt?

Only as much as you allow. You write the prompt in the OpenAI step and decide which form answers go into it.

What if OpenAI rejects a prompt?

The OpenAI step returns an error and Task History shows it on that step. The Gmail step still runs, so add a Filter on the OpenAI result if you don't want an email without an image.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

It's an exceptional product. Works great and extremely valuable. I saved thousands of dollard on Zapier, as Flowmattic makes me able to host the automation myself. And very deeply integrates with the products I need.

Tijn

Ease of use and terrific support from the founder. Tons of integrations and regular updates. The Flowmattic custom app is great especially if you want to integrate apps that aren't available yet inside Flowmattic.