Agent components overview
Every agent block in Flowgen Studio consists of four essential components that work together to create intelligent, context-aware automation. Understanding how these components interact is crucial for building effective workflows.Agent Prompt
Define the agent’s personality, behavior, and decision-making logic with structured prompts.
RAG (Knowledge Base)
Ground responses with enterprise data from connected sources and collections.
Tools Integration
Enable external actions through API calls, database queries, and third-party integrations.
Variables (Input & Capture)
Manage data flow with input variables and capture outputs for downstream processing.
Component interaction flow
Access control considerations
Role-based restrictions
- SuperAdmin/Admin: Full access to all agent components and debugging tools
- Developer: Can configure prompts, RAG, tools, and variables; cannot publish to production
- Tester: Read-only access for testing purposes; can view execution logs
- Viewer: Limited to viewing published agent configurations only
Debugging agent issues
Common problems and solutions
Agent not responding as expected
Agent not responding as expected
Symptoms: Agent gives irrelevant or incorrect responsesDebugging steps:Resolution: Refine the prompt with more specific instructions and examples
- Check prompt clarity and specificity in the Agent Prompt tab
- Verify RAG sources are properly attached and contain relevant information
- Review execution logs in the Observability section
- Test with sample inputs to isolate the issue
RAG knowledge not being used
RAG knowledge not being used
Symptoms: Agent ignores attached knowledge sourcesDebugging steps:Resolution: Ensure RAG sources are relevant and properly indexed
- Verify data sources are properly connected in RAG Management
- Check if collections contain relevant information for the query
- Review agent’s RAG configuration in the Inspector panel
- Test with queries that should trigger knowledge retrieval
Tool integration failures
Tool integration failures
Symptoms: External API calls failing or returning errorsDebugging steps:Resolution: Fix authentication, parameter mapping, or API endpoint issues
- Check tool authentication and API keys in DevStudio
- Verify tool parameters and input mapping
- Review error logs in the execution timeline
- Test tools independently outside the workflow
Variable capture issues
Variable capture issues
Symptoms: Expected data not being captured or passed to next stepsDebugging steps:Resolution: Fix variable naming, data types, or scope issues
- Verify variable names match between capture and usage points
- Check data types and formats are consistent
- Review variable scope and availability
- Test with known input values
Best practices
Prompt engineering
- Be specific: Clearly define the agent’s role, context, and expected outputs
- Provide examples: Include sample inputs and desired responses
- Set boundaries: Define what the agent should and shouldn’t do
- Test iteratively: Refine prompts based on actual performance
RAG optimization
- Curate sources: Only attach relevant, high-quality knowledge sources
- Organize collections: Group related documents for better retrieval
- Monitor usage: Track which sources are actually being used
- Update regularly: Keep knowledge sources current and accurate
Tool management
- Error handling: Implement robust error handling for external calls
- Rate limiting: Respect API rate limits and implement backoff strategies
- Security: Use secure authentication methods and protect sensitive data
- Monitoring: Track tool performance and success rates
Variable design
- Consistent naming: Use clear, descriptive variable names
- Type safety: Ensure data types are consistent across the workflow
- Documentation: Document variable purposes and expected formats
- Validation: Implement validation for critical variables
Integration with other Phinite components
Assistant integration
- Conversational Assistants: Agents power chat and voice interactions
- Email Assistants: Agents process and respond to email communications
- Autonomous Assistants: Agents execute background automation tasks
Tool ecosystem
- Custom Tools: Build specialized tools for specific use cases
- Pre-built Integrations: Leverage existing integrations with popular services
- Tool Versioning: Manage tool updates and compatibility
Observability and monitoring
- Execution Logs: Monitor agent performance and debug issues
- Usage Metrics: Track token usage and performance metrics
- Error Tracking: Identify and resolve common issues
Next steps
- Configure your first agent: Start with prompt design
- Add knowledge sources: Connect relevant data
- Integrate tools: Enable external capabilities
- Set up variables: Manage data flow
- Test and debug: Monitor performance and resolve issues