https://discord.gg/botpress logo
Hello, can an expert help me with a
# 🌎general
c
Hello, can an expert help me with a prompt to the KB query that doesn't work?
p
The query is often passed from the last message. If it's not working you might not be outputting it correctly. Could you share what the workflow looks like at the moment?
The KB query was not able to extract the information correctly, even though it did with a different prompt, but for some reason I think it works now
p
Alright, glad it works!
c
Can you just help with a different thing please?
So a client wants a chatbot that acts like a research tool for clean cooking alternatives, which should answer with KB of interview transcripts and create artifacts on it (as far as I understand, I should make an object variable with key values in it for example "persona", "cookware", "pain points", "what food they cook", etc.)
How can I be sure what the researcher would ask the chatbot, so I can make a specific variable that stores the corresponding value?
@prehistoric-airplane-85682
p
I not sure I understand what you are asking.
c
In simpler terms, I need the chatbot to create an object variable with different number of keys, based on the user KB query: "How many types of cookware do professional chefs in Italy use?" object var: { persona: "chefs", types_of_cookware: "pans, pots, fryers", location: "Italy" } "What is a cleaner alternative of gas stoves?" object var: { cookware: "gas stove", alternative: "electric stove" }