Pd-catalyzed intramolecular C-N bond cleavage, 1,4-migration, sp3 C-H activation, and Heck reaction: four controllable diverse pathways depending on the judicious choice of the base and ligand.