https://discord.gg/botpress logo
Dynamic Product Catalog Integration for Multi-Rest...
# šŸ¤help
m
I have a problem. I’m building a chatbot for an e-commerce food delivery service. This service includes many restaurants, each with multiple categories, sub-categories, and complex item structures — which are not supported directly by Meta templates. I’m looking for a solution that allows users to browse and select from these items smoothly within the bot (whether through an Autonomous Node or any other method). The goal is to provide a seamless and simple user experience without making the process too complicated. The main challenge is that the menu items and prices frequently change. So, I don’t want to rewrite or manually update prices every time — I need a dynamic solution. Should I use an API for this? Is there a proper way to make this work dynamically inside the bot? I’m aware that using documents or static templates is an option, but that doesn’t solve the dynamic aspect — the data needs to change in real time. Also, I considered using Meta’s native product/catalog system, but it doesn’t support complex structures like: Restaurant Ā» Categories Ā» Items Ā» Variants, etc. As you can see, the structure is very complex. What would be the best way to handle this?
n
I would use a knowledge base API for the information, and then split up the different restaurants into workflows with their own ANs
That way each restaurant has a workflow and within it users can select items using the AN
How do you plan to compile a user's order, calculate the cost, and submit a final order?
And to which system will your final orders go to?
I built a restaurant agent to place orders a while back and would love to know how you're doing yoursšŸ™‚
e
I am guessing you are recieving the live data from somewhere.
Either if it is a feed create a github action that parses the data into your desired format and via the botpress files API uplaods them as tables (each resturant has their own table).
Then create knowledge bases one for each restaurant, that you will add the respective table inside to vectorise it and query it.
DM me if you need more help since I have a similar solution already implemented.