Event Trigger Tasks
Event trigger tasks are being built and will be ready soon. This page explains what’s coming.
Event trigger tasks simplify your work by automatically starting tasks when something happens, like a new order, an email, or a file upload. It’s like having a smart assistant that jumps into action the moment something important occurs, saving you time and effort.
What They Do
Event triggers will help you:
- Act Fast: Start tasks right when events happen, like a new sale.
- Connect Systems: Link with tools like email, websites, or databases.
- Focus on What Matters: Only act on important events, like urgent messages.
- Use Event Info: Grab details, like a customer’s name, for your tasks.
- Handle Lots of Events: Keep things running smoothly even with tons of activity.
Types of Events
Web Requests
Catch messages from other websites or apps, like when someone buys something online.
-
Example: When a customer places an order, the system grabs the order number to process it.
{
"type": "web_request",
"url": "/new-order",
"condition": { "order.status": "confirmed" },
"data": { "order_id": "$.order.id" }
}
Uses: Handle online sales, process payments, or create support tickets.
Emails
Watch for specific emails in an inbox, like customer questions.
-
Example: Spot emails with “Urgent” in the subject and start a task to respond quickly.
{
"type": "email",
"inbox": "support@company.com",
"condition": { "subject": "Urgent" },
"data": { "sender": "$.from" }
}
Uses: Speed up customer support or process orders sent via email.
File Uploads
Notice when new files, like PDFs, appear in a folder.
-
Example: When a new invoice is uploaded, the system starts a task to review it.
{
"type": "file_upload",
"folder": "/invoices/",
"file_type": "*.pdf",
"data": { "file_path": "$.filePath" }
}
Uses: Organize documents or import data from files.
Database Changes
React when information in a database changes, like a new order being added.
-
Example: When a new order needs approval, the system starts an approval task.
{
"type": "database",
"table": "orders",
"action": "new_record",
"condition": { "status": "needs_approval" }
}
Uses: Approve orders, update records, or track data changes.
Website Updates
Check websites for changes, like new data on a partner’s site.
-
Example: Every 5 minutes, check a supplier’s website for new stock and update your records.
{
"type": "website_check",
"url": "https://api.example.com/orders",
"check_every": "5 minutes"
}
Uses: Keep data in sync or monitor inventory.
Planned Features
Picking the Right Events
Choose which events to act on to save time:
- Set Rules: Only act on big orders, like those over $100.
- Match Patterns: Focus on files named “invoice” or emails with specific words.
- Time Limits: Handle events only during work hours, like 9 AM to 5 PM.
Using Event Details
Pull out key information for your tasks:
- Grab Data: Take details like a customer’s email or order total.
- Tweak Data: Change formats, like making dates easier to read, or set priorities, like marking big orders as “urgent.”
- Add Backups: Use default values if information is missing, like a standard priority.
Handling Problems
Keep tasks running smoothly even if issues pop up:
- Try Again: Retry failed tasks up to 3 times with a short wait.
- Check Data: Make sure details, like email addresses, are correct before starting.
- Get Alerts: Get notified if a task keeps failing so you can fix it.
Example Uses
Here’s how event triggers can help:
- Online Stores: Process new orders from a store like Shopify as soon as they come in.
- Customer Support: Quickly handle urgent emails from customers.
- File Management: Sort and process new data files, like sales reports.
Tips for Success
To make event triggers work great:
- Be Choosy: Act only on the most important events to save time.
- Plan for Repeats: Ensure tasks don’t mess up if the same event happens twice.
- Track Performance: Watch how many events happen and how fast they’re handled.
- Stay Safe: Check incoming events to avoid problems.
Release Plan
Event triggers will roll out in three steps:
- Step 1: Handle web requests with basic rules and data use.
- Step 2: Add email and file triggers with better problem handling.
- Step 3: Include database and website checks with detailed tracking.
Next Steps
While you wait, check out:
