Temporal integrtaion with Serverless workflow with type script sdk

I am looking for example code how to integrate serverless workflow with temporal. Is this something possible to achieve ?

Is it possible to create a workflow definition via json or yaml and deploy them runtime which calls the temporal workflow ?

Hi could look at Java sample here for ideas. You could use similar approach with the cncf sw typescript sdk and the temporal ts sdk.

Thank you for the java sample link, is there any typescript based example? that would be really helpful to get started. We are currently performing poc , lead to typescript based example will help a lot here.

Mean time i am going through java based example