Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Building blocks for conversational agents
from kapso.builder.nodes import SubagentNode from kapso.builder.nodes.subagent.tools import WebhookTool node = SubagentNode(name="assistant") node.add_tool(WebhookTool(name="api", url="https://api.com"))
from kapso.builder.nodes import DefaultNode node = DefaultNode( name="greeting", prompt="Welcome the user" )
from kapso.builder.nodes import WebhookNode node = WebhookNode( name="api_call", url="https://api.example.com/data", http_method="GET" )
from kapso.builder.nodes import KnowledgeBaseNode node = KnowledgeBaseNode( name="docs", knowledge_base_text="Product info..." )
from kapso.builder.nodes import HandoffNode node = HandoffNode( name="human", global_=True, global_condition="user requests human" )
from kapso.builder.nodes import WarmEndNode node = WarmEndNode( name="goodbye", timeout_minutes=30, prompt="Thank the user" )
from kapso.builder.nodes import WhatsAppTemplateNode node = WhatsAppTemplateNode( name="notification", template_name="order_update", phone_number="{{customer_phone}}" )
help_node = DefaultNode( name="help", prompt="Show available options", global_=True, global_condition="user asks for help" )