Urgent.News

What's breaking now, across hundreds of outlets.

AI

Cheap Node.js Summarization API: Split Long Sales Text with Token Counts

The quality-versus-latency choice should be made before a summarization request, not after a salesperson is staring at a blank CRM record. TL;DR: count or estimate tokens, split long transcripts at semantic boundaries, summarize the chunks, and perform a final reduction into typed CRM actions. Offer a brief mode for the live workflow and a detailed mode for asynchronous review. Estimate the…

When summarizing long sales transcripts, the goal is to split the call into manageable chunks while preserving important details like speaker turns, facts, commitments, owners, dates, objections, and tone. A Node.js summarization API can be designed with four states: admitted, chunked, reduced, and committed. Admission checks various parameters before dispatching the request, estimating cost as an admission control signal.

Chunking prefers preserving speaker turns or sentence boundaries, recording source offsets. Reduction receives all chunk results in source order to maintain original order and highlights key information. Commit validates the CRM action shape and performs a conditional write, only if a summary exists. The pipeline provides a comprehensible product decision, with brief and detailed modes offering different output budgets and field quantities.

The main path uses a verified OpenAI-compatible chat surface, ensuring speaker turns are kept intact and caps chunks at a reasonable token count.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Introducing Anthropic models on Amazon Bedrock for in-region inference in Seoul and Singapore

Amazon Bedrock now supports Anthropic's Claude Opus 5 and Claude Sonnet 5 with in-region inference in Seoul, and Claude Sonnet 5 in Singapore.

  • Anthropic Claude Opus 5 and Sonnet 5 models available in Seoul and Singapore
  • Inference processed entirely within AWS regions, meeting data residency needs
  • Access models via bedrock-runtime endpoint with Messages, InvokeModel, and Converse APIs

5 Ways to Reduce Voice AI Costs Without Losing Quality

1. Cache Your Synthesized Audio One of the biggest drivers of cost in voice AI is the sheer number of API calls you make to a TTS provider.

  • Cache synthesized audio to avoid repeated API charges
  • Batch requests and use parallelism to reduce overhead
  • Optimize text length and pacing to cut audio costs

I tried to learn GitHub Actions twice: I failed the first time, but AI helped me succeed the second time

The first time I tried to deploy a static site using GitHub Actions, I gave up halfway through the tutorials. The second time, with the help of an AI agent, I had the site deployed in several hours…

  • Author failed first GitHub Actions attempt due to brief tutorials
  • AI agent helped author understand GitHub Actions deployment
  • AI setup GitHub Actions, leading to successful second attempt

More from Wednesday 30 September →