> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Response actions

> Choose the workflows and actions analysts can run from case tasks and comment commands.

Response actions are the workflows and actions your workspace can run from a case, such as `Isolate endpoint` or `Reset user credentials`.
Case tasks and `/` commands in comments list response actions only, so analysts pick from a short approved list instead of every workflow.

![Response actions list](https://mintcdn.com/tracecat/_C47ov7Bs4657gDY/img/cases/response-actions.png?fit=max\&auto=format\&n=_C47ov7Bs4657gDY\&q=85\&s=354adeefc3e01cf2862c434935ae4c32)

## Add a response action

1. Open `Response` in the workspace sidebar.
2. Select `New response action`.
3. Pick a workflow, or switch to actions and pick a Python UDF or YAML template.

![New response action dialog](https://mintcdn.com/tracecat/_C47ov7Bs4657gDY/img/cases/response-actions-new.png?fit=max\&auto=format\&n=_C47ov7Bs4657gDY\&q=85\&s=87d87d78dd7042e7d1701ccf521dacfa)

Search by title, filter by type, and sort the list from the controls above it.
Each row shows the type, the number of case tasks that use the response action, and when you added it.

## Rename a response action

A response action uses the title and description of its workflow or action until you set your own.

1. Open the row menu and select `Edit details`.
2. Enter a title and a description.
3. Select `Save`.

Clear a field to use the workflow's or action's own value again.

## Set inputs

A response action runs with the inputs you save on it.

1. Open the row menu and select `Edit inputs`.
2. Enter the inputs as YAML.
3. Select `Save`.

![Edit inputs dialog](https://mintcdn.com/tracecat/_C47ov7Bs4657gDY/img/cases/response-action-inputs.png?fit=max\&auto=format\&n=_C47ov7Bs4657gDY\&q=85\&s=95ee4567168336be516481a3cb743f75)

| Type | What the inputs are |
| - | - |
| Action | The arguments the action runs with |
| Workflow | The base of the trigger payload the workflow starts with |

An action's inputs can use expressions to read where it runs from.

| Expression | Value |
| - | - |
| `${{ TRIGGER.case_id }}` | The case the action runs from |
| `${{ TRIGGER.task_id }}` | The task the action runs from |

For a workflow, trigger defaults set on a case task and the case, task, and comment fields Tracecat adds replace saved inputs with the same name.
See [Task triggers](https://docs.tracecat.com/automations/triggers/task-triggers.md) for the payload.

## Set an icon

A workflow shows a custom icon on the response actions list, the task action picker, and the run button of a task.
An action always shows its own icon.

1. Open the row menu of a workflow and select `Edit icon`.
2. Pick an icon under `Icons` and enter an optional hex color such as `#ef4444`, or pick an integration logo under `Logos`.
3. Select `Save`.

![Edit icon dialog](https://mintcdn.com/tracecat/_C47ov7Bs4657gDY/img/cases/response-action-icon.png?fit=max\&auto=format\&n=_C47ov7Bs4657gDY\&q=85\&s=19f7e063e1df180ce658692134be7400)

Select `Remove icon` to clear it. The run button of a workflow without an icon shows its title only.

## Run a response action

| From | How |
| - | - |
| Case task | Set the response action with `Action`, then select its button on the task row |
| Comment | Type `/` in a case comment and pick the response action |

![Response action picker on a case task](https://mintcdn.com/tracecat/_C47ov7Bs4657gDY/img/cases/case-response-action-picker.png?fit=max\&auto=format\&n=_C47ov7Bs4657gDY\&q=85\&s=4dc1360a1dc1de4e8d0368a6f1526478)

Tracecat rejects a workflow or action that is not a response action, in the app, the API, the MCP server, and the `core.cases` task actions.

## Remove a response action

Open the row menu and select `Remove`.
Tracecat keeps a response action while a case task uses it, so clear it from those tasks first.

## Permissions

| Operation | Scope |
| - | - |
| List response actions | `case:read` |
| Add, edit, or remove | `workflow:update` |
| Run | `workflow:execute` |

Workflows already set on case tasks before response actions existed are added for you.

## Related pages

* See [Case tasks](https://docs.tracecat.com/automations/cases/tasks.md) to set a response action on a task and view its runs.
* See [Comment triggers](https://docs.tracecat.com/automations/triggers/comment-triggers.md) to run a response action with a `/` command.
* See [Workflow triggers](https://docs.tracecat.com/automations/cases/workflow-triggers.md) to compare response actions with case triggers.
* See [Workspace Git sync](https://docs.tracecat.com/gitops/workspace-git-sync.md#response-actions) to store response actions as YAML in a repository.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.