You should identify your ants first. Some ants are sweet others are grease eating ants. If you are not sure use a grease ant bait as it usually also contains some sugar. If you have fire ants they need a grease bait. Sugar baits will not work.
https://lancaster.unl.edu/pest/resources ... 003-97.pdf
How to Make and Use Homemade Ant Bait
Sugar Ant Bait Recipe
Mix 2 tablespoons of mint jelly with about ¼ teaspoon of boric acid powder. Research suggests that mint jelly is the best sugar ant lure, but you can also try another jelly flavor if you don't have mint jelly in your fridge already.
Grease Ant Bait Recipe
Mix 2 tablespoons of peanut butter, 2 tablespoons of honey, and about ½ teaspoon of boric acid powder. Protein-loving ants respond best to a bait made of both protein and sugar.
Using the Ant Bait
Caution: Keep children and pets away from the ant bait mixture. Although boric acid is considered to have low toxicity, you don't want your dog or cat licking up the bait, nor should you allow children to come in contact with it. It's always better to be safe! Store the boric acid and any extra bait mixture where children and pets cannot access it.
Place your ant bait in an area where you see ants the most. You want the bait to be somewhere along their regular travel path. Use masking tape to secure a square of waxed paper or cardboard, and place the ant bait mixture on it. If you chose a good location and prepared the right kind of bait, you'll probably find ants swarming around the bait within a few hours. If you don't, try moving the bait to a different location.
You will need to replace the bait regularly with a fresh batch, as the ants won't be interested in jelly or peanut butter once it dries up. Continue putting out bait until you no longer see ants.