An effective method for aminoacylation of indoles and pyrroles has been achieved. The transformation involves a multicomponent one-pot cascade reaction between indoles or pyrroles, ynol ethers, and sulfonyl azides, creating four different bonds regioselectively through N-sulfonyltriazole intermediates. The oxo-tryptamines and oxo-pyrroloethanamines are generated in moderate to high yields under mild reaction conditions.