chore: added email and company form to cal.ai form (#14306)
* added email and company form * i18n * feat: add guest email and company * chore: update and format prompt * chore: hint var * chore: fix err message --------- Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
10 files changed
+96
-8
No files matched your search
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `guestCompany` to the `AIPhoneCallConfiguration` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `guestEmail` to the `AIPhoneCallConfiguration` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "AIPhoneCallConfiguration" ADD COLUMN "guestCompany" TEXT NOT NULL,
|
||||
ADD COLUMN "guestEmail" TEXT NOT NULL;
|
||||
@@ -396,7 +396,7 @@ model OrganizationSettings {
|
||||
isOrganizationVerified Boolean @default(false)
|
||||
orgAutoAcceptEmail String
|
||||
lockEventTypeCreationForUsers Boolean @default(false)
|
||||
// It decides if instance ADMIN has reviewed the organization or not.
|
||||
// It decides if instance ADMIN has reviewed the organization or not.
|
||||
// It is used to allow super sensitive operations like 'impersonation of Org members by Org admin'
|
||||
isAdminReviewed Boolean @default(false)
|
||||
dSyncData DSyncData?
|
||||
@@ -919,6 +919,8 @@ model AIPhoneCallConfiguration {
|
||||
yourPhoneNumber String
|
||||
numberToCall String
|
||||
guestName String
|
||||
guestEmail String
|
||||
guestCompany String
|
||||
enabled Boolean @default(false)
|
||||
beginMessage String?
|
||||
llmId String?
|
||||
|
||||
@@ -702,6 +702,12 @@ export const AIPhoneSettingSchema = z.object({
|
||||
guestName: z.string().trim().min(1, {
|
||||
message: "Please enter Guest Name",
|
||||
}),
|
||||
guestEmail: z.string().trim().email().min(1, {
|
||||
message: "Please enter Guest Email",
|
||||
}),
|
||||
guestCompany: z.string().trim().min(1, {
|
||||
message: "Please enter Guest Company",
|
||||
}),
|
||||
generalPrompt: z.string().trim().min(1, {
|
||||
message: "Please enter prompt",
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user