Mastering Discord Bot Responses: Seeking Help to Ensure Coherent User Interaction!
# 🤝help


02/13/2024, 10:42 AM
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!


02/14/2024, 9:28 PM
Hello @best-solstice-47827 have you by chance used the summary Agent Transcript?
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.