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

# Creating workspace workflows

> Create workspace workflows that act on your apps from one place. Describe what should happen, group workflows into projects, and choose which apps they reach.

Workspace workflows automate work across your whole workspace, unlike [app workflows](https://docs.base44.com/Building-your-app/Creating-workflows.md), which run only inside one app. You describe what should happen and when, and the AI builds the workflow for you. You group workflows into projects, so the people you work with can build and run them with you.

> [!WARNING]
>
> **Who can use workspace workflows:**
>
> * Workspace workflows are rolling out gradually.
> * Your workspace needs a [Builder plan](https://docs.base44.com/Account-and-billing/Billing-and-plans.md) or higher.
> * You need to be a workspace owner, admin, or editor to create workflows and projects.
> * A new project can't act on your apps until a workspace owner or admin [sets its app access](#choosing-app-access).

![The Daily Pending Orders workflow: a Scheduled trigger, then Collect pending orders and Email the pending list steps](https://mintcdn.com/base44/Mxar9-5Ttq6uOvF3/images/workspace-workflows-hero.png?fit=max\&auto=format\&n=Mxar9-5Ttq6uOvF3\&q=85\&s=ff2b87948c2b0b8850494378d1b2af65)

A workspace workflow and its steps

You can open Workflows from your workspace sidebar, from **Security & Control** in your workspace settings, or from the menu in the Base44 mobile app.

***

## How workspace workflows work

Every workflow belongs to a project. It has a trigger, which decides when it runs, and steps, which decide what it does. A project can also keep its own records, which the AI adds as it builds.

### When a workflow runs

A workflow can start:

* **On a schedule:** For example, every weekday at 8 AM.
* **When the project's data changes:** For example, when a record is added to one of the project's own tables. Changes to your apps' data don't start workspace workflows.
* **When a service sends an event:** For example, when your form sends a submission. The AI gives you a URL to paste into that service.
* **When an integration reports something new:** For example, when an email arrives in Gmail.
* **When a workspace event happens:** For example, when an app is published or a member becomes an admin. Only workspace owners and admins can use this trigger.

### What your role allows

Your role in the workspace decides what your workflows can reach. If you're a workspace owner or admin, your workflows can also use [workspace rules](#workspace-rules) and read your workspace's list of apps, members, or security scan results, for example to list apps that haven't been published in a while.

If you're an editor, your workflows work with your apps' data through the project's [app access](#choosing-app-access).

### Emails and credits

A project's workflows can send emails that the AI designs for the project, but only to the project's collaborators. To email anyone else, ask the AI to use a connected email account, such as Gmail.

> [!NOTE]
>
> Building workflows in the AI chat and running them both use your workspace's credits. The amount depends on what each workflow does, such as how many steps run and how often. If your workspace runs out of credits, your workflows don't run until you have credits again. Learn more about [workflows and credits](https://docs.base44.com/Building-your-app/managing-workflows.md#workflows-and-integration-credits).

***

## Setting up a project

Use projects to keep related workflows together and choose who works on them. The workflows in a project share its tables, integrations, secrets, and app access.

You only see the projects you're a collaborator on, even if you're a workspace owner or admin. If you don't have a project yet, Base44 creates one called Workflows when you send your first request.

### Creating a project

Create a project when you want a separate space for a group of people or workflows. You own each project you create.

**To create a project:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list.
3. Click **New project**.

   ![The Workflows page with Workflows selected in the sidebar and the project menu open, with New project outlined](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-project-picker.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=70e30c1f8c1bed54718758fd8b8d16ff)

   Creating a new project
4. Enter a project name.
5. Click **Create project**.

### Choosing app access

App access controls which apps and [Superagents](https://docs.base44.com/Getting-Started/superagent.md) a project's workflows can act on. In those apps, workflows have the same permissions as an app admin, so choose them with care.

> [!WARNING]
>
> You need to be a workspace owner or admin, and a collaborator on the project, to change its app access. If you're an editor, [share the project](#sharing-a-project) with a workspace owner or admin, then ask them to choose its app access.

Until a project's app access is set, steps that act on your apps fail. If you see **Some workflows need app access** in the project settings, some steps act on apps the project can't reach yet. Adding those apps to the app access below fixes it.

**To choose app access:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Click the **Project settings** icon  at the top of the project, next to the collaborators.

   ![The Workflows page with the Project settings icon outlined next to the Northwind Operations project's collaborators](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-project-settings.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=28d580f7581668b9707d96632985f403)

   Opening a project's settings
4. Do one of the following under **App access** on the **General** tab:

> [accordion] Allow all apps
>
> Workflows can act on every app and Superagent in your workspace, including ones created later.
>
> **To allow all apps:**
>
> 1. Select **All apps in** (your workspace name).
> 2. Click **Allow all apps** to confirm. The change saves right away.

> [accordion] Choose selected apps
>
> Workflows can act only on the apps you add, up to 50.
>
> **To choose selected apps:**
>
> 1. Select **Selected apps**.
> 2. Click **Add an app**.
>
>    ![Project settings with App access set to Selected apps, and the Add an app field outlined](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-app-access.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=6f4508ff48d9df3c33ace9f458ce46f6)
>
>    Choosing which apps a project can act on
> 3. Click **Apps** or **Superagents**.
> 4. Search for and select the ones the project needs. Your changes save as you make them.

> [accordion] Remove an app
>
> Remove an app when the project's workflows no longer need it. They stop working with that app, and you can add it back at any time.
>
> **To remove an app:**
>
> 1. Click the **X** on the app's name under **Selected apps**.
> 2. Click **Remove app**.

### Sharing a project

Share a project to add collaborators to the whole project, not to one workflow. Everyone you add can edit the project's workflows and sees the project on their Workflows page. All collaborators use your workspace's credits.

> [!WARNING]
>
> **Who can invite collaborators:**
>
> * If you're a collaborator on the project, you can invite workspace members.
> * To invite someone from outside your workspace, you need to be a workspace owner or admin.

**To share a project:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Click the **Add collaborator** icon  next to the project name.

   ![The Northwind Operations project on the Workflows page, with the Add collaborator icon outlined next to the project name](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-add-collaborator.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=6e8fcf140d2c5ade3c1e33c8a6885d6d)

   Sharing a project from the Workflows page
4. Enter one or more emails, separated by commas.
5. Click **Invite**.

   > [!NOTE]
   >
   > **Inviting someone from outside your workspace:**
   >
   > When you click **Invite** with an email from outside your workspace, choose how to add them:
   >
   > * **Invite as workspace guest:** They get access to this project only.
   > * **Invite to workspace:** You go to workspace settings to [invite them as a member](https://docs.base44.com/Account-and-billing/Managing-your-workspaces.md#sending-an-individual-invite). After they join, share the project with them.

### Removing a collaborator

Remove a collaborator when someone no longer needs to work on the project. They lose access to the project and its workflows right away.

> [!WARNING]
>
> You need to own the project to remove a collaborator.

**To remove a collaborator:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Click the **Add collaborator** icon  next to the project name.
4. Click the **More actions** icon  next to the collaborator's name.
5. Click **Remove collaborator**.
6. Click **Remove collaborator** to confirm.

***

## Creating a workflow

Describe a workflow in plain words, or start from a template, and the AI builds it for you in the project that's open. A new workflow is active as soon as the AI saves it. If Base44 creates the Workflows project for you, set its [app access](#choosing-app-access) before its workflows can act on your apps.

> [!WARNING]
>
> You need to be a workspace owner or admin to create a workflow that uses [owner and admin features](#how-workspace-workflows-work). If you're an editor and ask for one, the AI can't save the workflow.

### Describing a workflow

Write your own request when you know what you want the workflow to do. The AI may ask you a few questions in the AI chat as it builds.

When a workflow needs an account, such as Gmail, or a secret, such as an API key for a service, the AI asks you for it in the chat. Until you connect the account, the workflow's runs fail. Once connected, a project's integrations appear under **Resources** at the top of an open workflow, and its secrets are on the **Secrets** tab of the project settings.

**To create a workflow:**

1. Click **Workflows** in your workspace sidebar.
2. Write what should happen and when in the **Describe your workflow** box. For example:
   ```text theme={null}
   Every morning at 9, email me yesterday's new leads.
   ```
   ![The Workflows page, selected in the sidebar, with a request in the Describe your workflow box and templates below](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-page.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=7d48ee3ea8e335f81fbde0946e8268e1)

   The Workflows page in your workspace
3. (Optional) To save the new workflow in a different project, click the project name below the box, then choose the project.
4. Click the **Create workflow** icon . The AI builds the workflow in the AI chat, and a diagram of its steps opens next to the chat.

### Starting from a template

Templates give you a ready-made request that you can edit before you send it. If you're a workspace owner or admin, the templates for managing your workspace, such as the **Publish security gate** template, show first.

**To create a workflow from a template:**

1. Click **Workflows** in your workspace sidebar.
2. Click **Browse all templates**.
3. Click a template to see when it runs and what it builds.
4. Click **Use template**.

   ![The Workflow templates window with a template open, showing when it runs, its request and Use template outlined](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-template.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=cd645423db3784885cee964d0e22a1a7)

   Opening a template before you use it
5. (Optional) Edit the request in the **Describe your workflow** box.
6. Click the **Create workflow** icon . The AI builds the workflow in the AI chat, and a diagram of its steps opens next to the chat.

***

## Workspace rules

A workspace rule checks an action before it happens in your workspace and can block it, so changes you don't want don't go through. You create a rule like any other workflow, by [describing it](#describing-a-workflow) or [starting from a template](#starting-from-a-template).

> [!WARNING]
>
> You need to be a workspace owner or admin to create, change, turn on or off, archive, or restore a workspace rule.

### What a rule checks

Each rule checks one kind of action. A rule can check an action before:

* An app is published.
* Someone changes who can open a live app.
* An app is created.
* An app moves into or out of your workspace.
* A connector is connected to an app.
* A [branch](https://docs.base44.com/Building-your-app/working-with-branches.md) is merged into main.

For example, the **Publish security gate** template blocks a publish when the app's security scan has open critical findings, is more than 30 days old, or hasn't run, and shows the reason to whoever is publishing. To let the publish through, run a scan and fix its critical findings first.

> [!NOTE]
>
> **How workspace rules work:**
>
> * Only one rule for each kind of action can be active in your workspace at a time. If another one is already active, yours is saved inactive, and the AI tells you which rule and project that is. To use yours, deactivate the other rule first, then activate yours.
> * A rule only checks apps in its project's [app access](#choosing-app-access). Actions on other apps go ahead without the check.
> * While a rule is inactive or archived, the action it checks goes ahead without the check.

### Testing a rule

Test a rule to see whether it allows or blocks an action, without doing the real action. The test runs on one of the apps in the project's app access, using that app's real data.

> [!WARNING]
>
> **What runs during a test:**
>
> * Every step in the rule runs for real, except starting other workflows. For example, a Slack message the rule posts is really posted.
> * Emails the rule sends go to you instead of their recipients.

**To test a workspace rule:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Click the rule to open it.
4. Click **Run now**.
5. Choose an app under **App to test on**.
6. (Optional) To test a different situation, describe it under **What do you want to test?** and click **Prepare test**.
7. Click **Run test**. The result shows whether the rule allowed or blocked the action, and why.

***

## Managing workflows and projects

Once your workflows are running, you can change them, check how their runs went, and tidy up the ones you no longer need. You can also change the emails they send and manage the projects they're in.

### Managing a workflow

Open a workflow from its project to change it, run it, turn it on or off, rename it, or archive it.

> [!WARNING]
>
> **Who can manage a workflow that uses [owner and admin features](#how-workspace-workflows-work):**
>
> * Only workspace owners and admins can change, rename, turn off, or archive it.
> * Any collaborator on the project can run it, turn it on, or restore it, unless it's a workspace rule.

**To manage a workflow:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Do one of the following:

> [accordion] Change a workflow
>
> Each project has one AI chat for all its workflows. The **Editing:** label at the top of the chat shows which workflow your next message changes.
>
> **To change a workflow:**
>
> 1. Click the workflow to open it.
> 2. Describe the change in the AI chat.
>    > [!TIP]
>    >
>    > To start a new workflow from the chat instead, click the **X** on the **Editing:** label.

> [accordion] Run a workflow now
>
> Run a workflow now to see what it does without waiting for its trigger. Every step runs for real, and each email it sends goes to you instead of its recipients.
>
> **To run a workflow now:**
>
> 1. Click the workflow to open it.
> 2. Click **Run now**.
>    > [!NOTE]
>    >
>    > For a workspace rule, **Run now** opens a test instead. See [testing a rule](#testing-a-rule).
> 3. Click **Run now** in the **Run workflow** window.

> [accordion] Turn a workflow on or off
>
> Turn a workflow off to pause it without losing it. It doesn't run until you turn it on again. If you created a workflow that keeps failing, Base44 turns it off, and you get an email and a notification.
>
> **To turn a workflow on or off:**
>
> 1. Click the workflow to open it.
> 2. Turn **Active** on or off.
>
>    ![An open workflow with its steps, and the Active switch outlined next to Run now](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-active-toggle.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=65a19ed30e705401a3bb4729f05ae967)
>
>    Turning a workflow on or off
>
>    > [!NOTE]
>    >
>    > If you turn on a workspace rule while another rule of the same kind is active, a message names that rule and its project, and yours stays off.

> [accordion] Check a workflow's runs
>
> Check a workflow's runs to see whether it ran and what each step did. You can see runs from the last 3 months.
>
> **To check a workflow's runs:**
>
> 1. Click the workflow to open it.
> 2. Click a run under **Run history** to see its steps.

> [accordion] Check all runs in a project
>
> See the runs of every workflow in the project in one list.
>
> **To check all runs in a project:**
>
> 1. Click the **More actions** icon  at the top right of the project.
> 2. Click **View activity**.
>
>    ![The More actions menu above the workflow list, with View activity outlined above View archived](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-activity.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=c5bb6a6c61896fabdf0789630601de14)
>
>    Opening a project's activity

> [accordion] Rename a workflow
>
> Rename a workflow so its name says what it does.
>
> **To rename a workflow:**
>
> 1. Click the **More actions** icon  on the workflow's row.
> 2. Click **Rename**.
> 3. Enter a new name.
> 4. Click **Save**.

> [accordion] Archive a workflow
>
> An archived workflow stops running and leaves the workflow list. You can restore it later.
>
> **To archive a workflow:**
>
> 1. Click the **More actions** icon  on the workflow's row.
> 2. Click **Archive**.
>
>    ![A workflow's More actions menu with Archive outlined below View, Run now, Deactivate and Rename](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-archive.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=ac18be1a853c8fa45672a6a564730827)
>
>    Archiving a workflow

> [accordion] Restore a workflow
>
> A restored workflow comes back active, unless its schedule has already ended.
>
> **To restore a workflow:**
>
> 1. Click the **More actions** icon  at the top right of the project.
> 2. Click **View archived**.
> 3. Click the **More actions** icon  on the workflow's row.
> 4. Click **Restore workflow**.

### Changing workflow emails

Change the design or wording of the emails a project's workflows send, such as a weekly summary.

**To change a project's emails:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Click any workflow in the project to open it.
4. Click **Resources** at the top of the page.
5. Click **Emails**.

   ![The Resources menu open at the top of an open workflow, with Emails outlined below Data](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-resources-emails.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=55b404524d20038643158323255a005f)

   Opening a project's emails
6. Click the email you want to change.
7. Click **Edit with AI**.
8. Describe the change in the AI chat and send it. When the AI saves the change, every workflow in the project that sends this email uses the new version.

### Managing a project

Manage a project from its settings when you want to rename, copy, or delete it. Its settings also have a **Secrets** tab for the project's secret values, and a **Usage** tab that shows how many credits its workflows use.

> [!WARNING]
>
> **Before you duplicate or delete a project:**
>
> * To duplicate a project with workflows that use [owner and admin features](#how-workspace-workflows-work), you need to be a workspace owner or admin.
> * To delete a project, you need to own it, or be a workspace owner or admin who is a collaborator on it.
> * When you delete a project, its workflows stop running and its collaborators lose access.
> * A deleted project goes to **Recently deleted** with your deleted apps. You can [restore it](https://docs.base44.com/documentation/using-your-workspaces/managing-your-workspace-apps.md#restoring-a-deleted-app) within 30 days if you own it or you're a workspace admin. Its workflows come back archived, so [restore the ones you need](#managing-a-workflow).

**To manage a project:**

1. Click **Workflows** in your workspace sidebar.
2. Click the project name above the workflow list, then choose the project.
3. Click the **Project settings** icon  at the top of the project, next to the collaborators.

   ![The project bar on the Workflows page, with the Project settings icon outlined next to the collaborators](https://mintcdn.com/base44/isc_QDyQ-HZhtVMl/images/workspace-workflows-project-settings.png?fit=max\&auto=format\&n=isc_QDyQ-HZhtVMl\&q=85\&s=28d580f7581668b9707d96632985f403)

   Opening a project's settings
4. Do one of the following:

> [accordion] Rename a project
>
> Rename a project when its name no longer fits the work in it.
>
> **To rename a project:**
>
> 1. Click the project name at the top of the project settings.
> 2. Enter a new name.
> 3. Press Enter or click outside the name to save it.

> [accordion] Duplicate a project
>
> Duplicate a project to start from workflows that already work, for example to set up the same workflows for another team.
>
> **To duplicate a project:**
>
> 1. Click **Duplicate project**.
>
> 2. Enter a name for the copy.
>
> 3. Click **Duplicate project**.
>
> > [!NOTE]
> >
> > **What a copy gets:**
> >
> > You own the copy, and the project's collaborators aren't copied. A copy gets the project's workflows, tables, and functions, but not the records in its tables, its integration connections, or its secret values. Every workflow in it starts inactive. Before you activate them:
> >
> > * Connect its integrations.
> > * Enter its secret values on the **Secrets** tab.
> > * Set its app access, or ask a workspace owner or admin to set it.

> [accordion] Delete a project
>
> Delete a project when you no longer need its workflows.
>
> **To delete a project:**
>
> 1. Click **Delete project**.
> 2. Click **Delete project** to confirm.
>    > [!NOTE]
>    >
>    > The confirmation lists what's deleted with the project.

***

## FAQs

Click a question below to learn more.

> [accordion] Why didn't my workflow run?
>
> Check these common causes:
>
> * The workflow is [turned off](#managing-a-workflow). Base44 also turns off a workflow that keeps failing.
> * Your workspace is out of [credits](#how-workspace-workflows-work).
> * The workflow ran too many times in a short period, so Base44 cancelled the extra runs.
> * Its steps act on an app that isn't in the project's [app access](#choosing-app-access).
> * It's a workspace rule, and [another rule of the same kind](#what-a-rule-checks) is already active.

> [accordion] What happens to a project if its owner leaves the workspace?
>
> The project moves to the workspace owner, and its workflows are turned off. The workspace owner can turn them back on.


## Related topics

- [Creating workflows for your app](https://docs.base44.com/Building-your-app/Creating-workflows.md)
- [Creating workspace templates](https://docs.base44.com/documentation/using-your-workspaces/creating-and-using-workspace-templates.md)
- [Managing a workspace](https://docs.base44.com/documentation/account-and-billing/managing-your-workspace-members.md)
- [Setting up workflows](https://docs.base44.com/superagents/setting-up-workflows.md)
- [Creating a Superagent](https://docs.base44.com/superagents/creating-a-superagent.md)


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