Templates Overview
Pre-built agent templates — customer support, research assistant, data processor, and more.
What Are Templates?
Templates are factory functions that create fully configured agents for common use cases. They come with pre-defined tools, system prompts, and sensible defaults.
| Template | Factory | Use Case |
|---|---|---|
| Customer Support | createCustomerSupportAgent() | Handle support tickets |
| Research Assistant | createResearchAssistant() | Research and synthesize |
| Data Processor | createDataProcessor() | Transform and analyze data |
| Code Reviewer | createCodeReviewer() | Review code changes |
| Workflow Automator | createWorkflowAutomator() | Automate business workflows |
Usage Pattern
import { createCustomerSupportAgent, createLLM } from '@ahzan-agentforge/core';
const agent = createCustomerSupportAgent({
llm: createLLM({ provider: 'anthropic', model: 'claude-sonnet-4-20250514' }),
companyName: 'Acme Corp',
// Template-specific config
});
const result = await agent.run({ task: 'Customer asks about return policy' });Customization
Templates return standard Agent instances. You can extend them with additional tools, hooks, or configuration.
Next Steps
- Customer Support — support agent template
- Research Assistant — research template