# Assisted Workflow

## Requirements

Linux Control Center = 2.10.X or higher

## Overview

Assisted Workflow is ideal for delegating specific tasks to specific users. It allows a user to access only one or more workflows previously configured by the administrator, ensuring that they only have permission to perform the designated task.

## Objective

The objective of this document is to demonstrate step by step how to configure Assisted Workflow for a Console user.

## Create a Console Access User

* The first step is to create a user with limited permissions to access the LCC Console.

1. Access the LCC and click **Config** in the left side menu.

   ![](/files/hrHlEv8SGbfrVGOKVHrt)
2. Click **Users**.

   ![](/files/xmcSFl6CCB3qPbKyg8et)
3. Click **Create**.

   ![](/files/6zd8P5w1VHGUptBzH8t7)
4. Fill in the fields as instructed below;

* **Username:** User to log in to the Console.<br>
* **Password:** User password.<br>
* **Confirm Password:** Field to confirm password.<br>
* **Email:** Email to receive notifications.<br>
* **First Name:** First display name.<br>
* **Last Name:** Last display name.<br>

  ![](/files/mVsFVbg4ed1efxeyAHGZ)

### User Permissions

1. Click **Configure Permissions**

   ![](/files/n9D6fSDzQ1t4FkZwgA85)
2. Enable the following screens with *read-only* or *read and write* permissions.

**Dashboard:** Mandatory in all cases. **Host:** Mandatory in all cases.**Queue:** To track the status of the Action in the queue.**AssistedWorkflow:** Access to the Assisted Workflow screen.**WorkflowRun:** Permission to run the Workflow.

1. Click **Save** to save the permissions.

   ![](/files/cIhI8NPhGuWDsIYafpdw)
2. Click **Save** to create the user.

   ![](/files/QplyuiIa3NpyIjVf6fgo)

## Create the Workflow

1. Create the Workflow according to your needs.
2. Click **Workflow** on the left sidebar.

   ![](/files/DeWJuw6GeGJJdiI5hpfB)
3. Click **Create**.

   ![](/files/qbv1vsOmZzTJyoAdOZNO)
4. Enter a name for the Workflow in the **Name** field.

   ![](/files/9BBZT9ffp5n3aiUnX6Qk)
5. Click **Start New Workflow**.

   ![](/files/rgh5hJ1r8fhKypE5HLvv)
6. Choose the desired *Action* in the **Action** field

   ![](/files/iLUziPUs736DMjkNBaXL)
7. Choose the **Host** on which you want to execute the action in the **Host** field.

   ![](/files/ZU1KVU9h4BoukTGj94fe)
8. You can also execute the action in a group, selecting it in the **Group** field.

   ![](/files/HblAYKczVf24M6FaOMpT)
9. Click **Create**.

   ![](/files/QhEa9lDPuacAxst8JtKo)
10. Click **Save** to create the *Workflow*.

    ![](/files/xaTMEL76ryKRVeQpuvPf)

## Create Sub Action

1. Open the Workflow in which you want to add an *Action* with decision making and click **Add Subaction** for the desired action.

   ![](/files/shjd5bToXln4Nxq7CyQS)
2. Click **Action** and choose the *Sub Action*

   ![](/files/1rZLr6vcErRr6fuEg8gi)
3. Choose which result will be responsible for executing the *Sub Action*.

* **Always**: Executes the *Sub Action* regardless of the result of the previous *Action*.<br>
* **Success**: Executes the *Sub Action* only in case of *Success* of the previous *Action*.<br>
* **Error**: Executes the *Sub Action* only in case of *Error* of the previous *Action*.<br>
* **Regex**: Executes the *Sub Action* only if the defined *Regular Expression* is the result of the previous *Action*.<br>

  ![](/files/zIJa04djMX2TPa7IJGjW)

1. Click **Create** to create the *Sub Action*.

   ![](/files/lo6TiXSIYlj6RAtl7Znv)
2. Click **Save** to save the *Sub Action*

   ![](/files/VfUrsNDayqXsTPZChHdj)

## Create the Assisted Workflow

* With the User and the Workflow created, now is the final step to create the Assisted Workflow

1. Access the **Assisted Workflow** screen in the left side menu.

   ![](/files/2keRbILCFJzwYFSR37vi)
2. Click **Create**

   ![](/files/8fQovLBoczkI5wH3y0Tq)
3. Enter a name to identify the Assisted Workflow in **Name** and choose which Workflow will be executed in the **Workflow** field.

   ![](/files/NRdjGqndM2w8bOonLKUm)
4. Define which l Console user or which Console User Group will have access to this Assisted Workflow.

   ![](/files/yCqoKfkdvpIeD70nqZZB)
5. Click **Save** to create the Assisted Workflow.

   ![](/files/GRX3brvIkueYg1mh9kw3)

## Running the Assisted Workflow

1. To run the Assisted Workflow, access the LCC with the user it was created as.

   ![](/files/KX9U4SoJsR7RUSNQuWok)
2. Access the **Assisted Workflow** screen in the left side menu.

   ![](/files/2keRbILCFJzwYFSR37vi)
3. Click on **Actions** of the desired Assisted Workflow and click on **Run**. This will execute the pre-configured workflow.

   ![](/files/o8LLETZ703u5rop2eKBD)


---

# 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.linuxcontrolcenter.com.br/en/assisted-workflow.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.
