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