Skip to content
🎉 Bem-vindo! Sinfonia by 27Devs é uma plataforma completa de orquestração de robôs, solicite já seu acesso.
Files and Folders

Files and Folders

Use the files and folders trigger (Watcher) when a bot must react to a file arriving or changing, for example processing every PDF saved to an inbox folder. The watcher runs on the selected agent: it monitors the configured path and triggers the bot whenever it detects a change, such as a file being created or modified.

Files/Folders Watcher

Registered Watchers

The watchers screen lists every configured monitor.

Watchers Screen

ColumnDescription
BotBot executed when the watcher fires.
VersionBot version specified for execution.
ModeExecution mode (headless, parallel, headed).
AgentAgent responsible for monitoring.
PathPath of the monitored folder or file.
StatusWhether monitoring is active or inactive.
ActionsIcons to edit or remove the watcher.

New Watcher

To configure this type of Files/Folders Watcher trigger, follow the steps below:

  1. Navigate to https://sinfonia.live/watchers and select the option for New Watcher.
  2. Choose between the 2 types of triggers Folder or File.

Watcher Types

There are two types of configurations for the Watcher:

  • Folder: Configuration for monitoring files in a specific folder.
  • File: Configuration for individual file monitoring.

Folder

The Folder type is used to monitor all files with a specific extension within a folder. Whenever a file with the defined extension is created or modified, the configured bot will be triggered.

Watcher Trigger Folder

FieldDescriptionNotes
BotBot that will be executed when the trigger is fired.Must be previously created and available on the platform for selection.
VersionSpecific version of the bot to be used.Accepts X.Y.Z (example: 1.0.0) or release, which always uses the latest available version.
LabelOptional identifier for the trigger.Can be used for organization or filtering.
AgentDefines the agent responsible for bot execution.The agent must be active and connected. Multiple agents can be selected, avoiding execution bottlenecks.
Parameters (JSON)Additional parameters sent to the bot, in JSON format.Reach the code as environment variables. Example: {"arg1": "1366", "arg2": "768"}
DescriptionFree text describing the trigger’s purpose.Makes it easier to identify on listing screens.

Extension

  • Description: Defines the type of file that will be monitored (extension).
  • Available values: pdf, txt, docx.

Recursive

  • Description: Indicates whether monitoring will be performed recursively in subfolders.
  • Available values: true or false.

Folder path

  • Description: Defines the directory to be monitored.
  • Example: C:\Users\@user\Downloads\

File

The File type is used to monitor a specific file. Whenever this file is created or modified, the configured bot will be triggered.

Watcher Trigger File

FieldDescriptionNotes
BotBot that will be executed when the trigger is fired.Must be previously created and available on the platform for selection.
VersionSpecific version of the bot to be used.Accepts X.Y.Z (example: 1.0.0) or release, which always uses the latest available version.
LabelOptional identifier for the trigger.Can be used for organization or filtering.
AgentDefines the agent responsible for bot execution.The agent must be active and connected. Multiple agents can be selected, avoiding execution bottlenecks.
Parameters (JSON)Additional parameters sent to the bot, in JSON format.Reach the code as environment variables. Example: {"arg1": "1366", "arg2": "768"}
DescriptionFree text describing the trigger’s purpose.Makes it easier to identify on listing screens.

File path

  • Description: Defines the specific file to be monitored.
  • Example: C:\Users\@user\Downloads\file.txt
  • Supported file types: xls, xlsx, xlsm, txt.

Edit Watcher

To edit an existing watcher, click the edit icon in the Actions column. The fields are the same as in creation, described in New Watcher.

Remove Watcher

To remove a watcher, click the trash icon in the Actions column.

Tip

A confirmation modal will be requested.

Last updated on