Custom call for Confirm Dialog

Hi all, very new to dash and web development in general. I had a pretty basic question I’m really hoping someone can help with. I have an application running that I am getting realtime data using an interval. With that data, I want to do a check to see if the data is past some condition and if it is, I want to pop up a confirm dialog box but I am not exactly sure how to do this. Can I just make this a callback that has no input component, meaning no button or anything that triggers it, that I call from another function, and when I return from that function, return True if I want it to pop up the dialog box?

Thanks in advance!

You could possibly use your dcc.Interval (or define another if the interval needs to be different) as the Input to a callback that does the data check and displays the confirm dialog box should it pass your conditions.