After the completion of the first user task, I check in the task listener if the subsequent user task has the same approver. If it is the same approver, there is an automated approval process.
However, I have noticed that the completion event of the automated approval user task is triggered twice.