Amide derivatives of the general formulae Ia and Ib:
are disclosed. Pharmaceutical compositions containing these compounds, and methods for their use, inter alia, for treating and/or preventing gastrointestinal disorders, pain, and pruritus are also disclosed.