18 min
Lesson 3 of 4
Advanced Patterns: Routers, Iterators & Error Handling
From the course Make.com AI Automation
To build production-ready AI automations, you need to master Make's advanced features: routers for branching logic, iterators for batch processing, and robust error handling.
Routers: Intelligent Branching
Routers split your workflow into multiple paths based on conditions. Combined with AI, this creates intelligent automation:
- AI classifies incoming data
- Router checks the classification
- Different paths handle each category
Example: Customer feedback automation
- Path 1 (Positive): Add to testimonials database, send thank-you email
- Path 2 (Negative): Create support ticket, alert manager
- Path 3 (Feature Request): Add to product backlog, send acknowledgment
Iterators: Batch AI Processing
Iterators let you process arrays of items one by one through AI:
- Fetch 50 product descriptions from your database
- Iterator splits them into individual items
- AI module rewrites each description for SEO
- Aggregator collects all results
- Bulk update your database
Important: Each iteration counts as a separate operation. Plan your quotas accordingly.
Error Handling
AI APIs can fail (rate limits, timeouts, invalid responses). Make provides several error handling strategies:
- Retry: Automatically retry failed modules (great for rate limits)
- Break: Stop the scenario and save incomplete data
- Resume: Skip the failed item and continue processing
- Rollback: Undo all changes if any step fails
Best Practices
- Set timeouts on AI modules (30-60 seconds)
- Add retry logic with exponential backoff for API calls
- Log errors to a Google Sheet or database for monitoring
- Use Make's scenario history to debug failed runs
- Set up email alerts for critical automation failures
Key Takeaways
- •Routers enable intelligent branching based on AI classification results
- •Iterators process arrays through AI one item at a time — each counts as an operation
- •Use retry with exponential backoff for handling AI API rate limits
- •Log errors and set up alerts to monitor production automations
0 of 4 lessons marked complete
Progress is kept in this browser only.