Skip to content

Commit

Permalink
Merge pull request #12268 from nextcloud/fix/windmill-docs
Browse files Browse the repository at this point in the history
fix(admin/windmill): Some minor additions
  • Loading branch information
marcelklehr authored Oct 8, 2024
2 parents 7288e78 + 5c65817 commit 9a12986
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion admin_manual/windmill_workflows/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Installation

* Install Windmill

* Either as a standalone install or via the Windmill External App in Nextcloud (see :ref:`External Apps<ai-app_api>`)
* Either as a standalone install or via the External App "Flow" in Nextcloud (see :ref:`External Apps<ai-app_api>`)

* Enable the ``webhook_listeners`` app that comes with Nextcloud

Expand Down Expand Up @@ -41,6 +41,13 @@ The magic listener script

The first script (after the "Input" block) in any workflow you build that should listen to a Nextcloud webhook must be ``CORE:LISTEN_TO_EVENT``. It must be an empty script with two parameters that you should fill statically: ``events``, which is a list of event IDs to listen to and ``filters`` a filter condition that allows more fine grained filtering for which events should be used. The filter condition as well as the available events with their payloads is documented in :ref:`the webhook_listeners documentation<webhook_listeners>`.

You can copy the following Deno script for this:

.. code-block:: typescript
export async function main(events: string[], filters: object) { }
Nextcloud Scripts
-----------------

Expand Down

0 comments on commit 9a12986

Please sign in to comment.