Home/Tools/@tpmjs/ticket-categorize

ticketCategorizeTool

@tpmjs/ticket-categorize

Categorizes support tickets by type, priority, and product area. Suggests routing based on category and identifies urgent issues requiring immediate attention.

Official
cx
v0.1.1
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
Ticket must have id, subject, and description

Last checked: 3/1/2026, 4:26:36 AM

Interactive Playground

Test @tpmjs/ticket-categorize (ticketCategorizeTool) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/ticket-categorize
pnpm add @tpmjs/ticket-categorize
yarn add @tpmjs/ticket-categorize
bun add @tpmjs/ticket-categorize
deno add npm:@tpmjs/ticket-categorize

2. Import the tool

import { ticketCategorizeTool } from '@tpmjs/ticket-categorize';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { ticketCategorizeTool } from '@tpmjs/ticket-categorize';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { ticketCategorizeTool },
  prompt: 'Your prompt here...',
});

console.log(result.text);

AI Agent Integration

How AI agents can use this tool

Use Case

Use this tool to automate support ticket triage, route tickets to the right team, prioritize urgent issues, and improve support efficiency.

Limitations

Categorization is keyword-based. For complex tickets, consider AI-powered classification. Routing suggestions are generic and should be customized to your organization.

Examples

  • Automatically categorize incoming support tickets
  • Prioritize critical bugs and outages
  • Route tickets to appropriate support teams

Signature

(ticket: { id: string; subject: string; createdAt: string; description: string; customerEmail: string }) => Promise<unknown>

Tags

area
based
categorization
categorize
categorizes
customer-success
cx
priority
product
routing
suggests
support
ticket
tickets
tpmjs
type

Parameters

Available configuration options

Auto-extracted
ticket
Required
Type: object

Support ticket with subject, description, and optional metadata

Schema extracted: 3/1/2026, 4:26:35 AM

README

ERROR: No README data found!

Statistics

Downloads/month

124

GitHub Stars

0

Quality Score

84%

Bundle Size

NPM Keywords

tpmjs
cx
support
tickets
categorization
customer-success

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai