creates a function to send a raw payload into the pipeline