Add Triggers
Triggers are the starting points that initiate workflows in your AI Workforce. They determine when and how your agents begin their work, serving as the entry points to your entire workflow system.
Understanding Triggers
Triggers are specialized nodes in the Workforce that activate your agents based on specific events or conditions. They function as the initial connection point in your workflow, determining when your AI agents should start performing their tasks.
Types of Triggers
Manual Triggers
When you first create a workforce, a manual trigger is automatically added to your workspace. This allows you to directly initiate your workflow by sending a message to your agent, similar to how you would interact with a standalone agent in Relevance AI.
Manual triggers are ideal for:
- Testing your workflow during development
- On-demand tasks that require human initiation
- Workflows that need to begin with specific human input or context
Integration Triggers
Integration triggers connect your workforce to external systems, allowing your agents to automatically respond to events from those systems. These triggers enable your AI Workforce to monitor and react to activities in your connected tools and platforms.
Common integration triggers include:
- Email triggers that activate when new messages arrive
- Calendar triggers that respond to meeting invitations or reminders
- CRM triggers that react to new lead creation or status changes
- Webhook triggers that respond to custom events from any system
Adding Triggers to Your Workforce
Adding Your First Trigger
- When you open your workforce, you’ll see a manual trigger already available in your workspace.
- Connect this trigger to an agent by dragging a line from the trigger to your chosen agent.
- This connection establishes the entry point for your workflow.
Adding Additional Triggers
To add more triggers to your workforce:
-
Navigate to the Workforce interface.
-
Locate the “Triggers” section in the node palette.
-
Drag your desired trigger type onto the workspace.
-
Position it appropriately in your workflow diagram.
-
Connect the trigger to the agent that should respond first when the trigger activates.
Configuring Triggers
Each trigger type has specific configuration options that determine its behavior:
Manual Trigger Configuration
To trigger your workforce manually:
- Switch to the “Task” tab in the Relevance AI interface.
- Use the message input field to send a manual message to your workforce.
- Provide natural language instructions that will initiate your workflow.
- Your connected agent will receive this message and begin processing according to your workflow configuration.
This manual interaction allows you to start your workflow with specific context and instructions whenever needed.
Integration Trigger Configuration
Integration triggers require specific setup to connect with external systems:
- Select the integration trigger in your workspace.
- Complete the authentication process for the connected service.
- Configure trigger conditions (e.g., specific email subjects, calendar event types).
- Set any filters to ensure the trigger only activates for relevant events.
- Test the connection to verify proper setup.
Best Practices for Using Triggers
Strategic Trigger Placement
- Start with clarity: Position triggers at the logical beginning points of your workflows.
- Minimize redundancy: Avoid having multiple triggers that serve the same purpose.
- Consider user experience: For manual triggers, ensure they’re intuitive and provide clear guidance.
Trigger Maintenance
- Regularly test triggers to ensure they’re functioning correctly.
- Monitor trigger activity to identify any performance issues.
- Update trigger configurations when connected systems change.
Security Considerations
-
Review authentication settings for integration triggers regularly.
-
Implement appropriate access controls for manual triggers.
-
Consider data privacy implications when configuring trigger conditions.
Troubleshooting Triggers
Common Issues
- Trigger not activating: Verify connection settings and authentication.
- Duplicate activations: Check for overlapping trigger conditions.
- Delayed responses: Examine workflow complexity and agent configuration.
Diagnostic Steps
- Test the trigger in isolation to confirm it’s working properly.
- Verify that connected agents have appropriate permissions.
- Check system logs for any error messages related to the trigger.
- Ensure all necessary API keys and credentials are current.
Related Features
The “Add Triggers” functionality works closely with other components of the Workforce Builder:
- Edge Settings: After connecting a trigger to an agent, you can configure how information flows between them using Edge Settings.
- Agent Configuration: Ensure your agents are properly configured to handle the input they’ll receive from triggers.
- Conditions: Use conditions alongside triggers to create more sophisticated workflow logic.
By effectively utilizing triggers in your Workforce, you create the foundation for responsive, event-driven AI systems that can work autonomously while integrating seamlessly with your existing tools and processes.
Was this page helpful?