https://discord.gg/botpress logo
Issue with summary agent
# 🤝help
b
Hello team, there seems to be an issue with the {{conversation.SummaryAgent.transcript}} from summary agent. the transcript max lines translate to literal lines and not conversation, when we say line 10, it looks for 10 instances of "\n" within the transcript instead of the last 10 messages between the user and the bot. In my scenario here the bot is returning the following conversation.SummaryAgent.transcript = " - Pharmacy 1 \n [Location](https://maps.google.com/xxx) \n Phone: xxx\n - Pharmacy 2 \n [Location](https://maps.google.com/xxx) \n Phone:xxx\n\n**Sorry, I couldn't find that information.**\nbot: Would you like me to have someone from our team reach out to you via email regarding your unanswered query?\nuser: yes\n" https://cdn.discordapp.com/attachments/1366376827576385619/1366376827928449034/image.png?ex=6810b915&is=680f6795&hm=ce31ed366729516881ecbdfedf12994e9e78be74ccaf4d4e08cdbb2cb21a8275&
p
Hi! I'm not encountering the same issue. Where and how are you wanting to use the transcript variable?Could you confirm that the transcript cell of the conversation table has that problem as well?
b
p
May I ask why? The conversation.SummaryAgent.transcript variable's contents are accessible to you.
b
I was using the transcript in an AI task for additional processing, but the AI task was failing, i stored it in a variable to view it in effort to troubleshoot the issue. In this case the AI task was failing because the transcript data was incorrect and was being limited by "/n" character
So my bot is answering users question. If they fail to answer part of the question, i am using an AI task to analyse the transcript to find out exactly what information the bot was unable to provide to the user
e.g. user may ask for price and the purchase location of a product but my bot only has information about the location and was unable to answer the price
p
I see. My question remains, why is conversation.SummaryAgent.transcript not suitable for that purpose?
b
it is as i stated in my original question, the "Transcript Max Lines" settings is limiting the transcript by the "\n" character. In my Example the value is 10, so the output of this variable contains 10 instances of "\n" instead of 10 last messages between bot and user. When my bot replies to a chat, it may generate contents that contain the "\n" character.
p
Could you submit a report so I can verify the situation?
2 Views