Urea-based constructs readily amplify and attenuate nonlinear optical activity in response to H-bonding and anion recognition.