start process per message

I’m trying to start a different process when a given process sends a message to this process, could they help me set up a message event for both sending and receiving? I did what was in the documentation but it did not work