# Automations in Suptask

### Overview

By automating parts of your ticketing process, you can achieve an optimized workflow and higher efficiency as you work through your tickets.&#x20;

The Automation feature in Suptask allow you to set up trigger rules and actions towards your tickets.&#x20;

**For example:**

* When a ticket is created in Inbox X, assign it to the agent with the least amount of tickets assigned currently.
* When a ticket is created in Inbox Y, set the status of the ticket to In Progress automatically.&#x20;
* When a ticket is created with Form A in Inbox X, assign it to Agent Z.&#x20;
* When an update is happening on a ticket, send it to a Webhook url.

<figure><img src="/files/WyjXKLlMdPP1RFEk3faQ" alt="" width="375"><figcaption></figcaption></figure>

***

### How to access Automations

You can find [Automations](https://app.suptask.com/automations) from the main menu in the Suptask Web App.

{% hint style="info" %}
Automations are available within the Professional & Growth & Custom Enterprise plan, and certain legacy plans. Automation features differs across plans.
{% endhint %}

***

### Automation Actions&#x20;

The automation rules are dynamic, allowing you to customize automation to your need.&#x20;

There are a set of built-in rules, and also the possibility to build-out automation based on custom rules which can be added per request.&#x20;

Each of these rules can be configured on the **Inbox** and/or on a specific **Form**.&#x20;

#### Status

Set a specific status of the ticket when it is created.&#x20;

Example:

> When a ticket is created for the form New Laptop in the IT Inbox, set the status to Being Reviewed.

#### Priority

Set a specific priority of the ticket when it is created.

Example:&#x20;

> When a ticket is created for the form New Laptop in the IT Inbox, set the priority to Critical.

#### Assignee

Assign a user to a ticket when it is created.

Suptask can automate the assignment of users with the following methods:&#x20;

* Round-robin&#x20;
* Random&#x20;
* Least amount of tickets&#x20;
* Fixed Agent&#x20;

There are a set of options available to further customize the assignment:&#x20;

* Online only - Only assign the ticket to Agents who have their status set to **online** in Slack.&#x20;
* Exclusion - Exclude specific Agents from being included in the assignment

Example:&#x20;

> Assign the Agent with the least amount of tickets currently assigned, where the Agent need to be Online to be assigned.&#x20;

{% hint style="success" %}
[On-call / on-duty rotation schedules](/integrations-automations-and-workflows/on-call-rotation.md) can be enabled using one of our integrations&#x20;
{% endhint %}

#### Automatic reply

Automatically send a reply to the Requester or the Agents

Example:&#x20;

> Send additional instructions to the Requester after the ticket has been created

#### Webhook

Trigger a Webhook request to a URL of your choice, enabling you to integrate with other systems such as Slack Workflows.&#x20;

#### Approvals

Trigger an approval request to defined users, allowing you to either do a approval sequence with users in a specific order, or a flexible approval where anyone can approve.

* **Sequence approvals**: Trigger approvals with a specific sequence of users&#x20;
* **Flexible approvals**: Anyone of the users can approve

***

### Conditions

Automations can optionally contain conditions to further scope what tickets to target. You can use conditions across several ticket properties, to verify that certain values are met.

<figure><img src="/files/WVARJmw0qn7Jzt5XybFd" alt="" width="375"><figcaption></figcaption></figure>

***

## Time-Based Automations

{% hint style="info" %}
Time-based Automation rules are available within the Growth & Custom Enterprise plan and specific legacy plans.
{% endhint %}

#### Overview

Time-based automations allow you to automatically trigger actions on tickets based on how much time has passed - such as closing stale tickets, sending reminder replies, or escalating tickets that have been waiting too long.

By combining time-based triggers with automation actions, you can ensure tickets never fall through the cracks and your team's workflows stay on schedule.

**For example:**

* Automatically close tickets that have been in the "Waiting" status for 7 days without any activity.
* Send an automatic reminder reply to the Requester if no new reply has been received within 24 hours.
* Escalate a ticket to a senior agent if it has been open for more than 3 days.

***

#### How to Access Time-Based Automations

You can find [Automations](https://app.suptask.com/automations) from the main menu in the Suptask Web App.

When creating or editing an automation rule, select **Time-based** as the trigger type to access the time-based trigger options.

***

#### Time-Based Triggers

Time-based automations support the following trigger types. For each trigger, you can define the amount of time that must pass before the automation fires.

**Time Since Last Reply**

Triggers when a ticket has not received a new reply within a specified amount of time.

Use this to follow up on tickets where the conversation has gone quiet, either from the Requester or from the Agent side.

Example:

> Send an automatic reminder message to the Requester when no reply has been received for 48 hours.

**Time Since Creation**

Triggers based on how long ago the ticket was first created.

Use this to catch long-running tickets or enforce resolution time targets.

Example:

> Assign a ticket to a senior agent if it has been open for more than 3 days without being resolved.

**Time in Status**

Triggers when a ticket has been in a specific status for a defined period of time.

Use this to move tickets forward automatically when they get stuck in a particular stage of your workflow.

Example:

> Automatically close tickets that have remained in the "Waiting for Customer" status for 7 days.

***

#### Configuring the Time Value

For each time-based trigger, you can set the amount of time using:

* **Hours** - for shorter response windows (e.g. 4 hours, 24 hours)
* **Days** - for longer thresholds (e.g. 3 days, 7 days)

***

#### Common Use Cases

| Use Case                      | Trigger                         | Action                   |
| ----------------------------- | ------------------------------- | ------------------------ |
| Close stale tickets           | Time in Status: 7 days          | Set status to Closed     |
| Reminder to Requester         | Time Since Last Reply: 24 hours | Send automatic reply     |
| Escalate long-running tickets | Time Since Creation: 3 days     | Reassign to senior agent |
| Notify team via webhook       | Time in Status: 2 days          | Trigger webhook          |

***

#### Notes

* Time-based automations run on a scheduled check, not in real time. There may be a short delay between when the time threshold is met and when the automation fires.
* A single automation rule can only have one time-based trigger. Combine multiple rules if you need to handle different time thresholds separately.

***

### How to tag a Slack App or User in a Message?&#x20;

You can tag App's and Users in messages from Suptask in order to notify these users with Slack's built in notifications.&#x20;

1. [Locate the Member ID](/getting-started/faq.md#how-to-locate-the-member-id-of-a-slack-user-or-app) which you want to tag
2. In the message you want to send, add the member ID formatted as the following ***<@U43232123>***\
   where *U43232123* is the Member ID. &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.suptask.com/integrations-automations-and-workflows/how-to-set-up-automation-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
