CAPB is
Cocamidopropyl Beatine
It is one or the co surfactants used in Shampoos when you make shampoo from scratch
They provide mild cleansing and usually added along with other surfactant
It's used in paraben and sulfate free shampoos
It's an organic compounds derived from coconut oil and dimethylaminopropylamine.