Thought I'd share my Prusa style autoload macro (firmware => 3.5.0) for others to use or improve. Please feel free to add your suggestions!
daemon.g
; Monitor the Filament Sensor to see if it's loaded
if {sensors.filamentMonitors[0].status = "noFilament"}
M98 P"0:/macros/load.g"
load.g
;; Filament AutoLoad Macro for RepRapFirmware
; while waiting for the user to load filament, check the filament sensor
while {sensors.filamentMonitors[0].status = "noFilament"}
M117 "Please load filament."
; Read filament sensor and if filment is present, continue the load process
if {sensors.filamentMonitors[0].status = "ok"}
; Ask user what type of filament is loaded
M117 "Please select the type of filament."
M291 S4 T0 P"Filament Type" R"Filament Type" K{"PLA","PETG","ABS","TPU","Nylon"}
; Set the temperature based on the filament type
if {input == 0}
G10 S200 ; Set temperature for PLA
elif {input == 1}
G10 S235 ; Set temperature for PETG
elif {input == 2}
G10 S240 ; Set temperature for ABS
elif {input == 3}
G10 S220 ; Set temperature for TPU
elif {input == 4}
G10 S250 ; Set temperature for Nylon
M116 ; Wait for the temperatures to be reached
M83 ; Extruder to relative mode
G1 E15 F120 ; Extrude 15mm of filament at a speed of 120mm/min
; Ask user if filament was grabbed by gears, if not, extrude more filament
M291 S4 T0 P"Filament Loaded" R"Filament Loaded?" K{"Continue","Try Again"}
if {input == 1}
G1 E15 F120 ; Extrude 15mm of filament at a speed of 120mm/min
elif {input == 0}
G1 E80 F240 ; Extrude 80mm of filament at a speed of 240mm/min
M117 "Filament loaded successfully."
; Set the extruder position to 0
G92 E0
M104 S0 ;turn off tool temp