https://discord.gg/botpress logo
Multiple single choice inputs with headers without...
# 🤝help
i
I'm just wondering how i would acheive something like amazon do with rufus at the start of a conversation with multiple sections each with their own options for routing? https://cdn.discordapp.com/attachments/1495783236276719658/1495783236754739412/Screenshot_2026-04-20_at_2.46.56_pm.png?ex=69e78031&is=69e62eb1&hm=4a88365afedb4b78ee0879bcfca44cd62c24fc5c1ef0e4f1f5ee56edd9eef2a3&
You can also do this with instructions in your AN
I was actually able to replicate perfectly with the an after some testing!
my instructions being. `` When the user says hi type 3 messages: Each of them being:1. Buy Dog Toys, 2. Buy Food Products, 3. Buy Electronics Under Buy Dog toys add 3 buttons: blue toy, red toy, yellow toy. Under Buy food products add 3 buttons: protein, carbs, junkfood. Under Buy electronics add 3 buttons: Pc, laptop, console. ``
i
Thanks Ross, i did actually manage by using the execute code block to get around the single choice;
Copy code
await send({
    type: 'choice',
    text: 'Orders Related:',
    options: [
      { label: 'Track my latest order', value: 'track_latest' },
      { label: 'Show my recent orders', value: 'recent_orders' },
      { label: 'Show items in my latest order', value: 'order_items' }
    ]
  })

  await send({
    type: 'choice',
    text: 'Returns Related:',
    options: [
      { label: 'Start a return', value: 'start_return' },
      { label: 'Show my recent returns', value: 'recent_returns' }
    ]
  })
l
oh very nice!!!!! thank you for sharing
3 Views