I would like to send a thank you email when appointment is completed

I would like to send a thank you email
If status is completed.
Could you tell me how to do ?
I saw this post: https://premium.wpmudev.org/forums/topic/appointments-conditional-email-notifications but I don't know how to adapt...

Thanks for helping.

Côme