Determining when to go all-in involves considering a combination of factors, including the strength of your hand, the community cards, your opponent's playing style and range, the pot odds, and the table dynamics. You should also think about your image and how your opponent is likely to perceive your all-in bet. Ultimately, the decision to go all-in should be based on a careful analysis of the situation and a confident assessment that it's the most profitable play.