Here is a clear, step-by-step academy guide written to accompany the video. It uses the requested formatting tools to remain highly scannable, structured, and easy for students to follow.
Lesson Guide: Mastering Condition Nodes in Noca Flow
In this lesson, you will learn how to use the Condition Node in Noca Flow to execute conditional logic based on real-time data. We will walk through a real-world example: reading a Salesforce account and automatically categorizing the company size based on its employee count.
Prerequisites
Before starting, ensure you have:
-
An active Noca AI account.
-
A Salesforce integration connected to your Noca workspace.
-
Test accounts in Salesforce (e.g., one with $>100$ employees and one with $<100$ employees).
Step 1: Set Up Your Base Flow and Read Node
First, we need to bring the data we want to evaluate into Noca Flow.
-
Open your Noca Flow workspace.
-
Add a Read Node to your canvas to pull an account record from Salesforce.
-
Configure the Read Node’s condition to look up a specific account name (e.g.,
Edge Communications). -
Set up an Account ID Variable right after the Read Node to store the retrieved Salesforce Account ID for later use.
Step 2: Insert and Configure the Condition Node
The Condition Node will act as a fork in the road, splitting your automation path based on the criteria you define.
-
Click the + icon on your canvas and select Condition Node.
-
Look at the configuration panel on the right side of your screen.
-
Open the Data Kit, navigate to your Read Account Node, go to App Fields, and locate the
Number of Employeesfield (you can use the search bar to find it quickly). -
Drag and drop the
Number of Employeesfield into the top portion of the condition statement. -
Set the logic operator to Greater than or equal to ($\ge$) and enter
100as the value. -
Name your condition branch
more than 100.
💡 What just happened? Your flow has now successfully split into two distinct paths: the top path executes if the account has 100+ employees, while the bottom path (Else) executes if it has fewer.
Step 3: Map the Conditional Actions (Salesforce Update)
Now, we define what happens on each of the two paths.
Path A: More than 100 Employees
-
Add a Salesforce Update Action node to the
more than 100path. -
Select the Account object.
-
Under mapping, search for the
Company Sizefield and select Large from the dropdown menu. -
Set the node’s required condition to match your
Account IDvariable with the incoming account’s ID so Noca knows exactly which record to update.
Path B: Else (Less than 100 Employees)
-
Add a second Salesforce Update Action node to the Else path.
-
Select the Account object.
-
Under mapping, search for the
Company Sizefield and select Small from the dropdown menu. -
Set the exact same variable condition (
Account ID$=$ Variable Account ID) so the correct record updates.
Step 4: Save and Test Your Logic
Always test both branches of your conditional logic to ensure the configuration is flawless.
Test 1: Testing the “Large” Path
-
Update your Read Node to look for
Edge Communications(which has 1,000 employees). -
Click Save and Run.
-
Watch the visual execution path: you will see the flow automatically take the top path. Check Salesforce to confirm the Company Size has changed to Large.
Test 2: Testing the “Small” Path
-
Click Edit Flow and change your Read Node condition to search for
Dickinson PLC(which only has 12 employees). -
Click Save and Run.
-
Watch the visual execution path: the flow will now take the bottom Else path. Check Salesforce to confirm the Company Size has changed to Small.
Key Takeaways
-
Data Kit Drag-and-Drop: You can easily drag any field from previous nodes directly into your condition rules.
-
The “Else” Path: Any data that doesn’t meet your primary condition automatically routes down the Else branch, ensuring no data gets left unhandled.
-
Variables Matter: Storing IDs in variables makes it incredibly efficient to map identical conditions across multiple paths.