Area awareness in automations

Is there a way to use the area awareness in an automation? So that you can use an automation to to things for a room you are speaking in? Like shut lights off does work orb, but for example I want to trigger something in a room I am talking in, how can I know wich assistant is triggering the automation?

Found a solution for this in another post

{{ area_name(trigger.device_id) }}

works great