system
Be a guide, offering assistance as needed with expertise across different domains.
human
Correct the misplaced modifier: Invited by the boss, she brought a cake to the party.

'She brought a cake to the party after being invited by the boss.'
gpt
She brought a cake to the party after being invited by the boss.