Boris MTB
Boris MTB2mo ago

How to handle multiple product entries (arrays) in a quote flow?

Hi everyone! 👋 I’m designing a quote generator agent for personalized textile orders (t-shirts, hoodies, tote bags, etc.). The flow works great for a single product: the agent collects the user’s choices (product type, color, print type, quantity), then sends the data to Make via a webhook. The user receives their quote by email. ✅ Now here’s my challenge: Most users need multiple product combinations in one order — for example: 👕 200 black t-shirts 🧥 150 green hoodies 🧢 80 purple caps Each time, I’d like to store a new “product object” (with all variables like {product}, {color}, {print_type}, {quantity}) in a list or array, until the user says they’re done. 👉 Is there any clean way to do this in Voiceflow (like appending to an array or building a list during the conversation)? If not possible directly through the Exit or variable structure, what’s the best workaround? I tried using the “Add to Google Sheet” tool to append a line every time a product is confirmed, but it doesn’t seem to work as expected. Any advice or examples would be awesome! 🙏 Thanks in advance! Boris 🇫🇷
No description
No description
1 Reply
W. Williams (SFT)
Sure. You can add items to an array (like an array of objects). Just use a JS Step.

Did you find this page helpful?