Creating a Rule using Automation Studio - Online Help | Zoho Desk

Creating a Rule Using Automation Studio

To streamline your workflow and ensure consistent processing, you can create a rule in Automation Studio by following the steps given below.
  1. Log in to Zoho Desk with Administrator privileges.
  2. Navigate to Setup > Automation > Automation Studio.
  3. Select the module and department if required, then click Create Rule.
  4. On the Rule information page, do the following:
    1. Enter the rule name and description.
    2. Select a module from the Module drop-down.
  5. On the Rule configuration page, choose an event to trigger/execute the rule. The events will differ based on the module selected.
  6. If required, specify a criteria for the event.
  7. Click + and select any of the following the block types based on your requirement:
    1. Action - Executes a specific task such as sending alerts, updating fields, or calling a custom function.
        
    2. If - Adds conditional logic to decide whether the flow should continue.
    3. Fork - Splits the flow into parallel branches, each running independently.
    4. Delay - Pauses the flow for a specific duration before executing the next action.
  8. Once you are done with all the required criteria, click Save Rule.

Monitoring execution logs   

When an Automation Studio rule is triggered based on its configured event and criteria, it can execute multiple actions, conditional paths, forked paths, and delay blocks.

Ticket History record all activities associated with a ticket, including updates from other workflow rules or manual changes made to the ticket.

When a ticket contains multiple updates, identifying the actions performed by a specific Automation Studio rule can be difficult.

The Execution Log provides a visual record of each Automation Studio rule execution, allowing support reps to trace the path followed by the rule and understand the result of each block. It helps identify completed actions, skipped conditions, pending delays, and failed actions without having to review multiple Ticket History entries.

For example, a rule is created to assign high priority tickets to the escalation team. When the rule is triggered, the rule verifies if the criteria (High priority) is met. Then the execution log shows the executed path and assignment action with their execution results.

If the criteria is not met, the If block is marked as skipped, and the blocks that follow that path are displayed as inactive because they were not executed.
Using the execution logs, the following can be verified:
  1. Actions executed for a ticket
  2. Conditional paths evaluated during execution
  3. Blocks skipped because their criteria were not met
  4. Delays that are scheduled or rescheduled
  5. Actions that failed and require review
  6. Field values updated during execution, where applicable

Understanding block statuses  

Each block in the execution path is displayed with a status indicator.

 
Status
Description
Success
The configured action is completed successfully without any errors. For example, an Update Field action changes the ticket priority from High to Critical.
Failure
An error stopping the configured action from being executed. For example, Send Email action fails when a placeholder used in a required field does not return the required value.
Skipped
The configured operation is not executed because the required conditions are not met. For example, an If condition checks whether the ticket priority is High and is skipped when the priority is Low.
Scheduled
A Delay block is scheduled to run at the specified date and time. For example, a Delay is scheduled to execute three days after a ticket is marked as Resolved.
Rescheduled
Previously scheduled Delay block is updated when a field or action is updated again for the same record, changing its scheduled execution time. For example, a three-day delay is extended by another two days when the Status of the ticket is reset to On Hold.
Block removed
A scheduled action is removed from the rule configuration and is no longer executed. For example, removing a scheduled Send Email action also prevents the actions that follow it in the same path from executing.

The execution log also includes an execution summary with the following details:
  1. Record ID - The ID of the record on which the rule was executed.
  2. Execution ID - A unique ID for the rule execution. This ID can be shared with Zoho Support when further investigation is required.
  3. Execution duration - The time taken to complete the execution.

Viewing an execution log  

Support reps and admins can view the execution log for a specific ticket by clicking View Execution Log in the corresponding Ticket History entry. On clicking the View Execution Log link, the log displays the flow, block statuses, updated values, and execution summary of the rule.

Notes
Note: Admins can also access execution logs from the Automation Studio configuration page at Setup > Automation > Automation Studio > Execution Logs.


To view an execution log
  1. Navigate to the Tickets module.
  2. Open the respective ticket.
  3. Click the History tab.
  4. Click View Execution Log link of the corresponding rule triggered.