> For the complete documentation index, see [llms.txt](https://docs.incogniton.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incogniton.com/extra-features/cas-workflows.md).

# Cas workflows

Save a sequence of Incogniton actions as a Cas workflow, run it with a slash command, or let it run automatically every time you start the app.

A workflow is a saved list of actions that [Cas](https://docs.incogniton.com/extra-features/cas-ai-assistant.md), the AI assistant, runs for you in a fixed order, for example "launch these three profiles". You create a workflow by describing it to Cas in the chat. You run it by typing its slash command, such as `/morning_routine`, by clicking it in the **Tool library**, or automatically every time you start Incogniton.

### Create a workflow

{% stepper %}
{% step %}

#### Describe what it should do

Open the chat with the text bubble icon at the bottom right of the app. Ask Cas to create a workflow and say exactly what each step does, for example: "Create a workflow that launches my profiles Shop US and Shop UK."
{% endstep %}

{% step %}

#### Check the summary and choose a name

Cas sums up the steps and asks for a name. Confirm the steps and give the name.
{% endstep %}

{% step %}

#### Use the slash command

Cas saves the workflow and tells you its slash command. The command is the name in lowercase, with spaces turned into underscores and other special characters left out. "Morning Routine" becomes `/morning_routine`.
{% endstep %}
{% endstepper %}

To run the workflow automatically when the app starts, tell Cas when you create it. See [Startup workflows](#startup-workflows) below.

#### Rules for names and steps

* A workflow has 1 to 6 steps.
* The name can have up to 50 characters and can't contain a slash (`/`).
* Each of your workflows needs a different name.
* Some names are reserved because they clash with built-in commands or with Cas's own actions, such as `help`, `clear` or `launch_profile`. Cas suggests another name if yours is taken.

### Run a workflow

Do one of the following in the chat:

* Type the slash command, for example `/morning_routine`, and press Enter. While you type `/`, a list of matching commands appears.
* Click the compass icon at the top of the chat to open the **Tool library** and click the workflow under **Custom Workflows**.
* Ask Cas, for example "Run Morning Routine".

Cas runs the steps one after the other and tells you whether the workflow completed. You can run and delete only the workflows you created yourself.

### Startup workflows

A startup workflow runs automatically every time you start Incogniton and log in. You don't need to open the chat for it. To make one, ask Cas for it when you create the workflow, for example: "Create a startup workflow that launches my profile Test Profile."

You can still run a startup workflow by hand with its slash command.

### What workflows can do

Each step is one Incogniton action that Cas can also do in the chat, for example:

* create, edit, clone, find or delete profiles
* launch or stop profiles
* create or find proxies, proxy groups, profile groups and tags
* check a proxy
* set or remove a profile's startup URLs
* restore profiles from the trash
* list your cloud phones

A step can use the result of an earlier step. For example, step 1 finds a group, and step 2 launches the profiles in it.

### What workflows can't do

* **No conditions or decisions.** Every step runs, in the same order, every time. A workflow can't skip a step or choose what to do based on a result, such as "if the proxy fails, use another one". Cas does these tasks directly in the chat instead.
* **No schedules.** A workflow runs when you start it or when the app starts. It can't run at a set time, such as every Monday at 9:00.
* **No actions inside websites.** A workflow can't click, type or open pages in a running browser profile.
* **No cloud-phone changes.** A workflow can't create, start or stop cloud phones. Listing them is allowed.
* **No support tickets and no other workflows.** A workflow can't send a support ticket or create, run or delete workflows.
* **No editing.** To change a workflow, delete it and create it again.

If a step fails, the workflow stops at that step. Steps that already ran are not undone. Cas tells you which step failed.

### Delete a workflow

Do one of the following:

* Open the **Tool library**, find the workflow under **Custom Workflows** and click the trash icon next to it. The workflow is deleted right away, without a confirmation.
* Ask Cas, for example "Delete Morning Routine".

To see all your workflows, ask Cas "Show my workflows".

{% hint style="info" %}
If you still have questions about workflows, contact our [support team](https://incogniton.com/contact/).
{% endhint %}
