Google generative ai conversation generate content will not rendered the AI generated content

Team need with my automation.

Running google_generative_ai_conversation.generate_content and all is working except for

generated_content.text

which returns the error of

Error rendering data template: UndefinedError: 'generated_content' is undefined

The action below is developer tools

- action: google_generative_ai_conversation.generate_content

returns the

generated_content

ok and as expected.

Code with the issue.

  - action: notify.mobile_app_sm_g990e
    data:
      message: '{{ generated_content.text }}'
      data:
        entity_id: camera.front_dome_cctv_ch7_2
        push:
          category: camera
  - action: notify.mobile_app_sm_g990e
    metadata: {}
    data:
      message: '{{ generated_content.text }}'
      data:
        image: /local/camera/googleimage.jpg

Fill Automation Code

id: '1730185820356'
alias: Z Test
description: ''
triggers:
  - trigger: mqtt
    topic: frigate/events
    payload: Front_Dome_CCTV_zone
conditions: []
actions:
  - action: camera.snapshot
    target:
      device_id: b87748ba321428asss22d802727fddda27
    data:
      filename: /config/www/camera/googleimage.jpg
  - action: google_generative_ai_conversation.generate_content
    data:
      image_filename: /config/www/camera/googleimage.jpg
      prompt: |-
        Very briefly describe what you see in this image, but only if the image
         has a person, a car, a bicycle or a cat in it,  from the front dome security camera. Your message needs to be short to fit in a phone notification. Don't describe  stationary objects or buildings.
    response_variable: generated_content
  - action: notify.mobile_app_sm_g990e
    data:
      message: '{{ generated_content.text }}'
      data:
        entity_id: camera.front_dome_cctv_ch7_2
        push:
          category: camera
  - action: notify.mobile_app_sm_g990e
    metadata: {}
    data:
      message: '{{ generated_content.text }}'
      data:
        image: /local/camera/googleimage.jpg
mode: single

Resolved.

You cant run the code blocks by them self but if you go to the automation page and run from there it works as expected.