Files
calendar/packages/trpc/server/routers/viewer/aiVoiceAgent/create.schema.ts
T
ba50268634 feat: support auto create agent (#23493)
* feat: support auto create agent

* feat: add prompts

* chore: add number to call

* fix typo

---------

Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com>
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
2025-09-10 08:42:39 +00:00

26 lines
739 B
TypeScript

import { z } from "zod";
export const ZCreateInputSchema = z.object({
name: z.string().optional(),
teamId: z.number().optional(),
workflowStepId: z.number().optional(),
templateWorkflowId: z.string().optional(),
generalPrompt: z.string().optional(),
beginMessage: z.string().optional(),
generalTools: z
.array(
z.object({
type: z.string(),
name: z.string(),
description: z.string().optional(),
cal_api_key: z.string().optional(),
event_type_id: z.number().optional(),
timezone: z.string().optional(),
})
)
.optional(),
voiceId: z.string().optional().default("11labs-Adrian"),
});
export type TCreateInputSchema = z.infer<typeof ZCreateInputSchema>;