Mobile App Notifications Using a Variable

I’m using Google AI and storing a response in a variable called “light_msg”. I would like to send a notification using that variable. The notification comes through but there are extra characters in the message. How am I formatting this wrong?

action: google_generative_ai_conversation.generate_content
metadata: {}
data:
  prompt: >-
    Tell me that somone left the light on again. Your response should be short
    and fit on a phone notification. 
response_variable: light_msg

Notification Config:

action: notify.mobile_app_mike_s_iphone_14_pro
metadata: {}
data:
  message: "{{ light_msg }}"

Here is what the notification looks like. How can I strip the extra chartacters?

try this:

action: notify.mobile_app_mike_s_iphone_14_pro
metadata: {}
data:
  message: "{{ light_msg['text'] }}"