Accept an input (Yes / No), if there is no response from user in 3 sec proceed with Yes as default

This is a sample already ready for you by Yoichi

Cal-out activity would also work as suggested by @sharath.aengali , again depends on your convenience and use case

Official doc:

Input Dialog (uipath.com)

Callout (uipath.com)