---
sourceDocument: Brazil Customer Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/customer-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Flow-based automation for task plan template items

# Flow-based automation for task plan template items {#ariaid-title1}

Release version: Brazil  
Updated September 4, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Flow-based automation for task plan template items

Task plan template items in ServiceNow stamp their unique number on each record they create.
This stamped value can be used as a trigger condition for flows, enabling automation for individual steps within a task plan.
This approach is useful when certain task steps require external system interactions or additional processing that the task plan template alone cannot handle.
Instead of linking a flow directly to a template item, the flow triggers automatically based on the stamped template item number on the record.
Show full answer Show less  

## Key Features

* Automates specific steps within a task plan without needing to convert the entire plan into a flow.
* Eliminates manual initiation by agents, as flows trigger automatically when the related record is created.
* Allows running different flows for different template items within the same task plan.
* Supports invoking subflows or AI agents from the triggered flow for advanced processing.

## How it works

* The target table for the template item includes a reference field to the template item itself.
* The template item stamps its number on each created record via this reference field.
* A flow is configured on the target table to trigger on record creation, with a condition matching the specific template item's number.
* When the task plan template is applied, the created record meets the flow's trigger condition, causing the flow to execute its actions such as setting fields, notifying agents, or engaging AI agents.

## Considerations

* Each flow's trigger condition corresponds to a single template item number, ensuring flows only run for their designated template item records.
* The reference field used for stamping must exist on the template item's target table prior to use.  
A task plan template item stamps its number on each record it creates. A flow can use that stamped value as a trigger condition, so the flow runs automatically for the records that one specific template item
creates.

## Overview {#associate-flows-with-task-plan-template-items__section_overview}

Some steps in a task plan need work that a task plan template cannot do on its own. For example, a router setup plan can include an address verification step, where an external system must confirm the customer address
before the next step starts.

You can run a flow for an individual step in a task plan. A template item does not store a reference to a flow. Instead, the template item stamps its number on every record it creates, and the flow uses that stamped
value as its trigger condition. Because the flow is triggered by the record, its actions can do anything a flow can do, including calling a subflow or an AI agent.

## Key benefits {#associate-flows-with-task-plan-template-items__section_benefits}

* Automates individual steps of a task plan without rebuilding the whole process as a flow.
* Removes the need for an agent to start a flow manually after the task is created.
* Runs a different flow for each template item in the same task plan.
* Calls an existing subflow or an AI agent from the triggered flow.

## How it works {#associate-flows-with-task-plan-template-items__section_how_it_works}

The following describes the general behavior of a flow that runs for a template item:

1. The target table of the template item has a reference field that points to the template item.
2. The Template item field field on the template item is set to that reference field, so the template item stamps it on each record it creates. For more information, see [Template item form](https://servicenow-prod.fluidtopics.net/pAAIasyVJtmbs14710md~A "The Template item form displays details about a template item for a task plan template.").
3. A flow is created on the target table with a trigger of Created and a condition that matches the number of the template item.
4. When the task plan template is applied, the template item creates its record and the system stamps the template item number on that record.
5. The new record meets the trigger condition, and the flow runs its actions. For example, the flow can set fields on the new task, notify the assigned agent, or hand the work to an AI agent.

## Considerations {#associate-flows-with-task-plan-template-items__section_considerations}

* The trigger condition matches one template item number, so a flow created for one template item does not run for any other template item.
* The reference field must exist on the target table of the template item before the template item can stamp it.
**Related tasks**   

* [Trigger a flow from a task plan template item](https://servicenow-prod.fluidtopics.net/cPZn4UHDHLY9Tizo5BzWqQ "Configure a flow to run automatically when a task plan template item creates a record. A single step of a task plan can be completed by a flow, a subflow, or an AI agent.")  
**Related reference**   

* [Template item form](https://servicenow-prod.fluidtopics.net/pAAIasyVJtmbs14710md~A "The Template item form displays details about a template item for a task plan template.")

