🛂 (whatsapp) Set default whatsapp expiry to 4 hours
This commit is contained in:
@ -44,7 +44,7 @@ You can customize how your bot behaves on WhatsApp in the `Configure integration
|
||||
|
||||
<img src="/img/whatsapp/configure-integration.png" alt="WhatsApp configure integration" width="600px" />
|
||||
|
||||
**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.
|
||||
|
||||
|
@ -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<typeof incomingMessageSchema>
|
||||
export type WhatsAppSendingMessage = z.infer<typeof sendingMessageSchema>
|
||||
|
Reference in New Issue
Block a user