What are Email Triggers?
Email triggers turn your workflows into email-based automation services. When you set up an email trigger, Pinkfish generates a unique email address for your workflow. Any email sent to that address will automatically start your workflow, with the email content, attachments, and sender information passed as inputs. This enables you to create email-driven automations like:- Report Generation Services: Email a request and get back formatted reports
- Document Processing: Send files via email for automated analysis or conversion
- Customer Support Automation: Route and process support requests automatically
- Data Collection: Gather information through structured email submissions
Setting Up an Email Trigger
1. Access the Trigger Menu
From your workflow editor, navigate to the triggers section and select “New Email Trigger.”2. Configure Your Email Trigger
When creating an email trigger, you’ll see several configuration options: Name: Give your trigger a descriptive name for easy identification (e.g., “Email 1”, “Report Generator”, etc.) Access Control: Choose who can trigger your workflow via email:- Anyone can send an email to trigger this automation: Open access - any email address can trigger your workflow
- Only approved senders send an email to trigger this automation: Restricted access - only pre-approved email addresses can trigger your workflow
- Individual Email Addresses: Add specific email addresses that are allowed to trigger the workflow
- Approved Domains: Allow entire domains (e.g., @yourcompany.com) to trigger the workflow
- Latest: Always runs the most recent published version (recommended)
- Specific Version: Lock the trigger to a particular workflow version
3. Save and Get Your Email Address
After clicking “Save,” Pinkfish will generate a unique email address for your workflow. This address will look something like:How Email Triggers Work
Email Input Structure
When an email triggers your workflow, the following data is automatically passed as inputs:body
: The plain text body of the emailhtmlBody
: The HTML body of the email (if available)subject
: The email subject linefrom
: The sender’s email addressfromObj
: Detailed sender information including name and emailto
: The trigger email address that received the messagetoList
: List of all recipients (useful for CC/BCC scenarios)attachments
: Array of file attachments with metadatathreadingHeaders
: Email threading information for conversation trackingtriggerEmail
: The specific trigger email address usedtriggerField
: Additional trigger metadata
Attachment Handling
Email attachments are automatically processed and made available to your workflow:- File Content: Attachments are stored and accessible via secure URLs
- Metadata: Each attachment includes filename, content type, size, and other properties
- Multiple Formats: Support for documents, images, PDFs, and other file types
Monitoring Email Triggers
Workflow Monitor
Track all email-triggered workflow runs in the Orchestration → Workflow Monitor:- Navigate to the Workflow Monitor from the main navigation
- Filter by your specific workflow to see email-triggered runs
- View run status, duration, and results
- Access detailed logs and execution information
Viewing Email Inputs
To inspect the data sent via email trigger:- In the Workflow Editor: Click the lightning bolt (⚡) icon on the right side of the interface
- Select “Triggered Runs”: This shows runs initiated by triggers (not manual runs)
- Choose a Run: Select the specific email-triggered run you want to examine
- View Inputs: Click “View Inputs” to see all the email data including:

- Email body and subject
- Sender information
- Attachments and their metadata
- All other email-related fields

- Debugging: Understanding what data your workflow receives
- Development: Testing different email formats and attachments
- Optimization: Refining how your workflow processes email inputs
Best Practices
Security Considerations
- Use Approved Senders: For sensitive workflows, always restrict access to approved senders or domains
- Validate Input: Always validate and sanitize email content in your workflow
- Monitor Usage: Regularly check your workflow monitor for unexpected activity