---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# With AI

# Create a flow with AI {#ariaid-title1}

Release version: Brazil  
Updated September 15, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 7 minutes to read  
Use generative AI to create a flow from text directions and images.

## Before you begin

* Roles required:
  * admin, flow_designer, or a delegated developer permission
  * now.assist.creator
  {#create-flow-now-assist__ul_d2w_f21_cbc}
* Turn on the flow generation skill.
* Turn on the flow generation with images skill. See [Turn on the flow generation with images skill](https://www.servicenow.com/docs/ohpG_zvFtCb5d__RmDfpog "Turn on the flow generation with images skill to use generative AI to create flows and subflows from an image.").
* Turn on the flow recommendations skill.
{#create-flow-now-assist__ul_c2f_1bh_qyb}

## About this task

Generate flows by using text prompts and image. Describe the flow in details, attach an image that illustrates the process clearly, and generate the flow with AI. You can use only text prompts, only image, or both to generate
the flow. Review the and flow and if required, make necessary updates to the prompts and regenerate the flow preview.

## Procedure

1. Navigate to AllProcess AutomationWorkflow Studio.
2. From the Workflow Studio home page, select NewFlow.
3. To use the flow generation or flow generation with images skills, select the Build with AI tab.
4. To use the flow recommendations skill, select the Build on your own tab.  
   You can use the flow recommendations skill to build a flow or to edit an existing flow. For details about building a flow on your own, see [Create a flow in Workflow Studio](https://www.servicenow.com/docs/n~fOsDedq_AYbOtGbZ5Nww "Run a sequence of actions and flow logic when the trigger conditions occur.").
5. Fill in the fields to build your flow.  
   {#create-flow-now-assist__table_v2j_snf_p1c__entry__2}

   | Field | Description |
   |-|-|
   | Flow name | Name to uniquely identify your flow. The system converts the flow name into an internal name by replacing space characters with underscore characters. |
   | Application | Application scope to create your flow in. Global is the default. The application scope determines what data your flow can access and what data it can share. Important: You can't change the application scope of a flow after you've generated a preview for it. |
   | AI directions | Text and image used by flow generation to create your flow. You can use only text, only image, or image and text both to create the flow. For example, if you attach an image of a flow chart, you can add additional information about the flow as text directions. Describe the flow trigger and its data first. Then describe all the actions and flow logic in the order you want them in the flow. Include as much detail as possible for the best results. |
   | Try an example | Series of text examples to insert into the AI directions field. Select this option to insert example text in the directions field. Each example illustrates directions that will build a flow outline. Trying an example overwrites any directions text that you previously added. You can use the undo and redo options to revert to your previous directions. |
   [ ]

   {#create-flow-now-assist__table_v2j_snf_p1c}  
   Follow these general guidelines when writing AI directions.

   Always describe the trigger first
   :   Describe the flow trigger and its data conditions first. After the trigger, describe the actions and flow logic in the same order that you want them to be in the flow.

   Avoid spelling errors
   :   Avoid misspelling the names of actions, flow logic, or tables. Consider using hash tags to avoid making mistakes with table names.

   Be precise and descriptive in your request
   :   Make sure that your request is precise and descriptive. Describe the flow trigger, record data, actions, and flow logic in as much detail as you can. If you attach an image, make sure to attach a clear, high quality image of the process.

   Be succinct and direct in your request
   :   Start by specifying whether you want to generate a flow or a subflow. For example, use the phrase, "<kbd class="ph userinput">Create a flow that</kbd>" to generate a flow. Describe each step the flow in order.

   Refer to actions, flow logic, and tables by name
   :   Use action, flow logic, and table names as part of your directions. The closer your directions are to the actual names, the easier it is for the LLM to recognize them. For example, use the text <kbd class="ph userinput">for each</kbd> or <kbd class="ph userinput">do the following in parallel</kbd> to refer to those specific flow logic options. For table names, consider using hash tags.

   Review the generated flow outline and input values
   :   Review each action, flow logic, and subflow in the generated flow outline. Review the generated inputs values to confirm that they contain relevant data references.

   Use hash tags to refer to data in a specific table
   :   Use a hash tag to select a specific table name. Hash tags are particularly useful to distinguish between tables that have identical or similar display names such as the User \[sys_user\] and User \[imp_user\] tables.

   Use numbers to distinguish the branches of do the following in parallel flow logic
   :   Add a number to each parallel branch. For example, the directions, "<kbd class="ph userinput">When a P1 incident is created, do the following in parallel: 1. Log its short description and 2. Look up the user assigned to it and send an email</kbd>," makes it clear that there are two branches.

   Use quotation marks to set exact values
   :   Enclose exact data values in quotations marks to help the LLM distinguish between operation names and data values. For example, the directions, "<kbd class="ph userinput">Log the value, 'incident reopened'</kbd>" make it clear
   that the text "incident reopened" is a data value.  
   {#create-flow-now-assist__table_ltx_mlf_b1c__entry__2}

   | Field | Description |
   |-|-|
   | Protection | Selection to specify if the flow is read-only. You can only select a value when you create the flow in an application scope that you own. |
   | Run as | Option to specify the user that runs the flow. You can select the system user or the user who initiates the session. Select the user who initiates the session option when updates should come from the user who triggered the flow. For example, use this option when you want the incident record comments to come from the user who started the flow. Settings for the Run as option in a flow don't apply to child subflows. Note: By default, flows run as the user who initiates the session. To create a flow that can run with a personal OAuth token, select the user who initiates the session option. If the user who is running the flow has a personal OAuth token, the flow runs with that token. For more information about creating a personal OAuth token, see [OAuth 2.0 credentials](https://www.servicenow.com/docs/access?context=oauth-2-credentials&version=brazil&pubname=brazil-platform-security&ft:locale=en-US). When flows run as the user who initiates the session, the system limits flow actions by user ACL restrictions. Ensure that security restrictions don't prevent users who trigger the flow from performing flow actions. Flows run by the initiating user also respect user-specific settings such as date/time formats. Note: Inbound email flows ignore this setting and always run as the user who initiates the session. To test access controls for an inbound email flow, impersonate a typical inbound email user and manually trigger the flow. |
   | Run with roles | Roles that the flow runs with. This option is only available when Run as is set to user who initiates the session. You can add one or more roles that the flow can use to access data. These roles only apply to running the flow. For example, add the itil role to flows that must access ITSM data. |
   | Flow Priority Default | Priority level at which you want the system to run this flow by default. Options include: * Low * Medium (Default) * High {#create-flow-now-assist__ul_esz_xlf_b1c} To learn about flow priority levels, see [Flow priority](https://www.servicenow.com/docs/2NcqUmKf2iDgMl_32OE~Lw "Specify the priority that you want a background flow to have in relation to other flows waiting to be run. Run a group of higher priority flows before running any lower priority flows."). |
   [Table 1. Show additional properties]

   {#create-flow-now-assist__table_ltx_mlf_b1c}
6. **Optional:** Select the Try an example option to insert a valid example of flow directions.  
   Each time you select the option, the system inserts a different example of flow directions text. There are three example directions to choose from. Each example direction produces a different type of flow. Selecting Try an example overwrites any directions text that you previously added. You can use the undo and redo options to revert to your previous directions.
7. Select Build flow with AI.  
   Workflow Studio uses your text directions to build a flow outline. If successful, Workflow Studio displays a preview of the flow in the diagramming view. Beneath each node of the flow there is an annotation showing the text directions used to generate the item.
8. **Optional:** If the generated flow preview does not meet your needs, you can update the AI directions, and select Rebuild flow.  
   Each time you build or rebuild a flow, the operation counts as AI usage tracked by your subscription. To track your AI usage, see [Monitoring in AI Admin Center](https://www.servicenow.com/docs/access?context=now-assist-center-monitoring&version=brazil&pubname=brazil-intelligent-experiences&ft:locale=en-US).
9. **Optional:** If you want to stop creating a flow and return to the Workflow Studio homepage, you can select Discard flow.  
   Important:  
   Workflow Studio does not save flow previews. If you discard a flow, all information about it is lost.
10. Select Save and edit flow to review the flow outline.  
    Note:  
    Opening a flow does not count as AI usage.
{#create-flow-now-assist__steps_mmy_b5l_p1c}

## Result

Workflow Studio creates a flow outline with the name you provided. If the large language model couldn't find a matching action, flow logic, or subflow for your request, it may add one or more placeholder
steps instead.

## Create a flow with a scheduled trigger {#create-flow-now-assist__example_f41_cv1_qyb}

You can use these prompt values to create a flow with a scheduled trigger.

Flow name
:   Assign new problems for triage daily

AI directions
:   Create a flow that runs every day at midnight to find newly created problem records. Iterate over them. If they aren't assigned, update it to assign the problem to level 1 triage group. Move the state to
    "triaged," and then send a notification to the group.

## What to do next

* Replace any placeholder steps with actual actions or subflows.
* Configure the inputs of each action, flow logic, and subflow to use appropriate data.
* Test the flow before activating it.
{#create-flow-now-assist__ul_hm4_hbh_q1c}

*[\>]: and then


