Create channel integration between two servers using webhooks


Hi, I want to integrate two rocket chat servers by creating a dedicated channel in both servers. Using incoming and outgoing webhooks for both to send/receive messages from the specific channels.

I have setup the webhooks but I’m not sure whether a script should be used or not on the webhooks?
Anyway, without scripts it’s not working, but what is the script which should be used on the incoming and outgoing webhooks?