Sub payloads creation

I want to create sub payloads inside a single payload please let me know how to do that