Flow

Information about Agentic Flows

🚧

Special privileges required

Flows are only available to users with the Google Threat Intelligence (Google TI) Enterprise or Enterprise Plus licenses, and require AI features to be enabled in your group settings.

A Flow object is a user-defined automation graph made of nodes (steps) and connections (edges) that Google Threat Intelligence runs on a trigger. The object type is flow.

Object Attributes

A flow object contains the following attributes:

  • name: <string> human-readable name of the Flow (required on creation, up to 255 characters).
  • enabled: <boolean> whether the Flow runs on its trigger. A disabled Flow can still be run manually via Run a Flow now.
  • nodes: <list of dictionaries> the steps of the Flow. Required; a Flow has between 2 and 20 nodes. Each node has:
    • id: <string> node identifier, unique within the Flow. Must match ^[a-zA-Z_][a-zA-Z0-9_-]*$; nodes, steps and flow are reserved and can't be used.
    • type: <string> node type. One of NODE_TYPE_SCHEDULE_TIME, NODE_TYPE_RUN_PROMPT, NODE_TYPE_SEND_EMAIL or NODE_TYPE_RUN_SAVED_SEARCH.
    • name: <string> display name of the node.
    • version: <integer> node schema version.
    • schedule_node: <dictionary> present when type is NODE_TYPE_SCHEDULE_TIME.
      • cron_expression: <string> cron schedule, e.g. 0 9 * * *. Consecutive runs must be at least 1 hour apart.
      • timezone: <string> IANA timezone, e.g. UTC.
    • run_prompt_node: <dictionary> present when type is NODE_TYPE_RUN_PROMPT.
      • prompt: <string> the prompt sent to the Agentic platform. Supports dynamic variables.
      • reuse_session: <boolean> optional, defaults to false. When true, each run continues the same Agentic session as the previous run instead of starting fresh, so the agent keeps the conversation memory and prior findings across executions. Editing the Flow graph starts a new session.
    • send_email_node: <dictionary> present when type is NODE_TYPE_SEND_EMAIL.
      • notification_emails: <list of strings> required list of recipient addresses (at least one email; up to 10 active members of the Flow's group). Supports dynamic variables.
      • email_subject: <string> custom subject. Defaults to the Flow name when empty. Supports dynamic variables, but can't reference gti_agentic_response.
      • message: <string> email body. Required and non-empty. Supports dynamic variables; to email the response of a Run Prompt node, reference it explicitly, e.g. ${nodes.n2.output.gti_agentic_response}.
    • run_saved_search_node: <dictionary> present when type is NODE_TYPE_RUN_SAVED_SEARCH.
      • saved_search_id: <string> identifier of the saved search to run. Supports dynamic variables.
  • connections: <list of dictionaries> the edges wiring nodes together. Required; a Flow has between 1 and 45 connections, and nodes and connections must form a directed acyclic graph (DAG). Each connection has:
    • source_node_id: <string> id of the node the edge starts from.
    • target_node_id: <string> id of the node the edge points to.
    • source_handle: <string> branch label on the source node (e.g. a true path); empty for a plain edge.
  • trigger_state: <dictionary> scheduler-managed trigger bookkeeping; null when the Flow has no schedule.
    • last_run_at: <integer> last time the trigger fired (UTC timestamp).
  • creation_date: <integer> Flow creation date (UTC timestamp).
  • last_modification_date: <integer> last modification date (UTC timestamp).

Dynamic variables

Parameters marked Supports dynamic variables above can interpolate the output of an upstream node at runtime, using Google Common Expression Language (CEL) inside a ${...} placeholder. This lets a successor node consume data produced by a predecessor — for example, a Send Email node can embed the IOCs a Run Saved Search node matched.

Interpolation syntax

  • Dot notation: ${nodes.<node_id>.output.<field>}
  • Bracket notation (for node ids containing hyphens): ${nodes['node-id'].output.<field>}
  • nodes is the canonical root namespace; steps is supported as an alias.
  • Node ids generated by the web UI contain hyphens (for example prompt-1714993560), so expressions referencing them must use the bracket notation.
  • Every supported parameter expects each ${...} expression to evaluate to a string. Convert other types explicitly, for example ${string(nodes.search.output.match_count)}, and turn lists into a string with .join(...).

Referenceable output fields

The <field> is one of the typed outputs a node produces (see the Flow Execution object for the full schema):

Producing nodeFieldType
Run Saved Searchmatch_countinteger
Run Saved Searchmatched_itemslist of strings
Run Promptgti_agentic_responsestring
Run Promptsession_idstring
Send Emaildispatchedboolean

Supported operations and standard extensions

OperationExample
List slicing${nodes.search.output.matched_items.slice(0, 5).join(", ")}
List joining${nodes.search.output.matched_items.join(", ")}
Indexing${nodes.search.output.matched_items[0]}
Size / count${string(nodes.search.output.matched_items.size())}
Type conversion${string(nodes.search.output.match_count)}
Ternary${nodes.search.output.match_count > 0 ? "Threats Detected" : "Clean"}
String manipulation.trim(), .split(delimiter), .contains(substring), .startsWith(prefix), .endsWith(suffix)

Restrictions

  • email_subject can't reference gti_agentic_response.
  • The Run Prompt response fields ui_events and invocation_id can't be used in expressions.
  • Flows that break any of these rules or the graph limits are rejected with an InvalidArgumentError.

Relationships

A flow object has the following relationships:

RelationshipDescriptionReturn object type
groupGroup that owns the Flow.Group
flow_executionsThe Flow's execution history.Flow Execution