Can i write seperate webservice for RASA Diagloge core

Wouldn’t it be easier to write a Custom NLU Components in that case or to use the Mapping Policy to modify the tracker?