The present invention relates to morpholine and 1,4-oxazepanamide derivatives of formula I, which are agonists of SSTR4, useful for preventing or treating a medical disorder associated with somatostatin receptor subtype 4 (SSTR4). The present invention also relates to a process for the preparation of pharmaceutical compositions and to a process for the preparation of the compounds according to the invention. Formula I본 발명은 소마토스타틴 수용체 아형 4(SSTR4)와 관련된 의학적 장애를 예방하거나 치료하는데 유용한, SSTR4의 작용제인 화학식 I의 모르폴린 및 1,4-옥사제판 아미드 유도체에 관한 것이다. 또한, 본 발명은 약제학적 조성물의 제조 방법 및 본 발명에 따르는 화합물의 제조 방법에 관한 것이다.화학식 I