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

# Workflows

> Change what Few does and when, in the editor.

Few's behaviour is a workflow: a chain of triggers and actions. The default one
is four steps, and reads as a sentence — *unused for 3 hours → move to Bin → in
Bin for five days → close*.

Open it with **Rules** in the popup, or right-click the Few icon and choose
Options.

<img src="https://mintcdn.com/withfew/X3HZyhwJJtcN0YEU/images/editor.png?fit=max&auto=format&n=X3HZyhwJJtcN0YEU&q=85&s=8342639b5c6db78ea67c6c359baf1e34" alt="The WithFew workflow editor with the default four-step workflow, and the toolbox open with its steps grouped into triggers, actions and logic." width="1240" height="800" data-path="images/editor.png" />

## Changing a step

Click a step and its settings open beside it.

<img src="https://mintcdn.com/withfew/X3HZyhwJJtcN0YEU/images/step-editor.png?fit=max&auto=format&n=X3HZyhwJJtcN0YEU&q=85&s=29a9c82db457b0c5bca1011bbfa41be9" alt="The Move to Bin step selected, with its editor open beside it showing four switches." width="560" height="559" data-path="images/step-editor.png" />

Every timing in Few is set this way — how long a tab must be unused, how long it
stays in Bin, how long before a duplicate is closed.

## Blocks

<AccordionGroup>
  <Accordion title="Triggers" icon="timer">
    **Unused for** — the tab has gone untouched for a length of time.

    **In Bin for** — the tab has been sitting in Bin long enough.

    **Time Spent** — you have spent a total amount of time on the tab.

    **Open** — the tab has just been opened, optionally matching a rule.

    **Duplicate** — the same page is open in another tab.

    **Schedule** — at a time of day you choose.
  </Accordion>

  <Accordion title="Actions" icon="play">
    **Move to Bin** — the safe option: group, unload, keep.

    **Close** — close the tab, with a floor for how many tabs must stay open.

    **Sleep** — unload the tab without moving it.

    **Notify** — a notification instead of doing anything.

    **Group**, **Pin**, **Focus**, **Reload**, **Bookmark** — the rest of the
    everyday tab operations.
  </Accordion>

  <Accordion title="Logic" icon="git-branch">
    **Condition** — branch on the tab's address, title, kind of site, age or
    group, or the time and day — see below.

    **Delay** — wait before the next step.
  </Accordion>
</AccordionGroup>

Drag a block from the toolbox onto the canvas to add it, and drag steps to
reorder them.

## Conditions

A **Condition** splits the workflow: tabs that match go down **If**,
everything else down **Else**. Add as many conditions as you like, and choose
whether a tab must match **all** of them or **any** one.

* **Kind of site** — AI, files, chat, news, shopping, video and so on. Tick several and
  any of them matches. Few works this out on your device
  ([how](/docs/guides/grouping)); a tab it can't place matches none.
* **Title contains** — a word or phrase in the tab's title. Separate several
  with commas; any of them matches.
* **Domain**, **address** — a site, or part of an address. Domains can be a
  comma-separated list too.
* **Pinned**, **playing sound**, **in a group**, **the tab you're on**, **how
  long it's been open**, **number of tabs**, **time of day**, **day of the
  week**.

### Describe it

At the top of every Condition, **Describe it** drafts the conditions from a
sentence: *video and social sites in the evening*, *anything on GitHub titled
"review"*. Press **Generate** and Few fills in the list below, with a
line saying what it understood. Check it, change anything, and save as usual.

<img src="https://mintcdn.com/withfew/X3HZyhwJJtcN0YEU/images/condition.png?fit=max&auto=format&n=X3HZyhwJJtcN0YEU&q=85&s=a6ba2906f7dfc4ee2578d2c1564fcf61" alt="A Condition's editor: the Describe it box with a sentence typed in and a Generate button, then two conditions — kind of site, with Video and Social ticked, and a time of day between 17:00 and 22:00." width="368" height="908" data-path="images/condition.png" />

* Site names and words in quotes are read from your sentence on your device.
  Kinds of site, times, days and tab ages are drafted by our API.
* **Only the sentence is sent**, when you press the button. Your tabs are never
  sent. [Privacy](/docs/privacy) has the details.
* If your sentence describes tabs to **keep**, Few says so: put the steps you
  want for everything else under **Else**.
* It needs you to be signed in, with a trial or plan. Every condition can be
  set by hand without it.

<Tip>
  Put **Move to Bin** in the If branch rather than **Close**. Bin is the safety
  net: if a condition catches a tab you didn't mean, it is still there to open.
</Tip>

## Testing before you trust it

The **▷** button beside the workflow's name reports what the workflow would do
to the tabs you have open **right now**. Nothing is moved, closed or grouped —
it is a preview.

<img src="https://mintcdn.com/withfew/N6ndx6-AqtSrebKh/images/test-preview.png?fit=max&auto=format&n=N6ndx6-AqtSrebKh&q=85&s=5b1dcd72d9ea8b3b82d1df9a0817d616" alt="The test dialog: three of eleven tabs would be moved to Bin at the next check, each listed by title." width="488" height="374" data-path="images/test-preview.png" />

## Starting over

The templates button offers three ways to start. **Templates** has the
recommended cleanup, a gentler one, a more aggressive one and a duplicate
remover; **Scratch** is a blank canvas; **Describe** is below. For more — memory
savers, end-of-day tidies, rules by kind of site — see the
[workflow library](/docs/workflows): download one and bring it in with **Import**.

### Describe how you work

In the templates dialog, choose **Describe** and say how you'd like your tabs
handled — *put social media to sleep after 20 minutes, keep docs for a week, and
close duplicates* — then press **Generate**. Few builds a workflow from the same steps
as the toolbox and shows it before anything changes: a picture of the steps,
and a line for each kind of site. **Use this** puts it in the editor, where you
can change any of it; **Edit the sentence** lets you try again.

<img src="https://mintcdn.com/withfew/X3HZyhwJJtcN0YEU/images/templates-describe.png?fit=max&auto=format&n=X3HZyhwJJtcN0YEU&q=85&s=6232f718a9747a5d6be5176c384492b4" alt="The templates dialog on its Describe tab: a sentence about putting social media to sleep, keeping docs for a week and closing duplicates, with a Generate button." width="584" height="486" data-path="images/templates-describe.png" />

It answers per kind of site, from a fixed set of choices: leave alone, sleep,
move to Bin, Bin then close, bookmark then Bin, or close, each after 20
minutes, an hour, a few hours, a day or a week. Anything finer, change in the
editor. As with Describe it, only the sentence is sent, and only when you
press the button.

Import checks a file before it changes anything. If a file isn't a workflow
Few can run, it says what's wrong and leaves your workflow as it was.

<Warning>
  Picking a template replaces the workflow you have now. Export first if you
  want to keep it — **Export** writes the workflow to a JSON file, and
  **Import** reads one back.
</Warning>

## Saving

**Save** writes the workflow and starts every tab again from the first step, so
a tab that was halfway through the old rules is measured afresh against the new
ones.
