Mastering Discord Bot Responses: Seeking Help to E...
# 🤝help
b
Hello everyone! I'm trying to figure out how to make my Discord bot handle user questions so that the response to the second question is related to the topic of the first. For example, if a user asks what spaghetti are and then asks how to prepare them, I would like the bot to respond to the second question continuing the topic of spaghetti. I've tried several solutions, but so far I haven't been successful. Could someone kindly explain step by step what I need to do to implement this behavior in my bot? Thanks in advance for the help!
f
Hello @best-solstice-47827 have you by chance used the summary Agent Transcript? https://botpress.com/docs/cloud/studio/agents/#exposed-variables-1
If you feed that as a variable into your AI task or AI text Generator you can give the bot the context of the conversation and it can respond accordingly. Please remember each time an AI Task or AI text generate is called it is a unique session with GPT so you have to use the Summary agent to provide context of the previious parts of the conversation.
Here is a very quick and dirty rough example of how I would do this.
2 Views