Determining how and why cells make decisions

Cells are constantly making decisions that lead to differentiation. For instance, cells in an embryo make a series of decisions that determine whether they will become neurons in some cases and muscle cells in others. How do cells make these decisions?