To add custom processors to SAM, create the processors and then register it with SAM.
Createing Custom Processors
Registering Custom Processors
Creating a Custom Streaming Application