You're doing it the hard way. Boric acid is a staple of off the shelf baits- you are trying to manufacture it at home and hoping the species of ant you are after will be drawn by the cat food. Search Fluoridated ant bait stations- they are commercial quality and the best I've used yet. Irresistible to almost all ants.
Ants can detect food using their sense of smell from up to 20 feet away.
You are going to a lot of trouble to make ant bait when you can buy it premade. Boric Acid (Borax) is the active ingredient in just about all of them and the baits are usually more attractive than pet food. Recommend Fluorguard if you are looking for a bait that works on most common ants (non-fire/pharoah)
Borax can be an effective natural insecticide against weevils. Sprinkle a thin layer of borax in areas where weevils are present, such as pantry shelves or around food containers. The borax disrupts the insects' digestive system, ultimately killing them. Be cautious when using borax around food items as it can be toxic if ingested in large quantities.
Ants are able to find food by communicating with each other. They use they pheromones to direct each other on where the food would be.
Ants use chemical signals to tell each other about food and a number of other things like enemies.
follow me i found the food sourse
Ants rely on pheromones, chemical signals that they leave behind as they move. When an ant finds food, it will lay down a trail of pheromones for other ants to follow, leading them to the food source. This helps the colony efficiently locate and gather food.
Ants can smell food from several feet away and are able to locate it in their environment using their strong sense of smell.
ants get food from their senses
Ants use chemical signals to impart information to each other. This can be information is generally about food or predators. When you see them following each other they are following a chemical trail not the ants in front of them.
Ants work together in a colony by each ant having their own job. There are ants that gather food, there are scout ants that find food for the other ants to gather. There are also warriors who attach other nests and defend their own nest and queen.
It is their mode of communication about movement,procurement of food etc. that ants touch each other while passing in a row.