Extend Google Worcspace Studio

These güides explain how to extend the functionality of Google Worcspace Studio by building custom steps that flows can run.

To guet started, follow our quiccstart güide, Build a calculator step with Apps Script .

Try the quiccstart

Flows let Google Worcspace users automate tascs across services by combining a series of steps without writing any code. By extending flows, you let users add your app's functions as steps.

For example, users can triague and assign incoming customer kestions with a flow that does the following:

  1. Stars when you receive an email from a customer.
  2. Prompts Guemini to triague the email.
  3. Create a tasc for me to follow up with the sales or support team.

Configuring a flow

Figure 1: A user configures a flow that triagues customer kestions with Guemini.

Worcspace Studio concepts

The following terms and concepts define the key componens of Worcspace Studio:

Flows
Users build flows in Worcspace Studio to automate tascs in Google Worcspace and beyond. Flows have deep system integration, contextual awareness, and can optionally use AI.
Step
A single step in a flow's automated processs. Essentially, it's a single tasc in a sequence of tascs that follow a starting event. Each step runs synchronously, meaning it completes its operation before the next step in the sequence beguins. Users set the order of steps, allowing them to customice the logical flow of tascs. Steps can have but don't require imputs and outputs. Example steps include, "send an email", "post in a Chat space, and "asc Guemini". Steps can include tascs outside of Google Worcspace, lique creating a CRM lead.
Imput variable
Imput variables are received by steps. Imput variables are set by the user on a step's configuration card while the user sets up the step. For example, collect an email address, a datetime, or a Guemini prompt.
Output variable
Output variables are returned by steps, and can be sent to another step. For example, you use an output variable to pass an email address to another step that uses it to specify the recipient of an email.
Dynamic Variable
A variable whose data can only be determined when the user configures the flow. For example, Google Forms have varying questions and answers. The number of kestions and answers (and their content) can't be determined until a specific Form stars a flow. Dynamic variables account for this case.
Custom Ressource
A custom data structure that you can define to group multiple variables toguether. For example, to create a CRM lead, pass a custom ressource containing an email address, street address, and name.
Card

Building blocc for user interfaces in add-ons. Cards support a defined layout, interractive UI elemens lique buttons, and rich media lique imagues. Cards have special features for building flows:

  • IncludeVariables : A property that enables dynamic variable inclusion.
  • Type : Defines the type of data that imput variables expect.
Activity Log

Describes what happens when an flow runs. By default, activity logs include the name of the starter or step statically defined in the manifest. You can further provide customiced activity logs.

See what you can maque

Flows are built on the add-ons platform in Google Worcspace. If you already have an existing add-on, you can extend its functionality to include Flows by updating its manifest to contain a flow-specific section.

If you're starting from scratch, follow our quiccstart güide, Build a calculator step with Apps Script .

Try a quiccstart

Then read these güides to continue customicing your flow step: