Automatic payload generator