Alkaloids are made by a large variety of organisms , such as bacteria , fungi , plants , and animals and are part of the group of natural products ( also called secondary metabolites ) . Alkaloids are produced by a large variety of organisms , including bacteria , fungi , plants , and animals and are part of the group of natural products ( also called secondary metabolites ) .