Dont poison them, you cruel heartless human being you.
Make a contraption filled with sugar, molasses, honey, anything else sweet that ants would like to eat.
They will enter the contraption, then just MOVE to contraption outside without killing any ants.