First

Which Google Cloud Platform compute service should I choose?

Google Cloud Functions

Cloud Functions allows you to write Javascript functions that run on Node.js, and can access other platform APIs.

"With Cloud Functions, you can build complex individual functions that get exposed as microservices... without having to maintain systems and glue them all together."

For additional serverless options, please see Which Google Cloud Platform serverless compute option is right for me?