Home/Tools/@tpmjs/feedback-themes

feedbackThemesTool

@tpmjs/feedback-themes

Extracts themes and sentiment from customer feedback text. Identifies recurring themes, scores sentiment per theme, and provides frequency counts.

Official
cx
v0.1.1
MIT

Interactive Playground

Test @tpmjs/feedback-themes (feedbackThemesTool) 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/feedback-themes
pnpm add @tpmjs/feedback-themes
yarn add @tpmjs/feedback-themes
bun add @tpmjs/feedback-themes
deno add npm:@tpmjs/feedback-themes

2. Import the tool

import { feedbackThemesTool } from '@tpmjs/feedback-themes';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { feedbackThemesTool } from '@tpmjs/feedback-themes';

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

console.log(result.text);

AI Agent Integration

How AI agents can use this tool

Use Case

Use this tool to analyze customer feedback, identify common themes, track sentiment trends, and prioritize product improvements based on customer voice.

Limitations

Sentiment analysis is keyword-based. For complex sentiment, consider using an AI model. Requires sufficient feedback volume for meaningful themes.

Examples

  • Analyze product reviews to identify improvement areas
  • Extract themes from NPS survey comments
  • Track sentiment trends across feedback channels

Signature

(feedback: string[]) => Promise<unknown>

Tags

analysis
customer
customer-success
cx
extracts
feedback
identifies
recurring
scores
sentiment
text
themes
tpmjs

Parameters

Available configuration options

Auto-extracted
feedback
Required
Type: string[]

Array of customer feedback entries

Schema extracted: 2/28/2026, 4:01:48 AM

README

ERROR: No README data found!

Statistics

Downloads/month

20

GitHub Stars

0

Quality Score

79%

Bundle Size

NPM Keywords

tpmjs
cx
feedback
sentiment
analysis
customer-success

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai