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
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.