Building Multi-Path Workflows
Sometimes an action needs to do different things based on the situation. This is where conditional logic shines.Example: Role-Based License Access
A license renewal action that behaves differently based on user role:Chaining Multiple Data Sources
Complex questions often require data from multiple systems. You can chain API calls together, using the output from one as input to the next.Example: Complete Customer View
Getting comprehensive customer information from multiple systems:Optimization Strategies
When chaining multiple API calls:- Make independent calls in parallel when possible
- Cache frequently accessed data
- Handle partial failures gracefully
- Set appropriate timeouts
- Implement retry logic for critical calls
Handling Batch Operations
Need to perform the same action on multiple items? Loops let you process them efficiently.Example: License Owner Notifications
Notifying multiple license owners about upcoming renewals:Loop Best Practices
- Add limits to prevent infinite loops
- Include progress indicators for long-running operations
- Handle errors within the loop gracefully
- Batch operations when possible for efficiency
- Provide summary information when complete
Creating Self-Correcting Actions
Build in error recovery so your actions handle problems gracefully.Example: Resilient API Integration
An API call that might timeout or fail:Error Recovery Strategies
Exponential Backoff: Increase wait time between retries Circuit Breaker: Stop trying after repeated failures Fallback Data: Use cached or default values when primary source fails Partial Success: Return what you can even if some operations fail User Notification: Keep users informed about what’s happeningUsing Variables and Context
Actions can remember information throughout the workflow and reference it in later steps.Example: Dynamic Output Generation
Variable Scope
- Variables persist throughout the action execution
- Each execution has its own variable context
- Variables can be overwritten by later steps
- Use descriptive variable names for maintainability
Variables make your actions more dynamic and allow for complex decision-making based on accumulated data throughout the workflow.
Building Conversational Workflows
Create actions that feel like a conversation, asking follow-up questions based on previous answers.Example: Guided Report Selection
Helping users find the right report through progressive questions:Conversational Design Principles
- Limit to 2-3 questions maximum
- Provide clear options rather than open-ended questions
- Show progress (e.g., “Question 2 of 3”)
- Allow users to go back and change answers
- Provide a way to skip optional questions