2
0

🛂 (whatsapp) Set default whatsapp expiry to 4 hours

This commit is contained in:
Baptiste Arnaud
2023-10-03 10:53:37 +02:00
parent 3292cccf51
commit a53d128fb0
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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>