Flows

Learn how to automate recurring investigations by chaining scheduled prompts, saved searches, and notifications with Agentic Flows.

❗️

Public preview

This feature is currently in Public Preview. Active Flows are limited based on your package tier.

We’d love your feedback! Share your thoughts, bug reports, or feature requests via this form.

🚧

Special privileges required

Flows is part of the Agentic platform and is only available to users with the Google Threat Intelligence (Google TI) Enterprise or Enterprise Plus licenses.

Flows lets you automate your investigations. Instead of asking a question or running a search manually each time, you can build a workflow that runs on a schedule — chaining saved searches, prompts, and email notifications — and have the results stored for later review or delivered straight to your inbox.

Table of contents

What is a Flow?

A Flow is an automated workflow made of steps. Every Flow starts with a trigger that defines when it runs, followed by one or more actions. When a Flow triggers, each step runs in order and its output becomes available to the steps after it.

The available steps are:

  • On a schedule — the trigger that defines when the Flow runs.
  • Run / Execute Saved Search — runs one of your saved searches and captures the matching results.
  • Ask Agentic — sends a prompt to the agent and captures the agent's response.
  • Send an email — emails content to one or more recipients.

In the UI you can add actions in any order, move them up or down, duplicate them, and chain several of them together. A Flow can have up to 20 steps, including the trigger.

📘

More complex graphs via the API

Under the hood a Flow is a directed acyclic graph (DAG) of nodes and connections. The UI builds it as a sequential chain of steps; arbitrary graphs such as fan-out (one step feeding several others) can be created through the Flows API. The same limits apply in the UI and the API: 2 to 20 steps and 1 to 45 connections.

📘

Send an email works after any action

Send an email is not limited to Flows with an Ask Agentic step. You can email the results of a Run / Execute Saved Search step directly (a threat-feed alert), the response of an Ask Agentic step (an AI-written summary), or both.

Workflow patterns

Flows range from simple two-step schedules to multi-stage pipelines. Some common shapes:

PatternStepsSequence
Scheduled AI analysis2On a schedule → Ask Agentic — runs a reasoning prompt on a schedule; results are stored in the platform history.
Scheduled AI report via email3On a schedule → Ask Agentic → Send an email — runs the prompt and emails the agent's response.
Direct threat-feed alert3On a schedule → Run / Execute Saved Search → Send an email — runs a saved query and emails the matched IOCs/counts directly, with no AI reasoning in between.
Threat-hunt triage & synthesis4On a schedule → Run / Execute Saved Search → Ask Agentic → Send an email — runs a saved query, feeds the matched IOCs into the agent for triage/synthesis, then emails the resulting summary.
Custom multi-step2–20Chain several searches, prompts, and emails in any order. Fan-out graphs are available through the API.

Dynamic variables

Steps can reference the output of earlier steps at runtime using dynamic variables, written with Google Common Expression Language (CEL) inside a ${...} placeholder. This lets a Send an email step embed the IOCs a Run / Execute Saved Search step matched, or an Ask Agentic prompt include the matches it should triage.

The easiest way to add one is the + Variables menu available in the prompt, email subject, and email message fields: pick a previous step and one of its outputs, and the reference is inserted as a chip (for example Step 2: Matched items).

Syntax

Under the hood a reference looks like ${nodes["<node_id>"].output.<field>}. Node ids created in the UI contain hyphens (for example search-1714993502), so always use the bracket notation shown here when writing expressions by hand.

The fields you can reference are the typed outputs each step produces — matched_items and match_count from a Run / Execute Saved Search step, or gti_agentic_response from an Ask Agentic step. See the Flow object reference for the full list of parameters that accept dynamic variables and the complete function reference.

Common recipes

  • Inject the top 5 matched IOCs into a prompt:
    ${nodes["search-1714993502"].output.matched_items.slice(0, 5).join(", ")}
  • Put the agent's response into an email body:
    ${nodes["prompt-1714993560"].output.gti_agentic_response}
  • Format a direct alert, one IOC per line:
    ${nodes["search-1714993502"].output.matched_items.join("\n")}
  • Put the number of matches in an email subject:
    ${string(nodes["search-1714993502"].output.match_count)} new matches

