Hey there guys. I have a problem with simple memory as far as I know
So my AI agent is a booking assitant and I use cal.com to chekc availability. using it return available time slots in UTC 8601 format. Then I tell AI agent to convert it to the specific timezone. But when asked if it has available time slots it always returns that there are none. While cal.com api does reutrn available time slots correctly.
So I observed that in simple memory AI model saves what tools were used with their input and result. However in simple memory its input is saved as empty string. And result is like ”\” this. So is it a problem and if yes how can I solve it.
Thanks for answers
.
@Uali_Bakirov your AI assistant has a memory problem. It forgets what the cal.com tool tells it because the “result” it saves is broken.
Here’s how to fix it:
-
Check the Note (Data): First, run your workflow and look at the output of your Cal.com node. You need to see what the actual list of available times looks like. Find the exact name of the data field like availableSlots)
-
Write a clear note to fix the memory): Go to your “AI Agent (Chat)” node settings. Find the section for your Cal.com tool. There will be a box called “Result.” Right now, it’s probably empty or wrong.
- Click the
</> (Expression) button.
- Select the correct data from the Cal.com node (e.g.,
availableSlots). This will insert code like {{ $json.availableSlots }}.
- The AI needs a simple sentence, not raw code. So, you might need to use a “Code” node first to turn the list of times into a readable sentence like “Times available: 2:00 PM, 4:00 PM.” Then, you’d point the “Result” box to that sentence instead.
-
Test it: Run your workflow again. After it runs, click on the chat node and check the “Simple Memory” tab. You should now see the available times written clearly in the tool’s result. Your AI should now remember and answer correctly.
can show me what the availableSlots data looks like from the Cal.com node a few example time strings.
Hi @Uali_Bakirov,
Please can you share your workflow in a code block. Usually this kind of issue can be solved by enhancing your system prompt.
Yaa i’d say use structured outputs
and make it bulletproof json field