AgentForge

Customer Support Template

Pre-built customer support agent with ticket management, knowledge base search, and escalation.

Usage

import { createCustomerSupportAgent, createLLM } from '@ahzan-agentforge/core';

const agent = createCustomerSupportAgent({
  llm: createLLM({ provider: 'anthropic', model: 'claude-sonnet-4-20250514' }),
  companyName: 'Acme Corp',
  // Additional config options
});

const result = await agent.run({
  task: 'Customer wants to return a defective product',
});

CustomerSupportConfig

interface CustomerSupportConfig {
  llm: LLM;
  companyName: string;
  // Additional template-specific options
}

Included Tools

The template comes with tools for:

  • Searching the knowledge base
  • Looking up customer information
  • Creating and updating tickets
  • Escalating to human agents

Customization

Add your own tools alongside the template's defaults:

const agent = createCustomerSupportAgent({
  llm,
  companyName: 'Acme Corp',
});

// The returned agent is a standard Agent instance

Next Steps