In OSB, the $body context variable contains the actual message payload and is the primary input for the Publish action. $Header contains SOAP headers, $Attachments contains attachment information, and user-defined variables are custom. The Publish action uses $body to extract the message content to be published.