Workflows - Triggered by webhook return value

Hello,

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"}}

Thank you !

Hey @QuentinSc! What would you ideally like to return?

Hello Victoria,

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.

Hope I'm clear :slight_smile:

Ah, got it! Would something like this be helpful?

https://docs.retool.com/docs/retool-workflows-blocks#query-blocks

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'

Got an answer, feature not available for the moment

1 Like

Hi, is it still not available ?

Yup :confused:

Odd, seems like this would be a default feature. Are there plans for this to be released any time soon?

Hey @nevil! This release is currently being internally tested, which means it'll be publicly released soon :raised_hands:

Hey everyone! Wanted to share some exciting news—Workflow Responses have now been shipped :raised_hands:

Here’s a demo of how they work:

https://www.loom.com/share/4b93989defaa461da115c3d0b6192ea9

Let us know if you have any questions at all!

2 Likes

YEAH! I was looking for that! thanks a lot.

1 Like