I've found that
ants seem to prefer honeydew produced from aphids raised on sunflowers (any
Helianthus spp. including Sunchokes and various
perennial sunflowers) and will pull aphids off of
everything 30-75 feet from the sunflowers (depending on the sunflower plot size). Best of all, the sunflowers don't seem to be bothered by the aphids, even when infested heavily.
Always had a hard time keeping the aphids at bay on certain crops, but the worst always was yardlong beans; aphids would become so infested they would destroy flowers before they set fruit and would damage the fruits to the point they would not be marketable. I almost gave up on the crop entirely. Then one year I planted bed full of sunchokes about 20 ft away from one of my yardlong bean plots and that plot had zero aphids. Another plot of yardlong beans was around 100 feet away from the sunchokes and was infested normally. The sunchokes were infested with aphids and covered with ants, but yields were good. The next season I tried annual sunflowers in one part of the garden and planted a row of perennial Maximillian sunflowers along one edge. Both were effective at enticing the ants to round up all the nearby aphids and tend them on the sunflowers instead of my crops.