Automatically run .gh script by http-request

Hello! For the last four years I have developed a service for real estate agents and real estate developers that (kind of) automates the architectural design process. The idea is to automatically generate a bunch of early-stage design proposals for any given address in germany while following most of the important codes and regulations. My script imports all the necessary geodata automatically (like terrain, cadastral-information and 3D-buildings) and then applies all sorts of typology-algorithms to the property in order to generate variants. However, since its grasshopper it´s a semi-automatic process that requires manual work for each job which is okay but not awesome. While some steps might always require some manual input some steps could be generated “on the fly” (like the terrain generation).

I was wondering if I could trigger a .gh script automatically like an API-Request with parameters. Like http://XX.XX.XX:80/generate_terrain_01.gh?radius=100&lat=123&lng=123 calling a gh-script that creates a terrain-mesh and saves it as a .3dm file somewhere (e.g. google drive).

I have a running VM (Azure) that sucessfully runs rhino compute. Also Hops does work but I want to trigger rhino compute by http request - not by hops. Any Idea where to start? Thanks!

That´s the 3D-environment my grasshopper script creates for any given lat/lng:

Rhino compute remote server is setup and healthcheck is positve:
Screenshot 2024-09-28 152333

Hops does work


Screenshot 2024-09-28 152834