https://discord.gg/botpress logo
Complex Catalog Whatsapp
# 🤝help
m
I’m building a WhatsApp bot using Botpress for a restaurant system. Each restaurant has multiple categories (like Pizzas, Drinks, Desserts), and each category has several items with different prices. However, the Meta WhatsApp Catalog doesn’t support this structure — it only allows a simple, single-level catalog where users can select one item directly, without subcategories or multiple selections. I want users to be able to browse the menu, choose categories, and select multiple items (like from a restaurant menu) inside WhatsApp — but without forcing them to type everything manually. Question: Is there a way to build a custom “catalog-like” experience inside WhatsApp using interactive messages (list or buttons) connected to my backend API, so users can easily browse and order items just like in the Meta catalog, but with full flexibility for restaurants and categories?
w
well you can just have the major categories on buttons or drop-downs and then after selecting a category you would send the carousel
i think one big carousel with everything like you described could become a bit claustrophobic
m
Okey I need to make every items com dynamicly. Can i?
@wide-umbrella-5226
w
sure, you can insert variables in all fields in the carousel
one clean way to do it is to query your api to get the items you want on the carousel and return them as a json dictionary
then map them to the carousel cards
for example if someone clicks pizza
then you query your backend and get something like pizza 1: { "flavor": "margherita" "size": "20cm" "image": "http://testest.com/margherita.png" }
so you map "pizza.flavor" to title, "pizza.size" to subtitle and "pizza.image" to image for example
one card per pizza
(in practice it's more like event.payload.pizza.flavor)
m
But now i am talking about items more than 500!
w
well it's the same principle i suppose
but i don't think showing 500 pizzas in a carousel is a good idea
you have to filter down the items somehow