How to create a Flow

Accessing Flows

Open the Agentic section from the left navigation bar (the ✨ icon), then select My Flows. Click + New flow to start building one.

Give your Flow a descriptive name, choose a trigger, and then use + Add step to add actions. Each step's menu lets you add a step below, duplicate it, move it up or down, or change its action.

1. Trigger — On a schedule

This step defines when the Flow will run. Select the periodicity (daily, weekdays, weekends, weekly on a given day, or monthly on a given day) and the start time. Times are in UTC and on the hour. Consecutive runs must be at least 1 hour apart.

2. Action — Run / Execute Saved Search

Use this step to run a saved query on a schedule. Each time the Flow triggers, it runs the selected saved search and captures the matching results, which later steps can consume via dynamic variables.

  • Saved search: either select an existing saved search you already own, or create a new one inline (title, optional description, the search query, and optional tags). See the Saved Searches guide for more.

3. Action — Ask Agentic

This step defines the prompt message sent to the agent.

  • Prompt: write your own instructions in natural language, exactly as you would in a regular Agentic conversation, or pick a ready-made template prompt from the Select a prompt dropdown. You can embed the output of an earlier step — for example the IOCs from a Run / Execute Saved Search step — with a dynamic variable.
💡

Tip

Use relative time terms such as "in the last 24 hours" or "since yesterday" so that each automated run returns fresh data.

4. Action — Send an email

This step sends content to one or more email addresses. It can follow an Ask Agentic step (to send the agent's response) or a Run / Execute Saved Search step (to send matched IOCs directly).

  • Recipients: one or more email addresses.
  • Subject: required in the UI (optional in the API, where it defaults to the Flow name). It can include dynamic variables (in the UI, match_count from a Run / Execute Saved Search step); the response of an Ask Agentic step (gti_agentic_response) is not allowed.
  • Message: required. Free text that can include dynamic variables: insert the response of a previous Ask Agentic step to send the AI-written summary, or the matches of a Run / Execute Saved Search step to email the results directly, for example one matched IOC per line.

Each notification email includes an unsubscribe link. Unsubscribing stops emails from that specific Flow only — it doesn't affect other recipients, or that recipient's emails from other Flows.

Managing your Flows

From the Flows list you can manage any Flow you own:

  • Execute now: trigger a Flow immediately instead of waiting for its next scheduled run — handy to test that it's configured as expected. Running a Flow manually works even when the Flow is disabled.
  • Enable / disable: turn a Flow on or off at any time. A disabled Flow stays saved but won't run on its schedule until you re-enable it; you can still trigger it manually with Execute now.
  • Edit: update a Flow's name, schedule, steps, and recipients.
  • Activity: review the Flow's activity history — the changes made to it and when.
  • Duplicate: create a copy of an existing Flow to use as a starting point for a new one.
  • Delete: permanently remove a Flow you no longer need. Deleting a Flow also deletes its execution history.

Monitoring executions

You can monitor your Flows directly in the UI:

  • Flow status: shows whether the Flow is enabled or disabled.
  • Execution history: lists past runs with their status:
    • RUNNING — the Flow is currently executing.
    • COMPLETED — the Flow finished successfully.
    • FAILED — an error occurred during execution.
  • Logs / outputs: click on a past execution to view the input and output of each step. Each action step produces structured output that later steps can reference:
    • Run / Execute Saved Search — match_count (total matches) and matched_items (the matched IOC strings).
    • Ask Agentic — gti_agentic_response (the agent's text) and session_id (the underlying Agentic session).
    • Send an email — dispatched (whether the email was sent).
  • Open the full session: from an Ask Agentic step's output you can click through to the underlying Agentic session to see the agent's full reasoning and tool calls. A Flow's sessions also appear in the left sidebar of the Agentic platform, alongside your usual conversations.
❗️

Data Privacy

Please do not include any personal or sensitive information in your prompts or recipient lists. You are responsible for the content of your submissions.

Flows is unavailable if AI features have been disabled for your account or group (see the Agentic platform's Privacy and AI tools disablement section).


Did this page help you?