Hi,
I am looking to add some external XML data (accessible via a https url) directly in to a room.
I have created the webhook and tested it using the example script in Rocket Chat Integrations but now need to work out the importing of the external xml data.
I would be happy for any examples and suggestions as I am not a software engineer…
Thanks.
The webhook endpoint takes JSON POST bodies, so the XML has to become text before it reaches the room. Two shapes work: a poller outside the workspace (cron or a systemd timer) that GETs the URL, extracts the fields you want, and POSTs {“text”: “…”} to the webhook URL with its token; or Script Enabled on the integration, which runs in an isolated VM and reshapes data that has already arrived at the webhook. For feed items that should land in different rooms, enable ‘Allow to overwrite destination channel in the body parameters’ and put the channel in the payload. Is the XML feed a fixed schema you can map once, or does its structure change between responses?