Measure when users see a reply to their onboarding chat input (#23574)

This commit is contained in:
scotttong authored and GitHub committed 2026-12-02 18:03:08 -08:00
1 parent 2b65b97cae
commit b0f682b66b
17 files changed
+367 -7

No files matched your search

@@ -268,6 +268,8 @@ export const onboardingTelemetryEventSchema = z.discriminatedUnion("event", [
event: z.literal(ONBOARDING_TELEMETRY_EVENTS.chatMessageSent),
companyId: optionalCompanyIdSchema,
surface: z.enum(AGENT_CHAT_SURFACES),
chatId: z.string().uuid().optional(),
messageId: z.string().uuid().optional(),
})
.strict(),
]);
@@ -377,6 +379,8 @@ export function onboardingTelemetryEventToPostHogProperties(
break;
case ONBOARDING_TELEMETRY_EVENTS.chatMessageSent:
set("surface", input.surface);
set("chat_id", input.chatId);
set("message_id", input.messageId);
break;
}