# Automation

Gradient Works matching, routing and assignment workflows use [Salesforce Flow](https://help.salesforce.com/articleView?id=flow.htm\&type=5). Flow is built into every edition of Salesforce and allows you to automate business processes using a drag and drop interface. If you're not familiar with Flow, Salesforce offers a number of [Trailhead tutorials](https://trailhead.salesforce.com/content/learn/modules/business_process_automation) that will have you up and running in no time.

Flows consist of building blocks that perform specific actions such as retrieving data, executing business logic or displaying content to users. Gradient Works integrates directly into Flow by providing our [Automation Builder Kit (ABK)](https://github.com/Gradient-Works/salesforce/blob/main/docs/gitbook/routing/automation/broken-reference/README.md) which includes more than 30 actions.

## Automations

Each Automation is powered by a Salesforce Flow. You can access automations from the Automation tab in the Gradient Works Routing module.

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-c70f102849031ce712a18cdfbe335c00b47126c4%2Fautomation-listing.png?alt=media" alt=""><figcaption><p>Automation Listing</p></figcaption></figure>

This tab shows you all Flows that use any [Gradient Works ABK](https://docs.gradient.works/kb/automation-builder-kit-abk/getting-started) actions. In this listing you'll see:

* Label - The name of the Flow-based automation
* Type - The [Flow type](https://help.salesforce.com/s/articleView?id=sf.flow_concepts_type.htm\&type=5) of the automation (e.g. Screen, Record-Triggered, Autolaunched)
* Object - For Record-Triggered automations, the Salesforce object that can trigger the Flow to execute
* Active Version - The version number of the active version of the Flow
* Latest Version - The highest version number of the Flow. This may differ from the active version if there are draft versions of the Flow

To create a new Flow-based automation, click New. You will be prompted to choose from one of the built-in Gradient Works automation templates or to create a new Flow from scratch.

### Tracing and Debugging

When you build automations using [Flow Lifecycle](https://docs.gradient.works/kb/automation-builder-kit-abk/actions/leads) and [Logging](https://docs.gradient.works/kb/automation-builder-kit-abk/actions/logging) actions, Gradient Works provides tools to help you debug issues and trace the execution of your automations. Learn more about [automation executions](https://docs.gradient.works/kb/routing/automation/automation-executions) and [log entries](https://docs.gradient.works/kb/routing/automation/log-entries).


---

# 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.gradient.works/kb/routing/automation.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.
