Automations Setting Guide
# Automations Setting Guide
——Process tickets in batches on a schedule
# Role of Automations
Automations work without events. Every hour (server time), they automatically execute your preset actions on tickets that meet your preset conditions. They suit tickets that move forward with time, such as closing tickets some time after they are resolved, or assigning tickets that have not been received for too long.
To process tickets when they are created, replied to or otherwise operated on, use flow triggers. Related article: Ticket Flow Setting Guide
# Preparation
● Understand the complete workflow of the ticket system, and be familiar with the basic functions of each module of the ticket as well as the meaning of the ticket list, ticket details and other fields.
● Create custom fields, ticket categories, ticket templates, submission templates or other ticket related attribute contents to help you understand the determination conditions and execution actions of automations.
● Create and process several tickets as test objects of automations.
# Working Principle of Automations
An automation consists of trigger conditions and execution actions. Every hour, the system checks automations in their sorted order (trigger condition), automatically executes the set operation (execution action) for the ticket that meets the condition, and generates the operation record. The trigger conditions and execution actions of automations are basically the same as those of flow triggers.
# Automation Configuration
# ● Add Automation
You can add a new automation by clicking【+Create】on the Ticket Center > Business Rules > Operation Flow > Automations page or copying an automation, add one or more trigger conditions, and set actions to complete the setting. No trigger event is needed; automations run every hour by default.
# ● Relation of Trigger Conditions
When you add multiple trigger conditions, the ticket must meet each of the【All Conditions】you add and at least one of the【Any Conditions】you add before it can be determined to meet the trigger conditions for action execution.
# Automation Management
You can edit, sort, enable/disable, copy and delete automations on the Ticket Center > Business Rules > Operation Flow > Automations page.
# ● Sort
- You can activate the sorting status by clicking the sorting button on the right side of the list, and quickly sort by dragging the sequence tag on the left side, which will take effect after saving; 2. When multiple automations are set, if the ticket meets the conditions of several automations, they will be executed in sequence.
# ● Enable/Disable
- After an automation is disabled, it will no longer take effect; 2. When a disabled automation is enabled again, it will be added to the end of the enabled list. If you want it to be executed first, you need to adjust the sequence.
# Automation Examples
Ticket handling differs between enterprises. The following examples show how to configure automations for real scenarios.
# ● Example 1
Automations can help you automatically process some tickets at a fixed time. For example, the resolved tickets will be closed automatically after 24 hours.
- Trigger conditions: "Ticket: Status" is "Resolved"; "Time: hrs after resolution" is greater than "24h"; 2. Execution action: "Ticket Status" is changed to "Closed";

# ● Example 2
Automations can periodically assign the tickets that have not been received to the designated handler.
For example, tickets that have not yet been received 24h after they are created will be assigned to the designated handler for processing, and the priority becomes urgent.
- Trigger conditions: "Ticket: Status" is "Not Received"; "Time: hrs after creation" is greater than "24h"; 2. Execution actions: "Assigned to Agent" "Neptune"; "Priority" is changed to "Urgent";

# ● Example 3
Automations can periodically assign tickets that have not been received.
For example, the complaint tickets not assigned to the agent group will be automatically assigned to the second-line agent group for processing and received by the agents in the group.
- Trigger conditions: "Ticket: Receiving Agent Group" is "No Agent Group"; "Ticket: Category" is "Complaint"; 2. Execution actions: "Assigned to Agent Group", "Second-line Agent Group";
