I agree with the above - here’s the quick fix I created. After your action is done, add another if/then branch. It would say something like “Is there anything else you need?” followed by:
> If YES, then [action:speak to rep, email or whatever you want]
> If NO, then chat ends
Hope this helps!