Let voice asistant say something triggered from an automation

Hey,

apologies this might be a stupid question but I can’t find how to do it.

I have an espmuse which I used to give announcements when certain events happen (e.g. if the blinds for our garden doors are being opened or if someone arrives home). I used media player for this.

I have now modified the device to act as a voice assistant. It works with wake word and so on, however I’d like to now let the voice assistant talk on the aforementioned events. Is there a way to trigger such an assistant to say something based on an automation? Is there a service to call?

Thanks!