Help with dialogs

Hi, I need help to do this example:

{
  "type": "minecraft:dialog_list",
  "title": "Say My Name",
  "inputs": [
    {
      "type": "minecraft:text",
      "key": "name",
      "width": 200,
      "label": "Name"
    }
  ],
  "external_title": {
    "text": "Say My Name",
    "click_event": {
      "action": "run_command",
      "command": "say $(name)"
    }
  },
  "can_close_with_escape": false,
  "pause": false,
  "button_width": 200,
  "dialogs": "#minecraft:quick_actions"
}

I don't know yet how dialogs works with macros and inputs :/

Thanks for reading

Continue to help post