How to ignore messages sent before an action was run but that were received after it?

You can do this by modifying the connector, but it is not very simple. There is an example in this repository of how to achieve this. Take a look at the Message Collector, which does almost everything you want.