ExamplesExample

Example: API → Sheets → e-mail

Four built-in steps cover the most common automation of all: take data from one system, keep what matters, write it where people already look, and tell someone. Nothing here is a script: every value moves between steps through one expression per input.

What you will learn
  • Read an API with HTTP Request and filter its answer with Transform
  • Write rows to a Google spreadsheet with either way of connecting
  • Send an e-mail with the count of what was written

Four steps, no script

The HTTP step’s output is {status, headers, body}; Transform takes nodes.fetch_orders.output.body.orders and returns the kept list; Google Sheets receives that list in rows, so one step adds every order; the e-mail step reads the Sheets output’s appended count.

Built-in steps in a chain: the data comes in, is reshaped, and goes out — no script anywhere.

Because each step only reads the output of the one before it, you can build and test them one at a time: run the HTTP step alone, look at its answer, then add the next step and read what you saw.

Build it

  1. Call the API

    Under Flow inputs add HTTP Request from Apps & data, label it Fetch orders, method GET, and the orders address in quotes (or an API (HTTP) connection with a relative address).

  2. Keep the big orders

    Add Transform labelled Big orders, set Input to nodes.fetch_orders.output.body.orders, and filter total is at least 100.

  3. Add them to the spreadsheet

    Add Google Sheets, pick a Google connection, choose the spreadsheet (in Google’s picker, or from the list shared with the service account), its tab, and Add a row. Label it Append rows and set rows to nodes.big_orders.output.

  4. Tell the team

    Add Send email with a published template that uses {{count}}, and set count to nodes.append_rows.output.appended.

Expected outputSuccessThe Google Sheets step’s output
{
  "appended": 2,
  "range": "Orders!A5:C6"
}

Before it runs every day

Publish the flow and add a schedule. A run that adds the same order twice is easy to avoid: switch the Sheets step to Update or add a row and match on id.