Given a scientific passage and an answer, generate a question for the given answer.

Passage: Amides are prepared by the reaction of a carboxylic acid with ammonia or an amine. Answer: carboxylic acid reaction
What kind of reaction is needed to prepare amides?