Agent Node Anatomy
Agent components overview
Section titled “Agent components overview”Every agent node in Graph 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.
Registry agent nodes (A2A)
Section titled “Registry agent nodes (A2A)”In multi-agent graphs, a registry agent node connects a master agent to agents published in the Agent Registry over the A2A protocol:
- Browse mode — call one specific registered agent (fixed build, tools, and hosted URL).
- Discovery mode — master agent auto-selects registry agents that match saved filters (visibility, deployment status, MIME modes, tags).
Expose agent graphs first via Expose as External Agent, then attach them from the canvas browse panel. Only one Discovery node is allowed per master agent node.
See Registry agent nodes (Browse & Discovery) for step-by-step configuration.
Component interaction flow
Section titled “Component interaction flow”graph TD A[Input Variables] --> B[Agent Prompt] C[RAG Knowledge] --> B D[Tool Calls] --> B B --> E[LLM Processing] E --> F[Capture Variables] E --> G[Decision Variables] F --> H[Next Workflow Step] G --> I[Conditional Routing]Access control considerations
Section titled “Access control considerations”Role-based restrictions
Section titled “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
Section titled “Debugging agent issues”Common problems and solutions
Section titled “Common problems and solutions”Agent not responding as expected
Symptoms: Agent gives irrelevant or incorrect responses
Debugging steps:
- 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
Sample debugging code:
// Check agent response qualityconst testPrompt = "Analyze this customer query: 'I need help with my order'";const expectedResponse = "The agent should identify this as a customer service request";Resolution: Refine the prompt with more specific instructions and examples
RAG knowledge not being used
Symptoms: Agent ignores attached knowledge sources
Debugging steps:
- 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
Sample debugging code:
// Test RAG retrievalconst testQuery = "What is our company's refund policy?";// Should retrieve policy document from RAG sourcesResolution: Ensure RAG sources are relevant and properly indexed
Tool integration failures
Symptoms: External API calls failing or returning errors
Debugging steps:
- 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
Sample debugging code:
// Test tool integrationconst toolTest = { toolId: "email-sender", parameters: { to: "test@example.com", subject: "Test email", body: "This is a test" }};Resolution: Fix authentication, parameter mapping, or API endpoint issues
Variable capture issues
Symptoms: Expected data not being captured or passed to next steps
Debugging steps:
- 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
Sample debugging code:
// Test variable captureconst inputData = { customerEmail: "user@example.com", orderId: "12345"};// Verify these are captured and available downstreamResolution: Fix variable naming, data types, or scope issues
Best practices
Section titled “Best practices”Prompt engineering
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “Integration with other Phinite components”Assistant integration
Section titled “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
Section titled “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
Section titled “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
Section titled “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
- Expose to Agent Registry: Publish as an A2A agent when external discovery is required
- Test and debug: Monitor performance and resolve issues

