How to trigger an ESP32 through GSM module to read data from firebase.?

I am trying to design an IoT project where,
an ESP32 is connected to a GSM module, will be assigned to do few logic job when it receives any command remotely through firebase RTD.

I am confused with how to trigger the ESP32 to read data from firebase RTD to do the jobs, as continuous polling a node from firebase RTD through GSM data will increase data usage.

I am not willing to use the sms trigger due to some restrictions.

Please guide me on how to proceed.

I am not 100% sure I understand your design. Perhaps adding a simple diagram of the components and how they are connected might be useful.