How to receive MQTT messages from a HASS by snippets

Hi,
I would like to receive a MQTT message from my HASS (iobroker) back in the snippet I defined for an intent. Can I code this within a snippet and could please anybody give me a sample code.

Thanks