the enamine is generally generated "in situ" from catalytic amine (such as pyrrolidine) and a ketone. the enamine then reacts as the dienophile with a 1,2,4-triazine. the initial adduct then expels nitrogen, and the pyridine is rearomatized with loss of the amine.