Workflow node: Agent is on team
How the conditional Agent is on team node routes the workflow based on whether an agent belongs to a given team.
What it does
This is a condition node that answers one specific question: does the evaluated agent belong to a team (or to one specific team)? Depending on the answer, the workflow continues down the Yes branch or the No branch.
When to use it
Use it to branch an automation based on which team owns the agent a conversation is assigned to. For example, apply different rules when the assigned agent is on "Support Tier 2" versus any other team, or simply confirm a conversation landed with some team before moving on.
Configuration
- Agent to evaluate: defaults to the agent already assigned to the conversation (
agent_source = assigned); you can also pin a specific agent by id (specific). - Team mode: "any team" (
any, default) returns Yes if the agent belongs to at least one team; "specific team" (specific) requires picking which one. - If there's no assigned agent (an unassigned conversation), the node goes straight to the No branch.
Example
An escalation workflow: right after "Assign agent", an Agent is on team node in specific mode points at "Support Tier 2". If it's Yes, the workflow lets the conversation continue untouched; if it's No, it fires an Add internal note node flagging that it needs to be reassigned to that team.
Variables it exposes
The node makes variables like $agent_in_team, $agent_team_names, $agent_team_count, $matched_team_name, and $agent_team_members available, which are handy for messages or notes later in the same workflow.
Troubleshooting
If the node always returns No even though the agent is genuinely on that team, check you're evaluating the right workspace — teams are workspace-scoped, and an agent can belong to a same-named team in a different workspace that simply doesn't count here.
Related articles
-
Build your first workflow
Omnifox workflows automate your operation: a trigger starts the automation and action nodes do the work. Build a welcome message in minutes.
-
Workflow triggers catalog
Learn which events can start a workflow automatically in Omnifox.
-
Action nodes available in workflows
Discover the actions a workflow can run automatically.
-
Conditions and branching (if/then) in a workflow
Make your flows take decisions and follow different paths based on each contact data.
-
Ready-to-use workflow templates
Start your automations in minutes from prebuilt flows you can customize.