Configure email-based process triggers to automatically start process instances when emails are received. Email Triggers connect to IMAP mail servers and monitor specific mailboxes to initiate workflows.
Email Trigger is a data source type that enables process instances to be automatically started when emails are received via IMAP, bringing event-driven automation to your email workflows.
For Microsoft Outlook mailboxes, you can also use the Microsoft Outlook data source which connects via the MS Graph API and supports both reading and sending emails in a single data source.
Email Trigger is a data source type in Integration Designer that allows FlowX.AI processes to be triggered automatically when emails arrive in a monitored mailbox. This enables use cases such as:
Customer support automation: Automatically create support tickets when emails arrive
Document processing: Trigger document workflows when emails with attachments are received
Request handling: Start approval processes based on incoming email requests
Notification workflows: Process automated alerts from monitoring systems
The Email Trigger system follows a straightforward flow:
1
Configure Email Connection
Set up an IMAP connection to your email server as a Data Source in Integration Designer.
2
Link to Message Start Event (Start Catch Message)
Connect the Email Trigger to a Message Start Event node in your process definition.
3
Activate the Trigger
Turn on monitoring from the Manage Triggers section in Runtime Settings.
4
Process Incoming Emails
When emails arrive, FlowX.AI automatically creates process instances with the email data.
Email Triggers process only new emailsAn Email Trigger only processes emails that arrive after the trigger is activated for the first time. Existing emails in the mailbox — whether read or unread — are never picked up retroactively.This applies to reactivation as well: if you deactivate and then reactivate a trigger, only emails that arrive after the reactivation are processed. Anything that landed in the mailbox during the inactive period is ignored.For IMAP triggers, the email must also still be unread in the monitored folder when the trigger picks it up.
Click the Test Connection button to verify your settings:
Result
Message
Action
✅ Success
”Established connection”
Proceed to save
❌ Error
”Failed to establish connection”
Check credentials and server settings
When you click Create, another authentication test is performed. If the test fails, you’ll be redirected to the Authorization tab with an error message, but the Email Trigger will still be created.
Start Process for — which incoming emails should create a process instance.
Save email attachments on process — which attachments are forwarded into the process data.
If a trigger condition fails, the email is rejected and appears in the Failed Triggers section. If an attachment is filtered out by the forwarding mode, it is dropped silently and no Failed Trigger is recorded.
Start the process if at least one attachment matches the selected file types. The Allowed File Types multiselect activates. Emails without a matching attachment are rejected with cause No matching file types.Allowed types use the categories below.
Save only attachments that match the selected file types. The Forward File Types multiselect activates. Non-matching attachments are dropped silently (no Failed Trigger entry).
Maximum number of attachments allowed per email. If exceeded, the email is rejected at the trigger level and appears in Failed Triggers with cause File count exceeded.Leave empty for no limit.
Maximum allowed size per attachment file, in megabytes. Applies across all forwarding strategies.Maximum allowed value: 25 MBLeave empty to apply no per-file size limit beyond the 25 MB hard cap.
Triggers migrated from an earlier deploymentWhen a deployment is upgraded, existing triggers are set to All incoming emails + All attachments. The Allowed File Types value is preserved on the trigger but no longer filters anything until you switch the trigger condition or forwarding mode to one of the file-type options. Reopen each trigger after the upgrade to confirm the new settings match your intent.
All fields in the Settings section accept configuration parameters, enabling environment-specific configurations.
The Email Trigger polls for new emails every 30 seconds by default. This interval can be configured at the environment level but is not user-configurable in the UI.
Uploaded to the Document Plugin as temporary files
Copied to permanent storage linked to the process instance
Referenced in the fileAttachments array with download paths
Attachment processing happens asynchronously. The file copy to permanent storage may complete after the process instance starts. If your process needs to access attachments immediately, consider adding a wait step. Upload retries on InterruptedException only — up to 3 attempts with exponential backoff totaling roughly 7 seconds. Other failures (network, document plugin errors) fail fast.
The inbound fileAttachments[] shape (filePath, downloadPath) differs from the outbound shape expected by the Send Notification action’s Attachments field (path, filename).To forward original attachments on a reply, transform emailMessage.fileAttachments into the Send Notification shape — typically in a Script node — and pass the result through a process variable:
For an Email Trigger to appear in Manage Triggers:
✅ Email Trigger must be created as a Data Source
✅ Email Trigger must be added to a Message Start Event node
✅ The process must be part of a build in the Active Policy
When the Active Policy changes, Email Triggers retain their previous state (Active/Inactive). If an Email Trigger is deleted from the latest build, it will be automatically deactivated.
All Email Trigger configuration changes and runtime actions (activation, deactivation, trigger events) are recorded in the audit trail for compliance and debugging purposes.
Navigate to your process definition and click Start Process. If the process has a Message Start Event configured with an Email Trigger, the dialog displays a mock email form instead of the standard start parameters.
2
Fill in the mock email fields
Complete the form fields to simulate an incoming email:
Field
Description
Subject
The email subject line
Sender
The sender email address
Datetime
When the email was “received” (defaults to the current date and time)
Body
The email body content
Upload files
Attach files to simulate email attachments. Accepted types: PDF, DOCUMENT (.doc, .docx, .txt), IMAGE (.png, .jpg, .jpeg, .tif, .tiff, .gif), EXCEL (.xls, .xlsx, .csv), ZIP (.zip), up to 25 MB
Theme
Select the theme to use for the process instance
3
Start the process
Click Start Process to create a process instance using the mock email data, just as if a real email had been received.
Use mock testing to validate your process handles edge cases — emails without attachments, emails with multiple Reply-To addresses, or emails with large body content.
Message: “The file {filename} could not be uploaded because it is not on the list of permitted file types.”Resolution: Update the Allowed File Types in the Email Trigger settings, or ask the sender to use an accepted format.
Message: “{filename} is too large. Maximum allowed: 25 MB”Resolution: The attachment exceeds the maximum file size limit. Ask the sender to reduce the file size or split into multiple emails.
Message: “File limit exceeded. For this Email Trigger there is a limit of {limit} files per email.”Resolution: The email contains more attachments than the trigger-level Maximum File Count. Ask the sender to split attachments across multiple emails, or raise the limit on the trigger.
Message: “Email rejected: trigger requires emails with attachments, but none were found.”Resolution: The trigger is configured to Start Process for → Only emails with attachments, but the incoming email had none. Ask the sender to include an attachment, or switch the trigger condition to All incoming emails.
Message: “Email rejected: no attachments matching the allowed file types {types} were found.”Resolution: The trigger is configured to Start Process for → Only emails with these attachment file types, and none of the inbound attachments matched the Allowed File Types list. Ask the sender to use an accepted format or widen the allowed list.
Message: “We couldn’t connect to your email server. This might be due to:
Incorrect server settings
No internet connection
Firewall blocking the connection
Please check your connection and try again.”Resolution: Verify the IMAP server settings in the Email Trigger Authorization tab and test the connection.
Store server credentials and environment-specific settings in configuration parameters for easy management across environments.
Set appropriate validations
Configure file type, size, and count limits to prevent processing of unwanted or malicious content.
Monitor failed triggers
Regularly review the Failed Triggers section to identify issues with email processing.
Handle attachments asynchronously
Remember that attachment processing is asynchronous. Design your process to handle potential delays in file availability.
Security Note: Email attachments are uploaded without virus scanning in the current implementation. Consider implementing additional security measures for sensitive environments.