Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use an IF/Else block with Rovo Agent in automation rules.

Andrew Allen
December 16, 2025

I am trying to build out an automation rule that incorporates a rovo agent. I am struggling to get the logic down behind it. 

 

1 answer

0 votes
Alexander Nilsson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 16, 2025

Hi Andrew,

thanks for your interesting question. 

The most reliable way to use a Rovo Agent response within an If/Else block is to have the agent return a simple, predictable keyword. Saving this response to a variable before the condition makes the logic more stable.

Recommended Pattern

  1. Action: Use Rovo Agent
    In your prompt, instruct the agent to reply with a single keyword. For example: "If this is urgent, reply only with the word 'URGENT'. Otherwise, reply 'NORMAL'."
  2. Action: Create variable
    Save the agent's output. Set a variable like agentDecision to the smart value {{agentResponse}}.
  3. Condition: If/Else Block
    Use an "Advanced Compare Condition" to check if {{agentDecision}} contains your keyword (e.g., `URGENT`). This is generally safer than checking for an exact match.

Official Documentation

Hope this helps get your logic working!

Please feel free to mark that answer as accepted so that other people can find it more easily. 

Greetings,
Alex

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events