Skip to content

Simple demo of how to build an agentic support AI with kapa.ai

kapa-ai/support-agent-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agentic Kapa Example

Example code showing how to use Kapa.ai as a tool in an agentic system with LangGraph.

📖 Read the blog post for the full context and walkthrough.

agentic-kapa.mp4

What this is

This is example code to illustrate the concepts from our blog post — it's not meant to be run as-is. Think of it as a reference implementation to help you build your own agentic workflows with Kapa.

The example shows a support agent that:

  • Uses Claude to analyze user intent and make routing decisions
  • Queries Kapa for accurate documentation-based answers
  • Creates support tickets when docs aren't sufficient
  • Evaluates response quality and decides next actions

Interesting bits for builders

If you're thinking about building something similar, here are some patterns that might be helpful:

Separation of concerns

  • Reasoning layer (reasoner node): LLM makes all the decisions
  • Tool nodes: Pure execution functions — just call APIs and return results
  • Kapa as a tool: Returns structured responses with sources and uncertainty flags

The basic flow

User QuestionReasoning Agent (analyzes intent)
    ↓
Technical? → Query KapaReasoning Agent (evaluates quality)
    ↓                           ↓
Support? → Create Ticket    Good answer? → Deliver to userUncertain? → Offer ticket creation

Implementation notes

  • Kapa responses include an is_uncertain flag that helps the agent decide whether to escalate
  • Support tickets can include full context (what the user asked, what Kapa returned, why it wasn't sufficient)
  • LangGraph's tools_condition handles the routing between reasoning and tools
  • The system prompt is just a simple policy, not complex instructions

Why this pattern?

Kapa focuses on being really good at answering questions from your docs. Your agent handles everything else — your specific business logic, escalation rules, and integrations. This way you get accurate technical answers without having to build your own RAG pipeline.

Check out the blog post for more details and reasoning behind this approach.

About

Simple demo of how to build an agentic support AI with kapa.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages