How can i detect deal stage change in pipedrive?

Thank you :slight_smile:
where do i set the stage i search for?

How do i set all the missing parameters? i have never used such a code.