Create a flow from scratch

To create a fully custom automation, you can build a flow from scratch:

  1. On your computer, go to https://studio.workspace.google.com and click New flow.
  2. Click the Starterto choose which event or schedule will launch your flow.
  3. Click Choose a stepand select the task the flow will perform.
  4. At the top of the page, click the pencilto name your flow.
  5. Optional: Before you turn on your flow, to make sure it works properly, click Test runand then Start.
    • This runs the flow immediately so you can verify the output.
    • If everything works fine, you get a "Run Completed" message.
  6. After you complete your edits, click Turn on.

Every flow has 2 main parts:

  1. Starter:
    • This is the event that starts your flow. A starter can be a schedule, like “every Friday at 5 PM,” or an event, like to receive a new email with an attachment.
    • Each flow has only one starter.
  2. Step:

    • This is a task your flow performs after it starts. A step can be an action, like “draft a reply,” or a notification, like “notify me in Chat.”

    • You can add multiple steps to a flow.

Tip:Variables are placeholders for information from your starter or previous steps. They let you create dynamic and powerful flows.

Build your flow from scratch with an example

In this example, you'll create a flow from scratch that automatically drafts a reply in Gmail whenever you receive an email that contains the word 'Invoice'.

Step 1: Choose your starter

  1. On your computer, go to studio.workspace.google.com and thenclick New flow.
  2. Click Choose a starterand then When I get an email. This tells the flow when to begin.
  3. On the right of the configuration panel, under "Which messages to check," select Specific emails.
  4. Find the "Has the words" field.
  5. Enter: Invoice
    • This tells the flow to run only when an email contains the word "Invoice" in its subject or body.

For a full list of all available starters and steps, go to Guide to Starters and Steps in Workspace Studio .

Step 2: Add a step

  1. Below your starter, click Choose a step.
  2. Under the "Gmail" category, select Draft a reply.

Step 3: Use variables to create a dynamic message

  1. On your "Draft a reply" step, click inside the Message field.
  2. Enter: Hello,
  3. Press Enter for a new line and type: I received the invoice regarding:
  4. Click Variables +and then Step 1: When I get an emailand then Email subject.
  5. Press Enter.
  6. Type: I will review it and get back to you.
    • Your message should look like this:

      Hello,

      I received the invoice regarding: [Email subject]

      I will review it and get back to you.

  7. When your flow runs, it automatically replaces the variable chips with the actual details from the email.  Learn more about using variables .

Step 4: Name, test & turn on your flow

  1. At the top of the page, click the pencilto name your flow.
  2. At the bottom, click Test run.
    • A new window will show that allows you to select a recent email from your inbox that matches your starter conditions to test the flow with.
  3. In the "Email received" field, enter: Invoice
    • This finds recent emails that match your starter conditions.

  4. Select an email.

  5. Click Start.
    • If everything works fine, you get a "Run Completed" message and should find a new draft email in your Gmail Drafts folder.
  6. When you're finished, click Turn on.

You've now built a smart and custom flow from scratch that filters your email and keeps your team informed in real time.

Related resources

Google apps
Main menu
12854147884571915002
true
Search Help Center
false
true
true
true
false
false
false
false
false
Create a Mobile Website
View Site in Mobile | Classic
Share by: