Is it possible to autoate in app action

Is it possible to automate in app action by scriptable?
App can be automatically open by Automations in ios but I want it to automatically respond to a dialogue box of app… And response is in form of a clickable button.
In the image, This app is automatically opened by ios automations but is it possible to select Yes automatically in the app?

No. That functionality would have to be built into the app with the button and exposed in a way that Scriptable could trigger it with some sort of call.

Sandboxing on i*OS means you can’t arbitrarily interact and control other apps. It’s a good security practice.