Flow is a dynamic workflow automation application, carefully integrated into your Nextcloud environment. Built upon the powerful Windmill engine, Flow adapts the robust capabilities of Windmill for a smooth experience within Nextcloud, providing teams and individuals with the ability to automate, streamline, and enhance their workflows like never before.
Note: Requires the
AppAPI
andwebhooks_listener
apps to be enabled to work properly.
Flow brings a wealth of features designed to improve productivity and collaboration, with a particular focus on user-friendliness and scalability:
- Create complex workflows with ease using a highly intuitive drag-and-drop interface. Whether you're automating document management, team notifications, or custom processes, Flow's visual workflow designer ensures anyone can build and modify workflows with minimal effort.
- Save time and resources by automating common repetitive tasks. With Flow, you can schedule tasks to run on specific conditions or set up trigger-based actions to run automatically, reducing manual interventions and enhancing efficiency.
- As a fully integrated part of Nextcloud, Flow works effortlessly alongside other applications in your Nextcloud environment. Automate tasks related to file management, collaboration, communication, and more—all within the same familiar platform.
- Flow leverages the robust backend of Windmill, an established workflow automation platform, powering its capabilities for scalability, efficiency, and reliability. Windmill’s foundation ensures that Flow inherits an array of advanced features while being customized for seamless use within Nextcloud.
- Keep track of the progress of your workflows in real-time with detailed analytics and dashboards. Monitor performance, track errors, and ensure that every task is executed smoothly without delays.
- Flow allows you to set up flexible schedules for tasks, trigger workflows based on specific events, and monitor their execution in real-time. With Flow’s built-in scheduler, you can execute workflows on demand, at predefined intervals, or when specific criteria are met.
Flow is designed to be easy to set up and use. Follow these steps to get started:
To install Flow, navigate to the Nextcloud App Store and search for Flow. Install the app and follow the instructions to complete the setup.
For users familiar with Windmill, Flow offers additional advanced features that enhance automation capabilities within Nextcloud:
- API Integrations: Connect Flow with external applications through API integrations, allowing for even more customization and control.
- Custom Scripting: Write custom scripts to add to workflows, giving you full control over your automation processes.
- Error Handling: Flow includes error detection and handling mechanisms that ensure smooth execution and notify you of any issues during workflow execution.
Note:
This is only supported starting from Nextcloud version
30.0.2
and Flow version1.1.0
Q: How can I control the number of Windmill workers?
A: You can set the NUM_WORKERS
environment variable. The default value is number_of_cpu_cores * 2
.
Q: I want to use an external PostgreSQL database instead of the bundled one in the container. Can I?
A: Yes, you can configure it by setting the EXTERNAL_DATABASE
environment variable in the following format:
postgres://DB_USER:DB_PASS@localhost:5432/DB_NAME
Note:
This method can also be used for enterprise or custom scaled Windmill setups.
Prerequisites:
- Nextcloud instance with
AppAPI
andwebhooks_listener
apps enabled. - Python 3.10 or higher installed on the server.
- Git installed on the server.
Follow these steps to manually deploy Flow without Docker:
-
Register the Deploy Daemon in AppAPI
First, register the Deploy Daemon in AppAPI with the
manual-install
type. Refer to the Nextcloud documentation for detailed instructions: AppAPI Manual Install -
Clone the Repository and Install Dependencies
Clone the Flow repository:
git clone https://github.com/nextcloud/flow.git
Navigate into the cloned directory, create a Python virtual environment, and install the required dependencies:
cd flow python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Install Windmill
Install Windmill by following the official instructions: Setup Windmill on Localhost
Note: Windmill should be in its default state, with the default user
admin@windmill.dev
and passwordchangeme
. If you have changed the administrator username/password, adjust theDEFAULT_USER_EMAIL
andDEFAULT_USER_PASSWORD
variables in theex_app/lib/main.py
file accordingly. -
Configure ExApp Environment Variables
Set the required ExApp environment variables (
NEXTCLOUD_URL
,APP_HOST
,APP_PORT
,APP_SECRET
) or modify them directly in the script at the top ofex_app/lib/main.py
. Refer to the Nextcloud documentation for more details: ExApp Configuration -
Set the
WINDMILL_URL
Environment VariableDefine the
WINDMILL_URL
environment variable or set it in the script. This variable specifies the location of the Windmill instance you deployed in step 3. -
Adjust Windmill Version (Optional)
Note: If you are using a non-standard version of Windmill from the ExApp, please adjust its version in the
Makefile
by editing the line under theinit
target:git -c advice.detachedHead=False clone -b v1.394.4 https://github.com/windmill-labs/windmill.git windmill_src
Replace
v1.394.4
with your desired Windmill version. -
Initialize Windmill Source and Build Frontend
Run the following commands from the cloned
flow
repository to clone Windmill into thewindmill_src
folder and build the frontend:make init make static_frontend
These commands will:
- Clone the Windmill source code into
windmill_src
. - Build the frontend assets and create the
static_frontend
folder, which will be served by ExApp as the Windmill frontend.
- Clone the Windmill source code into
-
Run the ExApp and Register with Nextcloud
Start the ExApp main script:
python ex_app/lib/main.py
In a new terminal window (while keeping the ExApp running), execute the registration command to register the ExApp with Nextcloud:
make register
This registers the ExApp in Nextcloud for operation without Docker.
-
Access Windmill in Nextcloud
Windmill should now appear within your Nextcloud instance, accessible via the Flow app.
We welcome contributions from the community! If you're interested in helping improve Flow, please feel free to submit a pull request or open an issue on our GitHub repository. We’re constantly working to improve the functionality and capabilities of Flow, and your feedback is invaluable.