https://discord.gg/botpress logo
#🤝help
Can I do a conversation followup?
# 🤝help
p

purple-dream-91712

02/11/2024, 2:47 PM
is there a way for the user to ask followup questions based on the previous messages it sent?
g

glamorous-guitar-39983

02/11/2024, 5:33 PM
I think you can using an AI task card. I would set up in the AI task input : Question : @workflow.question [write the variable in which you stored the question] Trancript: {{conversation.SummaryAgent.transcript}}
Try figuring out what to put in the AI task instructions, besides you are the one who knows best what you want to do
p

purple-dream-91712

02/12/2024, 8:39 AM
I don't think my question was clear enough, so here's an example: - Hello, where can I dine in Berlin? - Bot: Hey! In tulip resturant - [this is where I want help] where is it located? - Bot: this location [normally the bot can't answer this question and won't understand the refrence]
g

glamorous-guitar-39983

02/12/2024, 12:52 PM
Wouldnt you just put the reference in the Knowledge Base?
p

purple-dream-91712

02/12/2024, 1:09 PM
no it's not about one information, its about continuing to get more data about the specific information you just got
g

glamorous-guitar-39983

02/12/2024, 8:52 PM
Yeah but thats it
If the user asks about tulip restaurant, it needs to find an answer in the knowledge base about the tulip restaurant
Anyways I do not think it is possible to answer such a question without a knowledge base, as the AI task for example only knows about general knowledge
p

purple-dream-91712

02/13/2024, 8:20 AM
@User any reference on that? [I will use a KB I just need to make the capture and retrieval more focused]
f

fresh-fireman-491

02/13/2024, 10:07 AM
In the KB agent you can add context
You could give it the latest answer from the KB with turn.KnowledgeAgent.answer
p

purple-dream-91712

02/14/2024, 8:20 AM
Would this be like an ai generated responce? Or what processes are we talking about here?
f

fresh-fireman-491

02/14/2024, 11:59 AM
turn.KnowledgeAgent.answer just has the latest response from the KB agent. You would just add it to the context input of the KB agent. The text is AI generated yes.
p

purple-dream-91712

02/14/2024, 1:21 PM
thanks a lot!
like this? I am unable to precisely envision how this will work
f

fresh-fireman-491

02/14/2024, 3:41 PM
No You can't tell it which variable it should save it to. If you go to the agents (left side agent icon) and open the KB agent you will see an input field where you can give it some context. Add something like this text: Latest message: turn.KnowledgeAgent.answer
Query the knowledge base like you usually would then
p

purple-dream-91712

02/15/2024, 8:16 AM
ahhh got it! thanks a lot