Hi there, I've been trying to implement something similar to the timeout and warning messages, detailed in this post: Webchat Timeout for inactive interaction
However, I want to clear the timer I have set if the customer does send a message, at the moment I've got it to work but it either kept the timer running even if both agent/client send a message Or it clears the timer once the agent sends a message.
Our agents will always start the chat 'hello, how can I help?', I want the timer to start after this. I just genuinely don't know how I'm meant to do this. I've attached the relevant part of my script, this is the direction I was going in but not sure if it's right. Please note: I am not an actual coder, I can get by but this is pushing me to the limits of my knowledge.
I am also hoping that I can keep re-setting this timer every time an agent sends a message, and hopefully clear the timer every time the customer responds. But not even sure if that's possible.
We're using widgets v2. Please help! Cheers,
Eilidh