Ifttt fan?

Hi. I’m using HA and trying to figure out how to run IFTTT scripts using the fan template as a guide. I have a script for each of the speeds but am unsure how to code all three scripts under speed in the fan template. Anyone do this yet?