Home/Tools/@tpmjs/tools-response-template-suggest

responseTemplateSuggestTool

@tpmjs/tools-response-template-suggest

Suggests response templates for support tickets based on ticket category and customer context. Includes personalization points and tone recommendations to improve customer satisfaction.

Official
cx
v0.1.0
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
Ticket must have a non-empty subject

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

Interactive Playground

Test @tpmjs/tools-response-template-suggest (responseTemplateSuggestTool) 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/tools-response-template-suggest
pnpm add @tpmjs/tools-response-template-suggest
yarn add @tpmjs/tools-response-template-suggest
bun add @tpmjs/tools-response-template-suggest
deno add npm:@tpmjs/tools-response-template-suggest

2. Import the tool

import { responseTemplateSuggestTool } from '@tpmjs/tools-response-template-suggest';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { responseTemplateSuggestTool } from '@tpmjs/tools-response-template-suggest';

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

console.log(result.text);

Signature

(ticket: { subject: string; category: string; priority: string; description: string }, customerContext?: { tier: string; sentiment: string; accountAge: number; totalTickets: number; lastInteraction: string }) => Promise<unknown>

Tags

ai
based
category
context
customer
customer-experience
customer-service
cx
response
suggest
suggests
support
template
templates
ticket
tickets
tpmjs

Parameters

Available configuration options

Auto-extracted
ticket
Required
Type: object

Support ticket information

customerContext
Optional
Type: object

Customer history and context (optional)

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

README

ERROR: No README data found!

Statistics

Downloads/month

4

GitHub Stars

0

Quality Score

72%

Bundle Size

NPM Keywords

tpmjs
customer-experience
ai
support
templates
customer-service

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai