Filament profile settings are used only during the slicing process. Assigning AMS slots when a print is started just tells the printer which slot to use for which studio pallet number.
There is a sanity check which for example won’t let you assign a studio pallet slot containing PLA to an AMS slot which it thinks contains PETG.