Building effective AI agents in Kapso requires choosing the right architecture for your use case. We’ve designed our system to give you flexibility while maintaining reliability.
For most WhatsApp agents, we recommend starting with this simple but powerful architecture:
Subagent Node (main node)
Handles the core conversation logic
Manages tool selection intelligently
Provides flexibility for various user inputs
Warm End Node
Gracefully closes conversations after periods of inactivity
Prevents hanging conversations
Provides a clean exit point
Handoff Node (global)
Monitors all conversations for handoff triggers
Transfers to human agents when needed
Acts as a safety net for complex cases
Note: Every agent graph automatically includes Start and End nodes that define where execution begins and terminates. These system nodes are created for you and ensure proper flow control.This architecture provides:
Simplicity: Easy to understand and maintain
Flexibility: Handles most conversation patterns effectively