I took a look at the issue, and the root cause is simply how the data is being accessed inside the workflow. Instead of referencing the input directly, you just need to use startTrigger.data, which contains all the values passed from the main app when the workflow is triggered.
For example, if you're sending the start date and end date from your Retool app into the workflow, you can access them like this:
Hey @Heliflyer! It looks like you are almost there.
It appears you are running the workflow node directly and expecting to see the data from your app, but in the editor there is no app context. You should publish the workflow, go back to the app (and refresh the page so it loads the newly published workflow image) and then run the query which triggers the workflow.
Then you should be able to see that run within the workflowβs Run History with the inputs from the application in the startTrigger entry and the returned output in the code1 entry.
ETA: if you want to test within the workflow editor, you need to setup the Test JSON Parameters area of the startTrigger block with the object structure you are sending from the application. I believe you can see this in the earlier example from @WidleStudioLLP