Simulate attribute auto expiry

#1

What would be the best way to simulate an auto expiry on an attribute to clear it or set it to a known value?

Scenario I’m thinking of is an attribute which indicates conversation flow is to human rather than bot. Even though instruction to user is to type ‘end chat’ at end of conversation, most will probably forget.

It would be nice to automatically end ‘pass to human’ after a preset time or after a period of inactivity so that next visit they’re talking to the bot again.

Thanks.

(John Jackson) #2

Probably best way is to use the ‘wait’ service to cause a flow to pause for an hour then clear the attribute after that.

We have a human takeover article on our medium blog that you can search for, has some ideas of how you can implement this kind of thing. Good luck with it.

#3

Great, thanks John.

Graham

#4