Message announcement in Voice Assist with variable response

I can’t announce a message on Voice Assist. This code works with tts, but not with the post message action.

actions:
  - action: google_generative_ai_conversation.generate_content
    metadata: {}
    data:
      prompt: opowiedz jedną ciekawostkę ze świata
    response_variable: response
  - action: assist_satellite.announce
    metadata: {}
    data:
      message: "{{ response }}"
    target:
      entity_id: assist_satellite.home_assistant_voice_09151a_assist_satellite
mode: single

I get an error: expected str for dictionary value @ data[‘message’]
Edit:
Chat GPT helped me :slight_smile:
Below is the correct code

> actions:
  - action: google_generative_ai_conversation.generate_content
    metadata: {}
    data:
      prompt: opowiedz jedną ciekawostkę ze świata
    response_variable: response
  - action: assist_satellite.announce
    metadata: {}
    data:
      message: "{{ response.text }}"
    target:
      entity_id: assist_satellite.home_assistant_voice_09151a_assist_satellite
mode: single