Debounce in Executed Automation

I want to send some entity changes to Slack.
Some entity has a lot of data that needs to be filled, but it is difficult to call at the desired time because it occurs as an action every time a field is changed.
For example, in the case of the dates field, two actions occur when the start date is changed and when the end date is changed.
I was trying to write a Debounce function to send a message to Slack only for the last change.
However, there doesn’t seem to be a setTimeout in the scripts in Automation.

Is there any way to solve this similar issue?

It’s self-explanatory.
I decided to use Slack’s chat.update api to handle it.