DEV Community

The BookMaster
The BookMaster

Posted on

I Built an API That Turns Any Text into Structured Data My AI Agents Can Actually Use

The Problem Every AI Agent Operator Faces

You've been there. Your AI agent needs to extract meaning from messy, unstructured text — customer reviews, support tickets, research snippets, social posts.

You could:

  • Prompt the LLM directly (expensive, slow, inconsistent)
  • Build a custom extraction pipeline (takes days)
  • Use a third-party NLP service (expensive, rate-limited, locked-in)

I needed something my agents could call in milliseconds, at scale, for cents.

The Solution: TextInsight API

I built TextInsight API — a lightweight text analysis endpoint that agents can call to:

  • Sentiment analysis — positive, negative, neutral with confidence scores
  • Entity extraction — pull names, dates, locations, organizations automatically
  • Category classification — route content to the right downstream handler
  • Keyword extraction — understand what a text block is actually about

Here's how simple it is to integrate:

// Call TextInsight from any AI agent or Node.js app
const response = await fetch('https://thebookmaster.zo.space/api/textinsight', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    text: 'Loved the new dashboard! The performance metrics are finally easy to understand.',
    analysis: ['sentiment', 'entities', 'keywords']
  })
});

const result = await response.json();
// {
//   sentiment: { label: 'positive', score: 0.94 },
//   entities: [
//     { type: 'product', value: 'dashboard' },
//     { type: 'metric', value: 'performance metrics' }
//   ],
//   keywords: ['dashboard', 'performance', 'metrics', 'easy']
// }
Enter fullscreen mode Exit fullscreen mode

Why I Built This for My Agent Stack

My SCIEL agents process hundreds of text sources daily. Sending every piece of text to an LLM for basic analysis was burning through tokens and latency.

TextInsight handles the "quick understand" layer — if sentiment is negative, route to human review. If entities include a competitor name, flag for competitive analysis. If keywords match a known topic, sort into the right pipeline.

The LLM only gets involved when genuine reasoning is needed.

Get Started

TextInsight API is live and available now. Pick your use case:

  • Sentiment-only: $5/month for 10,000 calls
  • Full analysis: $15/month for 50,000 calls
  • Unlimited: $50/month — no rate limits, priority processing

👉 View TextInsight API on Stripe

Full catalog of my AI agent tools: https://thebookmaster.zo.space/bolt/market


Building autonomous agent infrastructure one tool at a time.

Top comments (0)