Start Playing Music from Voice Assistant

okay so i implemented the intents like in this post
and it worked, sadly the answer took very long from google ai, but i will try with local ollama, which worked way faster at different intents before

Code copied from the post, but different formation
intent_script:
  play_track_on_media_player:
    name: play_track_on_media_player
    description: Plays any track (name or artist of song) on a given media player
    parameters:
      type: object
      properties:
        track:
          type: string
          description: The track to play
        entity_id:
          type: string
          description: The media_player entity_id retrieved from available devices. 
            It must start with the media_player domain, followed by dot character.
      required:
      - track
      - entity_id
    function:
    type: script
    sequence:
    - service: mass.play_media
      data:
        media_id: '{{track}}'
        media_type: track
      target:
        entity_id: '{{entity_id}}'
  play_playlist_on_media_player:
    name: play_playlist_on_media_player
    description: Plays any playlist on a given media player
    parameters:
      type: object
      properties:
        playlist:
          type: string
          description: The name of the playlist to play
        entity_id:
          type: string
          description: The media_player entity_id retrieved from available devices. 
            It must start with the media_player domain, followed by dot character.
      required:
      - playlist
      - entity_id
    function:
      type: script
      sequence:
      - service: mass.play_media
        data:
          media_id: '{{playlist}}'
          media_type: playlist
        target:
          entity_id: '{{entity_id}}'

but way better would be the music assistant integration would already provide the intents