Interfaces
Expose Kern agents through various communication protocols and platforms
Interfaces enable exposing Kern agents, teams, and workflows through various communication protocols and platforms. Each interface provides a standardized way to connect Kern agents to external systems, messaging platforms, and frontend applications.
Available Interfaces
AG-UI
Connect agents to frontend applications using the Agent-User Interaction Protocol
Slack
Deploy agents as Slack applications for team collaboration
Serve agents via WhatsApp for direct messaging interactions
Telegram
Deploy agents as Telegram bots for direct and group chat conversations
A2A
Expose agents via the Agent-to-Agent Protocol for inter-agent communication
How Interfaces Work
Interfaces are FastAPI routers that mount protocol-specific endpoints on an AgentOS instance. Each interface:
- Wraps Kern agents, teams, or workflows into protocol-compatible endpoints
- Handles authentication and request validation for the target platform
- Manages session tracking and context preservation
- Streams responses back to clients in the appropriate format
Using Interfaces
Interfaces are added to an AgentOS instance through the interfaces parameter:
1from kern.os import AgentOS2from kern.os.interfaces.slack import Slack34agent_os = AgentOS(5 agents=[my_agent],6 interfaces=[Slack(agent=my_agent)],7)8app = agent_os.get_app()Multiple interfaces can be added to a single AgentOS instance, allowing the same agents to be exposed through different protocols simultaneously.