MoDaQui
MoDaQui2mo ago

Carousel from custom action - button freezes

Hey guys, I am trying to se the Shopify Order Checker template and allow users to view order details by clicking a button in a custom carousel. I’m using this template: https://www.voiceflow.com/templates/shopify-order-checker-ai-agent Everything works fine - the carousel displays properly, with dynamic order data and working buttons. But the problem is: after I click the "View Order" (from a carousel that’s generated inside a custom action) button on any card, the assistant just freezes. Nothing happens. It doesn’t move to the next block, doesn’t capture the response, doesn’t trigger anything. I’ve already tried: Set another custom action type (view-order) and path names Connected it to a capture block (storing to {orderselect}) without "Stop on Action" Checked that the payload is valid and matches the docs But still, when I click the button, the bot hangs. Do you know what could be causing this? I would really appreciate, please. 🙏 Thanks a lot, Daniel
No description
No description
No description
No description
No description
1 Reply
Tico | Voiceflow Assistant
Hey Daniel – a carousel button click will only release the agent from the Custom Action step if Voiceflow can find a path whose name matches the button’s request.type exactly and if that Custom Action is waiting (Stop on Action = ON). Here’s a quick checklist that usually fixes the “freeze after clicking” behaviour: 1. Custom Action settings • Name: leave it as carousel (or whatever trace you’re emitting) • ✅ Turn Stop on Action ON – the runtime must pause here until a button is pressed. • Add a path called view-order (no spaces, lower-case if that’s what the button uses). 2. Button definition inside the carousel trace
{
"name": "View Order",
"request": {
"type": "view-order", // must match the path name
"payload": { "orderId": "{{id}}" }
}
}
{
"name": "View Order",
"request": {
"type": "view-order", // must match the path name
"payload": { "orderId": "{{id}}" }
}
}
3. Make sure the path is wired to the next block (Capture / JS) in your canvas.
If you need the order id just read it from last_event.payload.orderId inside that next block. 4. Don’t rename the Custom Action itself to view-order – the paths are what matter for the click event, not the Custom Action’s name. When any of the items above don’t line up (most commonly a path/­type typo or Stop-on-Action off) the widget still sends the click, but the runtime has nowhere to route it, so it appears to “freeze”. Give those settings a quick double-check and the flow should continue right after you press “View Order”. Docs for reference: https://docs.voiceflow.com/docs/custom-action-step Hope that helps! 🙏

Did you find this page helpful?