Select and create a group name using msg.payload

I have removed irrelevant tags to avoid confusion.