Is it possible to change an attribute with automation?

Hi, I’m fairly new to automations and home assistant in general.
What I’m trying to do is:
Send an actionable notification to users (family) with question “are you having dinner at home?”
they have 3 options -yes -no -I’ll be late
I can get their answers (with 3 different automations), and user id via

{{ trigger.event.data.action }}
{{ trigger.event.context.user_id }}

but I’ don’t know how to store this value.
I thought it could be the best, as an attribute value to the person/user. And the answers could be displayed in lovelace.

You could create an input_text for each persons response that would be displayable in lovelace.