Considering phenylamine reacting with an acyl chloride..
I have a question to outline the mechanism between dimethylphenylamine and an acyl chloride
How do you know when acylation/electrophilic substitution occurs, and when the nitrogen on phenylamine will act like a nucleophile and attack the d+ carbon on the acyl chloride?
And when the nitrogen atom on the C6H5 attacks a d+ carbon, is this nucleophilic substitution?