If you accidentally ate ants, don't worry, you'll most likely be fine.
Here's why:
-
Ants aren't poisonous: According to available information, ants are not poisonous to humans.
-
They're edible (sometimes by choice!): In some countries, ants are actually eaten as a food source.
-
Your stomach acid will take care of them: If the ants managed to survive being chewed, they "will certainly die in the acid bath of your stomach" (21-Jan-2015). So, your stomach acid will neutralize them.
Essentially, accidentally eating a few ants poses no health risk.