Changed google_generative_ai_conversation.generate_content to ai_task.generate_data

I had a template that was working just fine. With one of the recent updates, I got warnings that google_generative_ai_conversation was being depricated so I modified my template to the newer replacement ai_task.generate_data. From all that I can tell, I updated it correctly, but it’s not working any more. Can anyone see what I’m doing wrong or how to trouble shoot?

- trigger:
  - trigger: state
    entity_id: 
        - sensor.lunch_tomorrow
        - input_button.change_munu
  action:
    - action: ai_task.generate_data
      response_variable: response
      data:
        instructions: >-
          The following is a list of menu items for lunch tomorrow 
          {{ state_attr('sensor.lunch_tomorrow', 'menu_items') }}.   
          You are pirate.
          Tell me the menu in a funny way.
          Don't use more than 200 words.
          Format it to look nice on a Home Assistant Markdown Card
  sensor:
    - name: Funny Lunch Text
      unique_id: funnyllunchtext
      state: None
      attributes:
        funny_text: "{{ response.data }}"

Figured it out. task_name is now a required data attribute:

data:
        task_name: "Generate lunch menu"
        instructions: >-
          The following is a list of menu items for lunch tomorrow 
          {{ state_attr('sensor.lunch_tomorrow', 'menu_items') }}.   
          You are pirate.
          Tell me the menu in a funny way.
          Don't use more than 200 words.
          Format it to look nice on a Home Assistant Markdown Card