# Automations

Automate repetitive tasks and never miss important actions again. ClearFeed automations allow you to respond to requests, escalate issues, and keep your team organized without manual effort.

## Why use Automations

Automations help your team:

* Reduce manual work and repetitive tasks
* Escalate urgent requests automatically
* Keep internal teams aligned and informed
* Trigger external actions like ticket creation or Okta actions or HubSpot actions
* Use AI to extract information or respond to requests

## How Automations Work

Every automation has four simple parts:

| **When**                         | **If**             | **Wait**         | **Then**     |
| -------------------------------- | ------------------ | ---------------- | ------------ |
| Trigger                          | Conditions         | Delay            | Actions      |
| *Request created, updated, etc.* | *Optional filters* | *Optional pause* | *What to do* |

**Real Example:** When a request contains "urgent" then send Slack alert to #support-team

## Quick Start: Create your first Automation

Let's build a simple automation to send a "follow-up reminder" if a request is pending for 24 hours.

* Create Automation: Navigate to **More → Automate → Create Automation**
* Set Up the Rule
  * **Name:** "Follow-up Reminder"
  * **Description**: "Automation to send message to Assignee when request has been pending for 24 hours"
  * **When (Trigger):** Request Updated
  * **If (Condition):** Status is "Pending"
  * **Wait (Delay):** 24 hours
  * **Then (Action):** Send message to assignee
* Activate: Map to your collections and enable the toggle.

### Complex Automation Examples

Real-world scenarios that combine multiple conditions and actions:

#### 🚨 Escalation Automation

**Scenario:** Auto-escalate high-priority requests during business hours

```
Name: "Priority Escalation"
Trigger: Request Created
Conditions: 
- Priority is "High"
- Trigger time is inside business hours
- Channel is one of ["#support", "#urgent"]
Actions:
1. Set Field: Assignee to Naveen
2. Send Message to Slack Channel #escalation-management:
    "🚨 High priority request needs attention: {{request.web_url}"
```

## Automation Guide

Explore details for building and managing automations:

### [Automation Configuration](https://docs.clearfeed.ai/clearfeed-help-center/clearfeed-helpdesk/automations/automation-configuration)

Learn how to set up the **When**, **If**, and **Wait** components:

* Choose Your Trigger
* Add Conditions
* Set Delays and invariance rules

### [Automation Actions](https://docs.clearfeed.ai/clearfeed-help-center/clearfeed-helpdesk/automations/automation-actions)

Discover everything you can automate with the **Then** component:

* Webhooks
* Set Field actions
* Messaging actions
* Ticket creation
* AI actions & auto-fill fields
* Okta and HubSpot actions

### [Automation Management](https://docs.clearfeed.ai/clearfeed-help-center/clearfeed-helpdesk/automations/automation-management)

Learn how to:

* Map Collections
* Add dynamic parameters
* Monitor execution logs
* Troubleshoot issues


---

# 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://docs.clearfeed.ai/clearfeed-help-center/clearfeed-helpdesk/automations.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.
