Node.js Batch Document Summarization for CRM Actions in 5–30 Minutes
说明与用途
通过提供者中立的批处理 API 实现销售通话记录的异步处理,允许在 5–30 分钟内收集摘要,评估后更新 CRM 操作。
问题
Customer‑support teams need to turn sales‑call transcripts into CRM actions, but the summarization can take 5–30 minutes, so a synchronous request is impractical.
结果
The workflow reduces latency for the user, isolates failure modes, and allows the model provider to change without affecting CRM logic.
工作流
- Submit an array of transcripts to the batch API with an idempotency key.
- Poll the batch status endpoint every 30 seconds until the job status is "complete".
- Retrieve the summaries once the job is complete.
- Store the raw summary and source document ID.
- Evaluate the summary against a labelled set for missing steps, wrong owners, invented dates, and malformed fields.
- If evaluation passes, create or update CRM actions.
- If evaluation fails, flag for manual review or retry.
证据
Submit the documents together, poll the job, and fetch the summaries after completion.
The usual processing window is 5–30 minutes, so the application needs a small job state machine rather than a request that waits.
First store the raw summary and the source document identifier. Then evaluate the output against a small labelled set... Only then should a separate step create or update CRM actions.
- 记录日期: 2026-10-25T02:11:24.283Z