There’s a whole class of birds known as obligate ant-followers. These are almost always found around ant swarms, eating insects the ants have flushed out of the leaf litter. Other birds are opportunistic ant-followers and peck around the ants when, by chance, they encounter them.