Triggering an Avatar Prompt After Inactivity

I would like to have a character displayed on a screen in an outdoor environment. The idea is that if no one asks the character a question after a certain amount of time, the character can trigger a behavior or action within UE5, automatically playing a message such as:
“You can ask me anything”,
so that people passing by understand that they can interact with the avatar.

I only use Unity, but the workflow would be the same I think - create a script that monitors the users input, if there is none for a specified amount of time, instruct (via code) the character to say what you want i.e. “Hi, you can ask me anything!”. I can’t be more specific than that, sorry, as I don’t use Unreal.