Workflows beta user here.
I made a Worflow triggered by webhook.
How can I manage the return body of the webhook ?
Actually it returns something like {"success":true,"workflow_run":{"id":"63bd1246-5877-44a3-ac3d-cb58fbfbdeed","workflow_id":"202687d5-883b-4450-a651-bac239332c4f","created_at":"2022-11-10T09:48:39.908Z","status":"PENDING"}}
I would like to return the return value of the last item of the workflow.
So we could return the body we want.
Example for a Slack slack command : slack display the body return by the webhook. So I need to make it readable by Slack to dislay a beautiful message instead of just the raw json of the workflow.
This is what I tried but the returned value of a call to a workflow by a webhook, is always this : {"success":true,"workflow_run":{"id":"63bd1246-5877-44a3-ac3d-cb58fbfbdeed","workflow_id":"202687d5-883b-4450-a651-bac239332c4f","created_at":"2022-11-10T09:48:39.908Z","status":"PENDING"}}
I am unable to return the value of the last block of the chain.
You can try with the basic workflow template, I made one here : curl -X POST --url "https://api.retool.com/v1/workflows/58c58b66-02f3-494d-9977-a8f4de9eee06/startTrigger?workflowApiKey=retool_wk_daf49c96d4d244f7922d0a63843deecd" -H 'Content-Type: application/json'