Webhook for importing xml data from a external URL

Description

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.

Server Setup Information

  • Version of Rocket.Chat Server: 8.9.0
  • Operating System: Oracle Linux 8.10
  • Deployment Method: Docker
  • Number of Running Instances:1
  • DB Replicaset Oplog:
  • NodeJS Version: 24.15.0
  • MongoDB Version: 8.2.3
  • Proxy: None
  • Firewalls involved:None

Any additional Information

I am not a software engineer

You have a few choices. Pay for one, become one, or don’t do it.

You need to process your XML to text.

That’s more a generic JS thing.

No one knows the format of your xml or the text your want to post so no one can really help.

You’d help yourself by reading and understanding your issue properly first. You are (marginally) more likely to get a solution.

Avoids the https://xyproblem.info

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?