Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(conversations): show why the AI support agent skipped a ticket (#122889)

John C. Watersf2bd95b6ec6e
diff --git a/products/conversations/backend/api/ticket_filters.py b/products/conversations/backend/api/ticket_filters.py
index 785f927555a8..04af3708e393 100644
--- a/products/conversations/backend/api/ticket_filters.py
+++ b/products/conversations/backend/api/ticket_filters.py
@@ -45,6 +45,8 @@ AI_TRIAGE_FILTER_VALUES = [
"escalated_with_best",
"escalated_no_reply",
"skipped_unactionable",
+ "skipped_team_replied",
+ "skipped_channel_excluded",
"blocked_unsafe",
"blocked_unsafe_reply",
"clarified",
@@ -190,7 +192,8 @@ class TicketViewFiltersSerializer(serializers.Serializer):
required=False,
help_text="AI triage outcomes to include. 'in_progress' matches tickets still being triaged. "
"Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, "
- "escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, "
+ "escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, "
+ "blocked_unsafe, blocked_unsafe_reply, "
"clarified, suggested_clarification, in_progress.",
)
assignee = TicketViewAssigneeFilterField(
diff --git a/products/conversations/backend/temporal/coordinator.py b/products/conversations/backend/temporal/coordinator.py
index 3991bb8e2a09..7e2cf93d2f9a 100644
--- a/products/conversations/backend/temporal/coordinator.py
+++ b/products/conversations/backend/temporal/coordinator.py
@@ -60,6 +60,9 @@ MASTER_FLAG = "product-support-ai-suggestion"
# Set to 0 locally to skip the BK readiness check entirely.
MIN_READY_BK_SOURCES = 0
+SKIPPED_TEAM_REPLIED = "skipped_team_replied"
+SKIPPED_CHANNEL_EXCLUDED = "skipped_channel_excluded"
+
@dataclass
class CoordinatorInput:
@@ -148,6 +151,8 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
# created_at around so a ticket with no customer comments yet still settles from its own
# creation time (the initial message), not just from follow-up comments.
candidates: list[tuple[int, str, datetime, bool, int]] = []
+ untriaged_ticket_ids: set[str] = set()
+ skipped_ticket_ids_by_result: dict[str, list[str]] = {SKIPPED_TEAM_REPLIED: [], SKIPPED_CHANNEL_EXCLUDED: []}
for ticket in recent_tickets:
team = ticket.team
@@ -158,16 +163,22 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
if not settings_dict.get("ai_suggestions_enabled", False):
continue
- allowed_channels = settings_dict.get("ai_resolution_channels")
- if allowed_channels is not None and ticket.channel_source not in allowed_channels:
- continue
-
if not team.organization.is_ai_data_processing_approved:
continue
if MIN_READY_BK_SOURCES > 0 and not has_ready_sources(team.id):
continue
+ is_untriaged = not ticket.ai_triage
+ allowed_channels = settings_dict.get("ai_resolution_channels")
+ if allowed_channels is not None and ticket.channel_source not in allowed_channels:
+ if is_untriaged:
+ skipped_ticket_ids_by_result[SKIPPED_CHANNEL_EXCLUDED].append(str(ticket.id))
+ continue
+
+ if is_untriaged:
+ untriaged_ticket_ids.add(str(ticket.id))
+
awaiting, clarification_round = _awaiting_clarification_round(ticket)
if awaiting and clarification_round > MAX_CLARIFICATION_ROUNDS:
continue
@@ -175,6 +186,7 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
candidates.append((team.id, str(ticket.id), ticket.created_at, awaiting, clarification_round))
if not candidates:
+ _record_skipped_tickets(skipped_ticket_ids_by_result, now=now)
return []
# One comment query per team instead of round-trips per ticket. Two things come out of it:
@@ -219,8 +231,6 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
eligible: list[EligibleTicket] = []
per_team_counts: dict[int, int] = {}
for team_id, ticket_id_str, created_at, awaiting, clarification_round in candidates:
- if len(eligible) >= MAX_TICKETS_PER_RUN:
- break
if awaiting:
last_customer = latest_customer_msg.get(ticket_id_str)
last_ai = latest_ai_msg.get(ticket_id_str)
@@ -233,6 +243,8 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
continue
else:
if ticket_id_str in engaged:
+ if ticket_id_str in untriaged_ticket_ids and ticket_id_str in latest_human_msg:
+ skipped_ticket_ids_by_result[SKIPPED_TEAM_REPLIED].append(ticket_id_str)
continue
# Settle: wait until the customer has gone quiet. Reference is the most recent customer
# activity — max(ticket creation, latest customer comment). If that's newer than the
@@ -240,6 +252,8 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
last_activity = max(created_at, latest_customer_msg.get(ticket_id_str, created_at))
if last_activity > settle_cutoff:
continue
+ if len(eligible) >= MAX_TICKETS_PER_RUN:
+ continue
if per_team_counts.get(team_id, 0) >= MAX_TICKETS_PER_TEAM_PER_RUN:
continue
per_team_counts[team_id] = per_team_counts.get(team_id, 0) + 1
@@ -251,9 +265,19 @@ def _collect_eligible(lookback_minutes: int = TICKET_LOOKBACK_MINUTES) -> list[E
)
)
+ _record_skipped_tickets(skipped_ticket_ids_by_result, now=now)
return eligible
+def _record_skipped_tickets(skipped_ticket_ids_by_result: dict[str, list[str]], *, now: datetime) -> None:
+ for result, ticket_ids in skipped_ticket_ids_by_result.items():
+ if not ticket_ids:
+ continue
+ Ticket.objects.filter(id__in=ticket_ids, ai_triage={}).update(
+ ai_triage={"schema_version": 1, "status": "done", "result": result, "finished_at": now.isoformat()}
+ )
+
+
@activity.defn
async def support_collect_eligible_tickets_activity(_input: CoordinatorInput) -> CollectEligibleTicketsOutput:
"""Scan for recent tickets and gate them through all eligibility checks."""
diff --git a/products/conversations/backend/temporal/tests/test_coordinator.py b/products/conversations/backend/temporal/tests/test_coordinator.py
index 77ac23802b55..37eb3518c48e 100644
--- a/products/conversations/backend/temporal/tests/test_coordinator.py
+++ b/products/conversations/backend/temporal/tests/test_coordinator.py
@@ -490,6 +490,49 @@ class TestCollectEligibleAwaitingClarification:
result = _collect_eligible()
assert result == []
+ @parameterized.expand(
+ [
+ ("team_started_ticket", {}, True, None, "human", "skipped_team_replied"),
+ ("ai_note_only", {}, True, None, "AI", None),
+ (
+ "channel_excluded",
+ {"ai_resolution_channels": ["email"]},
+ True,
+ None,
+ "human",
+ "skipped_channel_excluded",
+ ),
+ ("ai_data_processing_not_approved", {}, False, None, "human", None),
+ ("already_triaged", {}, True, {"status": "done", "result": "suggested"}, "human", "suggested"),
+ ]
+ )
+ @pytest.mark.django_db
+ @patch(f"{COORD_MODULE}._is_master_flag_enabled", return_value=True)
+ def test_skipped_ticket_records_reason_on_ai_triage(
+ self,
+ _name,
+ extra_settings,
+ ai_data_processing_approved,
+ existing_triage,
+ comment_author_type,
+ expected_result,
+ mock_master_flag,
+ ):
+ team, ticket = self._team_and_ticket(status="open", awaiting=False)
+ team.conversations_settings = {**team.conversations_settings, **extra_settings}
+ team.save()
+ team.organization.is_ai_data_processing_approved = ai_data_processing_approved
+ team.organization.save()
+ from products.conversations.backend.models.ticket import Ticket as TicketModel
+
+ if existing_triage is not None:
+ TicketModel.objects.filter(id=ticket.id).update(ai_triage=existing_triage)
+ self._comment(team, ticket, author_type=comment_author_type, minutes_ago=3)
+
+ assert _collect_eligible() == []
+ ticket.refresh_from_db()
+ assert ticket.ai_triage.get("result") == expected_result
+
class TestCoordinatorWorkflow:
@pytest.mark.asyncio
diff --git a/products/conversations/frontend/generated/api.schemas.ts b/products/conversations/frontend/generated/api.schemas.ts
index 32c6e2c36448..cf134090b9b9 100644
--- a/products/conversations/frontend/generated/api.schemas.ts
+++ b/products/conversations/frontend/generated/api.schemas.ts
@@ -752,6 +752,8 @@ export const TicketSlaFilterEnumApi = {
* * `escalated_with_best` - escalated_with_best
* * `escalated_no_reply` - escalated_no_reply
* * `skipped_unactionable` - skipped_unactionable
+ * * `skipped_team_replied` - skipped_team_replied
+ * * `skipped_channel_excluded` - skipped_channel_excluded
* * `blocked_unsafe` - blocked_unsafe
* * `blocked_unsafe_reply` - blocked_unsafe_reply
* * `clarified` - clarified
@@ -767,6 +769,8 @@ export const AiTriageResultEnumApi = {
EscalatedWithBest: 'escalated_with_best',
EscalatedNoReply: 'escalated_no_reply',
SkippedUnactionable: 'skipped_unactionable',
+ SkippedTeamReplied: 'skipped_team_replied',
+ SkippedChannelExcluded: 'skipped_channel_excluded',
BlockedUnsafe: 'blocked_unsafe',
BlockedUnsafeReply: 'blocked_unsafe_reply',
Clarified: 'clarified',
@@ -839,7 +843,7 @@ export interface TicketViewFiltersApi {
* * `on-track` - on-track
* * `all` - all */
sla?: TicketSlaFilterEnumApi
- /** AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress. */
+ /** AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress. */
aiTriageResult?: AiTriageResultEnumApi[]
/** Assignees to match (any of): 'unassigned', 'me' (resolved to the requesting user), or an object with type ('user' or 'role') and id. Send a list. Views saved earlier can hold a single value instead of a list, or the value 'all'. Wrap a single value in a list, and replace 'all' with an empty list to apply no assignee filter. */
assignee?: TicketViewFiltersApiAssigneeItem[]
@@ -1062,7 +1066,7 @@ export interface ZendeskImportErrorApi {
export type ConversationsTicketsListParams = {
/**
- * Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.
+ * Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `skipped_team_replied`, `skipped_channel_excluded`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.
*/
ai_triage_result?: string
/**
diff --git a/products/conversations/frontend/generated/api.zod.ts b/products/conversations/frontend/generated/api.zod.ts
index 20a78515a6ee..5f3e25b5422c 100644
--- a/products/conversations/frontend/generated/api.zod.ts
+++ b/products/conversations/frontend/generated/api.zod.ts
@@ -405,6 +405,8 @@ export const ConversationsViewsCreateBody = /* @__PURE__ */ zod.object({
'escalated_with_best',
'escalated_no_reply',
'skipped_unactionable',
+ 'skipped_team_replied',
+ 'skipped_channel_excluded',
'blocked_unsafe',
'blocked_unsafe_reply',
'clarified',
@@ -412,12 +414,12 @@ export const ConversationsViewsCreateBody = /* @__PURE__ */ zod.object({
'in_progress',
])
.describe(
- '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
+ '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `skipped_team_replied` - skipped_team_replied\n\* `skipped_channel_excluded` - skipped_channel_excluded\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
)
)
.optional()
.describe(
- "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
+ "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
),
assignee: zod
.array(
@@ -551,6 +553,8 @@ export const ConversationsViewsPartialUpdateBody = /* @__PURE__ */ zod.object({
'escalated_with_best',
'escalated_no_reply',
'skipped_unactionable',
+ 'skipped_team_replied',
+ 'skipped_channel_excluded',
'blocked_unsafe',
'blocked_unsafe_reply',
'clarified',
@@ -558,12 +562,12 @@ export const ConversationsViewsPartialUpdateBody = /* @__PURE__ */ zod.object({
'in_progress',
])
.describe(
- '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
+ '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `skipped_team_replied` - skipped_team_replied\n\* `skipped_channel_excluded` - skipped_channel_excluded\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
)
)
.optional()
.describe(
- "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
+ "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
),
assignee: zod
.array(
diff --git a/products/conversations/frontend/scenes/ticket/AIPanel.tsx b/products/conversations/frontend/scenes/ticket/AIPanel.tsx
index d3a0f17dabb8..361951581499 100644
--- a/products/conversations/frontend/scenes/ticket/AIPanel.tsx
+++ b/products/conversations/frontend/scenes/ticket/AIPanel.tsx
@@ -213,7 +213,9 @@ export function AIPanel({ aiTriage }: AIPanelProps): JSX.Element {
hasData && aiTriage ? (
<AITriageDetails aiTriage={aiTriage} />
) : (
- <div className="text-muted-alt text-xs">AI has not processed this ticket yet.</div>
+ <div className="text-muted-alt text-xs">
+ No AI draft yet. AI skips tickets your team already replied to.
+ </div>
),
},
]}
diff --git a/products/conversations/frontend/types.ts b/products/conversations/frontend/types.ts
index 25476efdc59b..9c0eb580fdc2 100644
--- a/products/conversations/frontend/types.ts
+++ b/products/conversations/frontend/types.ts
@@ -340,6 +340,8 @@ export const aiTriageResultLabel: Record<AITriageResult, string> = {
escalated_with_best: 'Escalated with draft',
escalated_no_reply: 'Escalated, no draft',
skipped_unactionable: 'Skipped',
+ skipped_team_replied: 'Skipped, team replied',
+ skipped_channel_excluded: 'Skipped, channel off',
blocked_unsafe: 'Blocked unsafe ticket',
blocked_unsafe_reply: 'Blocked unsafe reply',
clarified: 'Asked a question',
@@ -382,6 +384,8 @@ const AI_TRIAGE_RESULT_TAG_TYPE: Record<AITriageResult, AITriageTagType> = {
escalated_with_best: 'warning',
escalated_no_reply: 'warning',
skipped_unactionable: 'default',
+ skipped_team_replied: 'default',
+ skipped_channel_excluded: 'default',
blocked_unsafe: 'danger',
blocked_unsafe_reply: 'danger',
clarified: 'warning',
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index a876c9b6d7f6..337ad4a0a45e 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -12247,6 +12247,8 @@ export namespace Schemas {
* * `escalated_with_best` - escalated_with_best
* * `escalated_no_reply` - escalated_no_reply
* * `skipped_unactionable` - skipped_unactionable
+ * * `skipped_team_replied` - skipped_team_replied
+ * * `skipped_channel_excluded` - skipped_channel_excluded
* * `blocked_unsafe` - blocked_unsafe
* * `blocked_unsafe_reply` - blocked_unsafe_reply
* * `clarified` - clarified
@@ -12263,6 +12265,8 @@ export namespace Schemas {
EscalatedWithBest: 'escalated_with_best',
EscalatedNoReply: 'escalated_no_reply',
SkippedUnactionable: 'skipped_unactionable',
+ SkippedTeamReplied: 'skipped_team_replied',
+ SkippedChannelExcluded: 'skipped_channel_excluded',
BlockedUnsafe: 'blocked_unsafe',
BlockedUnsafeReply: 'blocked_unsafe_reply',
Clarified: 'clarified',
@@ -81625,7 +81629,7 @@ export namespace Schemas {
* * `on-track` - on-track
* * `all` - all */
sla?: TicketSlaFilterEnum;
- /** AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress. */
+ /** AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress. */
aiTriageResult?: AiTriageResultEnum[];
/** Assignees to match (any of): 'unassigned', 'me' (resolved to the requesting user), or an object with type ('user' or 'role') and id. Send a list. Views saved earlier can hold a single value instead of a list, or the value 'all'. Wrap a single value in a list, and replace 'all' with an empty list to apply no assignee filter. */
assignee?: TicketViewFiltersAssigneeItem[];
@@ -129024,7 +129028,7 @@ export namespace Schemas {
export type ConversationsTicketsListParams = {
/**
- * Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.
+ * Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `skipped_team_replied`, `skipped_channel_excluded`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.
*/
ai_triage_result?: string;
/**
diff --git a/services/mcp/src/generated/conversations/api.ts b/services/mcp/src/generated/conversations/api.ts
index ff9523cad373..e3046598037a 100644
--- a/services/mcp/src/generated/conversations/api.ts
+++ b/services/mcp/src/generated/conversations/api.ts
@@ -24,7 +24,7 @@ export const ConversationsTicketsListQueryParams = () => zod.object({
.string()
.optional()
.describe(
- 'Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.'
+ 'Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `skipped_team_replied`, `skipped_channel_excluded`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.'
),
assignee: zod
.string()
@@ -464,6 +464,8 @@ export const ConversationsViewsCreateBody = () => zod.object({
'escalated_with_best',
'escalated_no_reply',
'skipped_unactionable',
+ 'skipped_team_replied',
+ 'skipped_channel_excluded',
'blocked_unsafe',
'blocked_unsafe_reply',
'clarified',
@@ -471,12 +473,12 @@ export const ConversationsViewsCreateBody = () => zod.object({
'in_progress',
])
.describe(
- '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
+ '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `skipped_team_replied` - skipped_team_replied\n\* `skipped_channel_excluded` - skipped_channel_excluded\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
)
)
.optional()
.describe(
- "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
+ "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
),
assignee: zod
.array(
@@ -628,6 +630,8 @@ export const ConversationsViewsPartialUpdateBody = () => zod.object({
'escalated_with_best',
'escalated_no_reply',
'skipped_unactionable',
+ 'skipped_team_replied',
+ 'skipped_channel_excluded',
'blocked_unsafe',
'blocked_unsafe_reply',
'clarified',
@@ -635,12 +639,12 @@ export const ConversationsViewsPartialUpdateBody = () => zod.object({
'in_progress',
])
.describe(
- '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
+ '\* `persisted` - persisted\n\* `suggested` - suggested\n\* `escalated_with_findings` - escalated_with_findings\n\* `escalated_with_best` - escalated_with_best\n\* `escalated_no_reply` - escalated_no_reply\n\* `skipped_unactionable` - skipped_unactionable\n\* `skipped_team_replied` - skipped_team_replied\n\* `skipped_channel_excluded` - skipped_channel_excluded\n\* `blocked_unsafe` - blocked_unsafe\n\* `blocked_unsafe_reply` - blocked_unsafe_reply\n\* `clarified` - clarified\n\* `suggested_clarification` - suggested_clarification\n\* `in_progress` - in_progress'
)
)
.optional()
.describe(
- "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
+ "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress."
),
assignee: zod
.array(
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-list.json
index 632b8a3dc55a..fc98d99ba969 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-list.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-list.json
@@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"ai_triage_result": {
- "description": "Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.",
+ "description": "Filter by AI triage outcome. Accepts a single value or a comma-separated list. Valid values: `persisted`, `suggested`, `escalated_with_findings`, `escalated_with_best`, `escalated_no_reply`, `skipped_unactionable`, `skipped_team_replied`, `skipped_channel_excluded`, `blocked_unsafe`, `blocked_unsafe_reply`, `clarified`, `suggested_clarification`, `in_progress`.",
"type": "string"
},
"assignee": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-create.json
index 6f587215e693..a4a6ab9f8324 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-create.json
@@ -5,9 +5,9 @@
"description": "Saved ticket filter criteria: status, priority, channel, sla, aiTriageResult, assignee, tags, tagsMatch, tagsExclude, dateFrom, dateTo, sorting, and search.",
"properties": {
"aiTriageResult": {
- "description": "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress.",
+ "description": "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress.",
"items": {
- "description": "* `persisted` - persisted\n* `suggested` - suggested\n* `escalated_with_findings` - escalated_with_findings\n* `escalated_with_best` - escalated_with_best\n* `escalated_no_reply` - escalated_no_reply\n* `skipped_unactionable` - skipped_unactionable\n* `blocked_unsafe` - blocked_unsafe\n* `blocked_unsafe_reply` - blocked_unsafe_reply\n* `clarified` - clarified\n* `suggested_clarification` - suggested_clarification\n* `in_progress` - in_progress",
+ "description": "* `persisted` - persisted\n* `suggested` - suggested\n* `escalated_with_findings` - escalated_with_findings\n* `escalated_with_best` - escalated_with_best\n* `escalated_no_reply` - escalated_no_reply\n* `skipped_unactionable` - skipped_unactionable\n* `skipped_team_replied` - skipped_team_replied\n* `skipped_channel_excluded` - skipped_channel_excluded\n* `blocked_unsafe` - blocked_unsafe\n* `blocked_unsafe_reply` - blocked_unsafe_reply\n* `clarified` - clarified\n* `suggested_clarification` - suggested_clarification\n* `in_progress` - in_progress",
"enum": [
"persisted",
"suggested",
@@ -15,6 +15,8 @@
"escalated_with_best",
"escalated_no_reply",
"skipped_unactionable",
+ "skipped_team_replied",
+ "skipped_channel_excluded",
"blocked_unsafe",
"blocked_unsafe_reply",
"clarified",
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-update.json
index b54c3376e086..b52056ad76b1 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-views-update.json
@@ -5,9 +5,9 @@
"description": "Saved ticket filter criteria: status, priority, channel, sla, aiTriageResult, assignee, tags, tagsMatch, tagsExclude, dateFrom, dateTo, sorting, and search.",
"properties": {
"aiTriageResult": {
- "description": "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress.",
+ "description": "AI triage outcomes to include. 'in_progress' matches tickets still being triaged. Valid values: persisted, suggested, escalated_with_findings, escalated_with_best, escalated_no_reply, skipped_unactionable, skipped_team_replied, skipped_channel_excluded, blocked_unsafe, blocked_unsafe_reply, clarified, suggested_clarification, in_progress.",
"items": {
- "description": "* `persisted` - persisted\n* `suggested` - suggested\n* `escalated_with_findings` - escalated_with_findings\n* `escalated_with_best` - escalated_with_best\n* `escalated_no_reply` - escalated_no_reply\n* `skipped_unactionable` - skipped_unactionable\n* `blocked_unsafe` - blocked_unsafe\n* `blocked_unsafe_reply` - blocked_unsafe_reply\n* `clarified` - clarified\n* `suggested_clarification` - suggested_clarification\n* `in_progress` - in_progress",
+ "description": "* `persisted` - persisted\n* `suggested` - suggested\n* `escalated_with_findings` - escalated_with_findings\n* `escalated_with_best` - escalated_with_best\n* `escalated_no_reply` - escalated_no_reply\n* `skipped_unactionable` - skipped_unactionable\n* `skipped_team_replied` - skipped_team_replied\n* `skipped_channel_excluded` - skipped_channel_excluded\n* `blocked_unsafe` - blocked_unsafe\n* `blocked_unsafe_reply` - blocked_unsafe_reply\n* `clarified` - clarified\n* `suggested_clarification` - suggested_clarification\n* `in_progress` - in_progress",
"enum": [
"persisted",
"suggested",
@@ -15,6 +15,8 @@
"escalated_with_best",
"escalated_no_reply",
"skipped_unactionable",
+ "skipped_team_replied",
+ "skipped_channel_excluded",
"blocked_unsafe",
"blocked_unsafe_reply",
"clarified",