Report 4.1.4 — Smart Priority Tagging Detailed Guide

This document explains the smart priority-tagging feature that assigns HIGH/MEDIUM/LOW based on urgency cues inside the transcript.

Mechanics of Priority Tagging

  1. The transcript is forwarded to ActionItemExtractorService.
  2. A prompt emphasises urgency keywords (e.g., “ASAP”, “urgent”, “by EOD”, “critical”) alongside standard fields.
  3. The OpenAI completion replies with structured action items containing the preset priority field.
  4. The extractor normalizes priorities to three canonical values and uppercases them before handing off to HubSpotTaskService.

Keyword examples

  • HIGH: “as soon as possible”, “immediately”, “critical”.
  • MEDIUM: “by tomorrow”, “soon”, “follow up”.
  • LOW: “eventually”, “sometime next week”, “whenever you have time”.

Tuning & Observability

Track priority accuracy by examining:

Iterate on prompt wording to adjust how keywords influence priority results.

Fallbacks