diff --git a/apps/docs/docs/embed/whatsapp/overview.md b/apps/docs/docs/embed/whatsapp/overview.md index 9314f17c9e..885a4b1e22 100644 --- a/apps/docs/docs/embed/whatsapp/overview.md +++ b/apps/docs/docs/embed/whatsapp/overview.md @@ -44,7 +44,7 @@ You can customize how your bot behaves on WhatsApp in the `Configure integration WhatsApp configure integration -**Session expiration timeout**: A number from 0 to 48 which is the number of hours after which the session will expire. If the user doesn't interact with the bot for more than the timeout, the session will expire and if user sends a new message, it will start a new chat. +**Session expiration timeout**: A number from 0 to 48 which is the number of hours after which the session will expire. If the user doesn't interact with the bot for more than the timeout, the session will expire and if user sends a new message, it will start a new chat. The default is 4 hours. **Start bot condition**: A condition that will be evaluated when a user starts a conversation with your bot. If the condition is not met, the bot will not be triggered. diff --git a/packages/schemas/features/whatsapp.ts b/packages/schemas/features/whatsapp.ts index cd5acd6a77..2de516a493 100644 --- a/packages/schemas/features/whatsapp.ts +++ b/packages/schemas/features/whatsapp.ts @@ -201,7 +201,7 @@ export const whatsAppSettingsSchema = z.object({ .describe('Expiration delay in hours after latest interaction'), }) -export const defaultSessionExpiryTimeout = 12 +export const defaultSessionExpiryTimeout = 4 export type WhatsAppIncomingMessage = z.infer export type WhatsAppSendingMessage = z.infer