They come home before dark. Works almost always without having to interfere. But… there exceptions. Some chickens prefer trees or bushes, especially when its getting warm at night.
You can give a few mealworms or some scratch in the coop/run before roost time. Most chickens love it and you can...