---
title: "Branch an Automation on a Reply (If/Else)"
description: "Wait for a contact's reply to an SMS and take a different path depending on whether it matches a keyword."
url: https://help.easify.app/en/articles/34-branch-an-automation-on-a-reply-ifelse
collection: "Automations"
updated: 2026-11-26
language: en
---

# Branch an Automation on a Reply (If/Else)

Wait for a contact's reply to an SMS and take a different path depending on whether it matches a keyword.

The **If/Else** condition lets the workflow make a decision based on how a contact replies. Use it after a **Send SMS** action: the condition waits for the contact's reply and checks it against the keywords you choose.

### How it works

-   **Action:** a Send SMS step texts the contact.
    
-   **Condition:** the system waits for the contact's reply and checks whether it matches one of your keywords (for example "YES").
    
-   **If:** the reply matches, the automation follows the If branch (for example, send a confirmation message).
    
-   **Else:** if it doesn't match, the automation follows the Else branch (for example, send a reminder).
    

### Add an If/Else step

1.  In the automation builder, click **+** after your Send SMS step and choose **If/Else** under **Condition**.
    
2.  Choose the **Type**: **If Responded with** (match the reply's keywords) or **If Responded within (Delay)** (check whether the contact replied within a set time).
    
3.  Select one or more **Keywords**, such as YES or INTERESTED.
    
4.  Click **Submit**, then add steps under each branch.
    

![If/Else panel with the Type set to If Responded with and two keywords selected](https://staticfiles.gleap.io/p6997121f1e0ded478c064ef9/6x2WBLz6SLwRy5UL6c1HsnjqQ23jveBitZ2PcYe1CziWQlr9LKAj2k40Y7yFrNo7uYDOI4buA4D.png)

**Tip:** The builder also has an **On Response** condition, which continues the workflow when the contact replies.
