Question about sending image
# 🤝help
e
Hi, I have a raw input, which has 2 knowledge bases. If client asks a question and answer is found in database "Image database", it should send it to "Standard1" . So, I practically just need a function that sends flow somewhere if a question is found in "image database".. I guess I would need to make an expression and connect it to standard1, but what to write in that expression?
f
Hey @early-sunset-19067 I think you will want to just check your image KB first
Currently you are checking both KBs
if it finds nothing in your image then send the input to a kb knowledge card and check your text kb
c
you can also query your result with a command (what that command is I forgot..) give me a min and ill check
f
I'll send a picture of what this looks like
e
Thank you, I will gladly wait for it ☺️
f
I used A Example and B example for my Knowledge base names
I saved the user' question as workflow.Answer
That is what the Query Knowledgebase card will look like. It will check all the KBs
Let me know if you have any other questions.
e
I'm new to this so I'm having a very hard time to understand it, sorry about that. The thing I wanted to actually do, is to somehow make a chatbot that can answer questions from my PDF knowledge, but in my PDF there are some questions that have images like an answer
So let's say that in my KB i have an article about Michael Jackson.. Client asks: Who is MJ? -Bot replies
But let's say I have a picture that I want to show, so if clients asks, show me a picture of MJ, it will show a picture.
I have 5 pics for my school project, that are graphical representation of some questions, so as bot can't reply textually for those pics, it needs to trigger image showing if you understand me?
So.. I want my chatbot to reply on some messages with images instead of text, but as it can't magically use pictures from PDF, i need to upload them manually in let's say standard node, right?
And then, what to do? I wanted to have a KB1 that has only textual questions and answers, and then, if question that is asked is not found in KB1, searches for kb2, kb3, kb4, kb5 and kb6 from which all of them have only one question that triggers only 1image showing if you understand me?
If the question is not located in kb1, look if question is from kb2, if not, look for kb3 etc.. And each one of those has an own image to show
f
Okay @early-sunset-19067 I think it may be worth looking into converting some of your Knowledge bases to Tables and then using the tables and Knowledge bases https://botpress.com/docs/cloud/studio/tables/ https://botpress.com/docs/cloud/studio/knowledge-base/#5-tables-organized-information
look through those and let me know if you have any questions
87 Views