Chuyển tới nội dung chính

About Triggers

Triggers enable you to execute workflows automatically in response to specific events on your machine, such as file system changes, hotkey presses, or incoming emails. This allows you to orchestrate and automate execution without manual intervention.

The Event Trigger system consists of two primary components:

  • Event Trigger Manager - The desktop user interface used to create, edit, enable, disable, and delete triggers.
  • Event Trigger Server - The background process that monitors configured events and dispatches the associated workflow when conditions are met.

Typical use cases:

  • Executing an invoice-processing workflow when a new file is saved to a shared directory.
  • Launching a data-entry workflow when a specific hotkey combination is pressed.
  • Processing incoming emails that match specified criteria automatically.
  • Reacting when a specific application window opens or closes.
  • Starting recovery workflows when a Windows service stops unexpectedly.

Launching Event Trigger Manager

The Event Trigger Manager can be launched either from akaBot Studio or directly from the Windows Start Menu. The application executable is located at:

C:\Program Files\FPT Software\akaBot Platform\EventTriggerManager.exe

When started, the Event Trigger Manager automatically loads existing trigger configurations from the local settings file, triggerSettings.json, which is stored in:

%LOCALAPPDATA%\akaBot\


User Interface Overview

The main application window, Desktop Trigger Manager, is divided into two main areas: the Ribbon Toolbar at the top and the Trigger List panel below.

Desktop Trigger Manager Main Window

Ribbon Toolbar

The ribbon toolbar groups actions on the Home tab:

GroupControlDescription
New TriggerDrop-down MenuLists available trigger types (File, Folder, Hotkey, Email, Process, Service, Window, Interface). Select a type to launch the trigger creation wizard.
ManageEdit, Enable, Disable, DeletePerforms actions on the currently selected trigger in the list.
ServerRefreshSyncs the current configurations with the Event Trigger background server to apply changes immediately.
ActionLocal Mode ToggleToggles execution between Local Mode and Center Mode.
LanguageDrop-down MenuSets the application display language (English, Japanese, Simplified Chinese).

Trigger List

The main data grid displays all configured triggers:

ColumnDescription
EnabledA toggle switch to active or deactivate the trigger without deleting its settings.
NameThe unique identifier assigned to the trigger.
TypeThe category of event being monitored (e.g., File, Hotkey).
DescriptionUser-defined details about the trigger purpose.

Double-clicking any row (or selecting a row and clicking Edit Trigger) opens the trigger settings wizard.


Managing Triggers

Creating a Trigger

  1. Click the New Trigger drop-down menu in the ribbon.
  2. Select the desired trigger type.
  3. In the Trigger Wizard, configure settings across the three tabs: Basic Info, Detail, and Action.

Step 1: Basic Info

Trigger Wizard - Basic Info Tab

FieldRequiredDescription
Trigger NameYesA unique identifier for the trigger (maximum 50 characters).
Trigger DescriptionNoOptional details about the trigger (maximum 250 characters).

Step 2: Trigger Detail

Configure the specific conditions for the selected event type. For detailed property descriptions, see Trigger Types.

Trigger Wizard - File Trigger Details Example

Step 3: Action

Define the operation performed when the trigger conditions are met.

Trigger Wizard - Action Tab

FieldRequiredDescription
Action TypeYesSelect Workflow to run an akaBot process, or None to register the event without executing a process.
WorkflowYes (if Action Type is Workflow)Select the published workflow to execute from the list of available processes.
Workflow ArgumentsNoPass custom variables or system-generated parameters to the workflow at runtime (see Using Workflow Arguments).

Click OK to save the configuration and register the trigger.

Editing a Trigger

  1. Select the target trigger from the list.
  2. Click Edit Trigger in the ribbon or double-click the row.
  3. Modify the properties in the Trigger Wizard and click OK to save changes.

Enabling and Disabling Triggers

You can change the active state of a trigger in two ways:

  • Use the toggle in the Enabled column of the grid.
  • Select the trigger and click Enable Trigger or Disable Trigger in the ribbon.

Note: Disabling a trigger retains its configuration but suspends the background server from monitoring the associated events.

Deleting a Trigger

  1. Select the trigger from the list.
  2. Click Delete Trigger in the ribbon.
  3. Confirm deletion in the confirmation dialog.

Caution: Trigger deletion is permanent and cannot be undone.


Refreshing the Trigger Server

The background server automatically refreshes its configuration when triggers are created, edited, enabled, disabled, or deleted.

