Describe the problem/error/question
I have a chat node with an AI agent and the simple memory attached.
It is all working great and I have a tool to log a ticket if needed.
The problem is, I cannot work out a way to have the ai agent include the transcript of the chat in it.
It only includes the last message in the ticket description.
I have seen other questions here about using the chat retriever node, but that seems to only be useful after the agent node, I need the agent to include it in the tool action.
Any ideas on how to achieve this?
I don’t get the question, can you be a bit more specific?
Hi, maybe a stupid remark but can’t you use the chat retriever node as a tool as well?
Reg,
J
Sure.
Chat message comes in.
Bot responds.
User replies
Bot responds
User replies some other info
Bot offers to create a ticket.
Bot creates a ticket.
But I want to capture the whole chat history into the ticket notes.
Instead I just get an overview of the conversation, so dont know if they actually did step x or y.
I cannot work out how to get the chat history for the conversation ID to make sure it gets saved to the ticket.
I am only seeing a next node type option of the chat memory after the AI agent, but I would rather not have another step having to get the ticket and update it with the history. Figure the AI should be able to do that.
Hi,
Yes I understand, but the main clue is that the AI determines when the conversation is to a point where it needs to create a ticket or send it to someone else or theres no action. You could instruct it via system message that after creating a ticket or whatever actions you have it must send a transcript via a tool. Tool description,: send transcript and that’s would be it. Once the ticket is created surely you can update it’s content or attach the chat log
It will use the tools in succession if you do it right
Maybe the transcript tool has a limitation that it can only work after the conversation is finished. Not sure. But you can try
Reg,
J.
I guess my blocker with that when I am looking at the AI Agent, any time it makes a call it only seems to recal the most recent chat message from simple memory in the log as it makes calls.
And there isnt a chat retriever tool, only a node.
Short of using a db for the chat memory and doing a specific query tool for it, but it feels like there should be an easier way
Anyone else with some ideas on how to acheive this?
Or is the only way to store it in an external DB and query it to get the info?