A three-component synthesis of aryl(heteroaryl)acylamides.