If you suspect the background service is out of sync, click Refresh in the Server group of the ribbon to manually restart the service with the latest settings.


Local Mode vs Center Mode

The execution target of the triggered workflow is controlled by the Local Mode toggle in the ribbon.

Local Mode Toggle Dialog

ModeDescription
Center Mode (Toggle Off)Dispatches execution jobs to akaBot Center, which assigns them to an available robot. This is the default mode when connected to a server.
Local Mode (Toggle On)Runs the workflow directly on the local machine without routing through akaBot Center.

Note: If the robot agent is disconnected from akaBot Center, Local Mode is enabled automatically, and the toggle is disabled.


Trigger History

To review execution history, edit the trigger and select the History tab in the wizard. The grid lists every instance the trigger was fired. Selecting a row displays detailed logs in the Details pane.


Trigger Types

File Trigger

Monitors file events in a specified directory.

FieldRequiredDescription
Monitoring FolderYesThe directory path to monitor. Use the ellipsis (...) button to browse.
Include SubfoldersNoEnables monitoring of all child directories within the target folder.
EventYesThe file operations to monitor (Created, Changed, Deleted, Renamed). At least one must be selected.
File FilterYesA wild card pattern to filter target files (e.g., *.xlsx, *.pdf, invoice_*.*).

Folder Trigger

Monitors directory-level changes within a specified parent folder.

FieldRequiredDescription
Monitoring FolderYesThe directory path to monitor.
Include SubfoldersNoEnables monitoring of nested child directories.
EventYesThe directory operations to monitor (Created, Changed, Deleted, Renamed).

Hotkey Trigger

Fires when a designated keyboard shortcut is pressed.

FieldRequiredDescription
ModifierNoKeyboard modifiers to combine with the trigger key (Alt, Ctrl, Shift, Win).
KeyYesThe primary key from the drop-down list.

Email Trigger

Fires when a new email matching configured rules arrives in the monitored inbox.

FieldRequiredDescription
Email ProtocolYesSelect IMAP or POP3.
HostYesThe address of the mail server (e.g., imap.gmail.com).
PortYesThe port number (e.g., 993 for SSL/TLS IMAP).
Use SSLNoEnables secure connection protocols.
CredentialYesThe stored username and password profile for the mail account.
IntervalYesThe polling frequency in seconds.
Mail FolderNoThe specific folder to monitor (defaults to INBOX).
FromNoFilters emails by sender email address.
Subject ContainsNoFilters emails by a string match in the subject line.
AttachmentNoFilters based on attachment status (Both, With Attachment, or Without Attachment).

Process Trigger

Monitors the state of specific Windows processes.

FieldRequiredDescription
File PathNoThe absolute file path to the executable file.
Process NameYesThe name of the process (supports regular expressions).
On StartNoTriggers when the process launches.
On StopNoTriggers when the process terminates.

Service Trigger

Monitors state transitions of Windows background services.

FieldRequiredDescription
Service NameYesThe name of the Windows service (supports regular expressions).
On StartNoTriggers when the service state changes to Started.
On StopNoTriggers when the service state changes to Stopped.
On PauseNoTriggers when the service state changes to Paused.
On ResumeNoTriggers when the service resumes from a paused state.

Window Trigger

Fires based on window events for desktop applications.

FieldRequiredDescription
File PathNoThe absolute path to the application executable.
Window TitleYesThe title string of the target window (supports wildcard characters).
On OpenNoTriggers when the target window opens.
On CloseNoTriggers when the target window closes.

Interface Trigger

Monitors user interactions with specific UI elements.

FieldRequiredDescription
Pick ElementYesLaunches the element selector overlay. Hover and click to capture the target control. Press Escape to exit.
SelectorYesThe generated XML selector string uniquely identifying the UI element. Can be edited manually.
EventYesThe UI event to monitor (Click, Selection Changed, Got Focus, Lost Focus).
ModifierNoOptional modifier keys required to fire the event.

Using Workflow Arguments

When configuring a workflow action, you can pass parameters from the trigger event to the workflow variables. Click New under the Arguments table to add a parameter mapping.

The following system-defined variables are supported:

VariableDescription
${TriggerOutput}Returns the output payload of the event (e.g., the file path for File triggers, directory path for Folder triggers, or the email object for Email triggers).
${TriggerType}Returns the category identifier of the trigger (e.g., File, Hotkey, Email).