Good day everyone, maybe someone has met with this situation and can share their experiences, I will be happy to see any comments.
The situation is such, I have made automation, that when the agent answers the client and sends a comment through a line "Reply to customer", then automation changes to the status pending and in the opposite direction, when the client writes the answer from a portal or from mail, then the status changes to working, but the problem is that when writing an internal comment in the field "Add internal note".
In automation I set the first condition in the rule that "The main action is a comment", probably because of this very problem, but without this field the rule will not work.