fix(automation): allow explicit scheduledAt / scheduleOffsetMinutes

P3-58: Automation rule's schedule_meeting action hardcoded +1hr from
now, producing meetings that could land in the past or outside working
hours. Accept scheduledAt (ISO-8601) first, fall back to
scheduleOffsetMinutes, and only default to +60min when the rule
specifies no time at all.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:06:06 -04:00
1 parent 7eba08cfb9
commit 32e676aec9
2 files changed
+14 -5

No files matched your search

@@ -65,6 +65,10 @@ export const scheduleMeetingConfigSchema = z.object({
title: z.string().optional(),
participantAgentIds: z.string().optional(),
durationMinutes: z.number().int().positive().optional(),
// Absolute ISO-8601 scheduling is preferred; otherwise callers can specify
// an offset in minutes from now (replaces the previous hard-coded 60min).
scheduledAt: z.string().optional(),
scheduleOffsetMinutes: z.number().int().positive().optional(),
});
export const createDocumentConfigSchema = z.object({