How do I add JSON I created from the Slack Block Builder to a workflow?

This topic was automatically generated from Slack. You can find the original thread here.

Matt Roberts : Can someone help me get this JSON created by the slack builder into a workflow so that I can respond to a simple incoming webhook with text and buttons. Or show me where to get this info

Matt Roberts : I’m here

Matt Roberts : Slack Response with Links - Pipedream

Dylan Sather (Pipedream) : I believe Slack expects the block array to be passed in the Blocks param. First I’d remove the:

{ "blocks": 

from the front, and the final

}

from the end of that JSON. Then try to copy the content of the blocks (it should now be surrounded just by the [ ] ) from the Attachments param into the Blocks param of the Send Message step.

Take a look at this workflow, too, which is written in a similar way. I’ve just separated the block JSON into another step, and pass it to the next step using a variable referencing that value from the step.

Let me know if that helps.

Matt Roberts : Awesome Dylan! I’ll try it

Matt Roberts : It worked. The support you guys offer is second to none!

Dylan Sather (Pipedream) : :tada: awesome, glad that worked!

Dylan Sather (Pipedream) : Reach out anytime, we love seeing how y’all are using Pipedream

Matt Roberts : Would love to chat more about it as I keep pushing slack to the limits without code but then hitting barriers

Matt Roberts : I’m not technical