mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 20:09:33 +01:00
Measure when users see a reply to their onboarding chat input (#23574)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user