 A secondary metabolite is not directly involved in those processes, but usually has important ecological function.Examples include antibiotics and pigments.By contrast, in human-based metabolomics, it is more common to describe metabolites as being either endogenous (produced by the host organism) or exogenous.