Event-Based Automation Engine
Elementum’s Automation System is an event-driven framework that responds to activities within your system. Automations monitor system events and execute predefined actions when specific conditions are met. The system operates on a trigger-based model where events in your workflow automatically initiate response sequences without manual intervention.How Event-Based Automation Works
The Listen-Think-Act Framework
Every automation follows this pattern:- Listen (Triggers) - Monitor for specific events happening in your system
- Think (Conditions & AI) - Evaluate the event and determine what should happen
- Act (Actions) - Execute the appropriate response automatically
Example: Customer Support Workflow
Manual Process:- Customer emails support → Email sits in inbox → Agent reads email → Agent searches for customer → Agent creates ticket → Agent assigns ticket → Agent sends confirmation
- Customer emails support → Email Received trigger fires → AI analyzes email content → Search Records finds customer → Create Record generates ticket → AI Classification determines priority → Make Assignment routes to appropriate agent → Send Email Notification confirms receipt
Understanding Events
Events represent activities within your system. Every interaction, data change, or scheduled occurrence can trigger an automation.Event Categories
Record Events- Record is Created: New data enters your system
- Record is Updated: Existing data changes
- Approval Process Status Updated: Approval workflows advance
- Attachment is Added: Files uploaded to records
- Comment Added: Team members communicate on records
- Data Mine: Scheduled data collection from external sources
- Email Received: Incoming emails that need processing
- Time-Based: Scheduled executions (daily, weekly, monthly)
- Survey: Responses submitted through forms
- On-Demand Trigger: Custom triggers with inputs/outputs for complex workflows
- Agent Conversation Ended: AI agent interactions complete with context
Event-Driven Design Patterns
Example: Invoice Processing- Traditional: “I need to process invoices daily”
- Event-driven: “When an invoice attachment is added to a vendor record, extract the data, validate it, and route for approval”
- Traditional: “I need to onboard new customers”
- Event-driven: “When a new customer record is created, generate welcome materials, create project records, and assign account managers”
AI Integration in Automations
AI actions process information and make decisions within your automation workflows. These actions receive specific data through variables and produce structured outputs.AI Actions Available
AI Classification Categorizes unstructured data into predefined groups.Using Variables with AI
Variables control what information AI receives:For detailed information on all available actions, see the Automation Actions Reference. For complete trigger details and configuration examples, see the Automation Triggers Reference.
Building Your First Automation
Step 1: Choose Your Event (Trigger)
Selected Trigger: Email Received Purpose: Captures customer support requestsStep 2: Add AI Actions
AI Classification: Analyze the email content- Input: Email content (from Email Received trigger)
- Output: Category (Bug, Feature Request, General Support)
- Variable:
email_category
- Input: Email content (from Email Received trigger)
- Output: Brief summary of customer issue
- Variable:
issue_summary
Step 3: Add Response Actions
Search Records: Find existing customer- Input: Email address (from Email Received trigger)
- Output: Customer record
- Variable:
customer_record
- Input: Customer record, email category, issue summary
- Output: New ticket record
- Variable:
support_ticket
- Input: Email category (determines team assignment)
- Output: Assigned team member
- Variable:
assigned_agent
- Input: Support ticket number, assigned agent, issue summary
- Output: Confirmation email to customer
Step 4: The Complete Flow
Automation Patterns
Decision Tree Pattern
Use conditions to create branching logic:Data Processing Pipeline
Chain multiple AI actions for complex data transformation:Approval Workflow
Combine AI with human decision-making:Implementation Examples
1. Document Processing Automation
Setup: Process incoming invoices automatically Trigger: Attachment is Added (invoice PDF) AI Integration: AI File Analysis extracts vendor, amount, due date Actions: Create Record, Start Approval Process, Send Email Notification2. Customer Onboarding Automation
Setup: Welcome new customers and set up accounts Trigger: Record is Created (new customer) AI Integration: AI Classification determines customer type and needs Actions: Generate Reports, Send Email Notification, Create Record (project setup)3. Sales Lead Processing
Setup: Qualify and route sales leads Trigger: Record is Created (lead form submission) AI Integration: AI Classification analyzes lead quality and fit Actions: Update Record Fields, Make Assignment, Send Email Notification4. Project Status Monitoring
Setup: Track project progress and alert stakeholders Trigger: Record is Updated (project status change) AI Integration: AI Summarization creates status updates Actions: Generate Report, Send Message to Teams, Send Email NotificationVariables: Data Flow Management
Variables carry information between automation actions. They connect outputs from one action to inputs of another.Variable Types
Trigger Variables: Data from the initiating eventtrigger.record_id
- ID of the record that triggered the eventtrigger.user_email
- Email of the user who caused the eventtrigger.timestamp
- When the event occurred
search_result.customer_name
- Customer name from Search Recordsai_classification.category
- Category from AI Classificationnew_record.record_id
- ID of newly created record
Variable Management
Naming Convention: Use descriptive names likecustomer_priority_level
instead of priority
Chaining: Use outputs from one action as inputs to the next
Validation: Use IF conditions to check variable values before using them
Logic Actions
IF Conditions
Create decision points in your automation: Basic IF:Repeat for Each
Process multiple items systematically: Example: Processing Multiple OrdersCommunication Actions
Send Email Notification
Sends emails to up to 25 recipients with rich content support. Features:- Multiple recipients
- HTML formatting
- Variable insertion
- Attachment support
- Professional templates
- Customer confirmations
- Team notifications
- Executive summaries
- Alert escalations
Send Message to Teams
Integrates with Microsoft Teams for team communication. Example:Post Comment
Documents process steps and decisions on records. Example:File Actions
Read File
Extracts information from uploaded documents. Supported Formats: PDF, DOC, DOCX, TXT, CSV, Excel Output: Structured text data for further processingAI File Analysis
Processes document content intelligently. Contract Analysis: Extract parties, dates, terms, obligations Invoice Processing: Extract vendor, amount, line items, due dates Resume Screening: Extract skills, experience, education Report Analysis: Extract key metrics, trends, insightsUnzip File
Processes multiple files uploaded in archives. Use Case: Process monthly reports uploaded as ZIP filesData Actions
Run Calculation
Performs mathematical operations automatically. Examples:- Calculate shipping costs
- Determine discounts
- Compute taxes
- Analyze metrics
Set Variable
Stores calculated values for later use. Example:Transform Data with AI
Cleans, normalizes, and enhances data using AI. Address Standardization: “123 main st” → “123 Main Street” Phone Formatting: “5551234567” → “(555) 123-4567” Company Name Matching: “Microsoft Corp” → “Microsoft Corporation”External Integration
Send API Request
Connects with external systems and services. Examples:- Check inventory levels
- Validate addresses
- Process payments
- Update CRM systems
Run Function
Executes custom business logic when built-in actions aren’t sufficient. Use Cases:- Complex calculations
- Custom integrations
- Specialized processing
- Advanced analytics
Monitoring and Debugging
Automation History
Track execution details:- Execution Status: Success or failure
- Timestamp: When the automation ran
- Actions Executed: Steps completed
- Variables Used: Data passed between actions
- Error Messages: Detailed failure information
Debugging Strategies
Use Post Comment: Add comments to track progress Check Variable Values: Verify data flows correctly Test Conditions: Ensure IF statements work as expected Monitor Performance: Track execution times Access automation history through the main interface or App Health.Best Practices
1. Event-Driven Design
Design automations around events rather than tasks:- Think: “What event should trigger this process?”
- Not: “What tasks do I need to automate?“
2. Strategic AI Usage
Use AI actions for:- Information categorization
- Content analysis
- Decision-making based on data
- Transforming unstructured data
3. Maintainable Automation
Clear Names: Use descriptive automation names Document Logic: Add comments for complex conditions Test Thoroughly: Verify all automation paths4. Performance Optimization
Consolidate Similar Automations: Combine related triggers Use Specific Search Criteria: Avoid broad searches Minimize Nested Loops: Avoid complex nested structures5. Error Handling
Validate Data: Check that variables contain expected values Plan for Failures: Handle external API failures Test with Real Data: Use actual business data for testingCommon Patterns
Customer Journey Automation
Create connected automations for complete customer processes:Approval Workflow
Combine AI decision-making with human approval:Data Pipeline
Chain multiple data processing steps:Alert System
Monitor conditions and escalate appropriately:Troubleshooting
Automation Not Triggering
Check:- Automation is published (not draft)
- Testing with correct event type
- Record/data meets trigger conditions
Empty Variables
Check:- Correct variable names being used
- Previous action completed successfully
- Accessing correct variable structure level
AI Actions Not Working
Check:- Input data is in expected format
- Sufficient context provided
- AI action receiving correct variables
Performance Issues
Check:- Search scope is appropriate
- Number of separate automations
- Data processing efficiency
Advanced Implementation
Automation Chaining
Create automations that trigger other automations for complex workflows.Dynamic Variable Creation
Use Set Variable to create data structures that evolve throughout your automation.Conditional Logic Trees
Build complex decision trees using nested IF conditions for sophisticated business logic.Integration Patterns
Connect multiple external systems through single automation workflows.For complete action details and examples, see the Automation Actions Reference. For trigger configuration and use cases, see the Automation Triggers Reference.