🐛 (chat) Enable prefilledVariables in preview mode
Also make list values compatible
This commit is contained in:
@ -238,6 +238,18 @@ export const startPreviewChatInputSchema = z.object({
|
||||
'If set, it will override the typebot that is used to start the chat.'
|
||||
),
|
||||
startFrom: startFromSchema.optional(),
|
||||
prefilledVariables: z
|
||||
.record(z.unknown())
|
||||
.optional()
|
||||
.describe(
|
||||
'[More info about prefilled variables.](../../editor/variables#prefilled-variables)'
|
||||
)
|
||||
.openapi({
|
||||
example: {
|
||||
'First name': 'John',
|
||||
Email: 'john@gmail.com',
|
||||
},
|
||||
}),
|
||||
})
|
||||
export type StartPreviewChatInput = z.infer<typeof startPreviewChatInputSchema>
|
||||
|
||||
|
Reference in New Issue
Block a user