With chickens in a new coop I do one of the following:
1) Lock them in it for about 6-7 days before free ranging at all. This is unless they have a small coop where this is prohibited by the amount of available space
2) Round them up at night after they are comatose and stick them inside...