---
title: "What is a Conditional Path?"
description: "Learn how to use Conditional Paths and customize workflows in Automations to create if-else logic with precise conditions."
url: "https://www.contentstack.com/docs/agent-os/what-is-a-conditional-path"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-06-23"
---

# What is a Conditional Path?

A conditional path runs a different set of actions based on whether an expression is true or false.

For example, if you want to call someone, you can only do so if the person is available. Otherwise, you might send a voice message.

The Conditional Path feature in Automations, allows you to customize your automation paths and flows.

1.  If the conditions in the Conditional Path match, the actions in the If step are executed.
2.  If the conditions do not match, the actions in the Else step are executed.

### Basic Flowchart of Conditional Path

![Agent-OS-Automate-Conditional-Path](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltd07ce154acea1f7c/69f31140baa5f016911f7337/Agent-OS-Automate-Conditional-Path.png)

## When to Use the Conditional Path Statement?

With the Conditional Path feature, you can control the flow of your automation. Use a Conditional Path when you want to trigger specific actions only if a condition is met. For example, when a variable equals a specific value or exceeds a threshold.

Refer to the [Using Conditional Paths to Customize Automations](/docs/developers/automation-hub-guides/using-conditional-paths-to-customize-automations/) use case to narrow down your automation for specific tasks.