Skip to content
Node behavior: Repe...
 
Notifications
Clear all

Node behavior: Repeated tool calls with identical arguments

20 Posts
9 Users
0 Reactions
8 Views
Baptiste_JACQUEMET
(@baptiste_jacquemet)
Posts: 13
Active Member
Topic starter
 

Describe the problem/error/question

I've been attempting to utilize the Notion Create Database Page node as a tool with various AI Agents (React, Tools, OpenAI Functions) employing the fromAI parameter.

Configuration:
I'm retrieving items from a Notion Database Page and processing them with an AI agent that has several tools. One of these tools is designed for creating new items within Notion.

I'm encountering a recurring issue:

  1. The tool is invoked twice for each input item.
  1. The $fromAI parameter appears to be utilizing only the parameters from the initial item (resulting in duplicate entries in Notion for each of the 2 input items).

Please share your workflow

I need to streamline my workflow as it contains numerous other nodes. I'm curious if others are encountering this same behavior.

Information on your callin.io setup

  • callin.io version: 1.66
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app): Docker
  • Operating system:
 
Posted : 11/11/2024 11:45 pm
sirdavidoff
(@sirdavidoff)
Posts: 13
Active Member
 

Hi, we've implemented some fixes for similar issues in version 1.67.

Could you please upgrade and verify if you're still encountering the same problem? If the issue persists, we will prioritize investigating it further.

 
Posted : 12/11/2024 6:58 am
Baptiste_JACQUEMET
(@baptiste_jacquemet)
Posts: 13
Active Member
Topic starter
 

Hi David,

Thanks for the quick reply!

No, I’m on the latest release 1.66. I’ll test it with 1.67 when released and let you know.
In the mean time, I’ve used a “call callin.io workflow tool” and it works well.

 
Posted : 12/11/2024 8:57 am
Baptiste_JACQUEMET
(@baptiste_jacquemet)
Posts: 13
Active Member
Topic starter
 

Hi,
I've just updated my version and re-ran my workflow, encountering a similar issue.

The agent has 7 input items.

The Notion "create insight" node is called only once during the entire execution, according to the logs.

The input contains just one element, which is expected since the agent only needs to create one insight.

However, it's creating 7 entries in my Notion database. The output shows 7 elements, as if the tool was called for each input item, rather than just the single one.

 
Posted : 14/11/2024 8:34 pm
sirdavidoff
(@sirdavidoff)
Posts: 13
Active Member
 

Thanks for your continued investigation.

We've pinpointed the problem and are actively developing a solution. While you've already discovered a temporary fix, an alternative approach involves nesting the agent within a loop, ensuring it processes only one item at a time.

 
Posted : 15/11/2024 5:56 am
Baptiste_JACQUEMET
(@baptiste_jacquemet)
Posts: 13
Active Member
Topic starter
 

Thank you!

Currently, I'm utilizing a sub-workflow to generate the insight. That's a fantastic aspect of having various approaches available.

For your information: I've re-tested it with the most recent version, and the issue persists.

 
Posted : 22/11/2024 9:58 am
AasimK
(@aasimk)
Posts: 1
New Member
 

Hi everyone,
I'm also encountering a similar problem.
I have a MySQL Tool node linked to a Tools AI Agent, which runs queries generated by the agent.
When this tool is called repeatedly, it only executes the initial query.
The logs indicate the second query is being sent, but the backend is still running the first one.

Please provide some guidance on this issue.

 
Posted : 25/11/2024 12:01 pm
Baptiste_JACQUEMET
(@baptiste_jacquemet)
Posts: 13
Active Member
Topic starter
 

You're likely aware of this by now...

I've also experimented with the Airtable node tool "delete record," and it exhibits the same behavior: it only deletes the first record (identified by another Airtable node tool, "search records").

The same workaround applies; I'm using an HTTP request instead, which functions perfectly.

 
Posted : 25/11/2024 9:38 pm
sirdavidoff
(@sirdavidoff)
Posts: 13
Active Member
 

Thanks for the additional context. We are actively working on a solution for this issue and anticipate having it available shortly.

 
Posted : 26/11/2024 3:58 pm
ysoultane
(@ysoultane)
Posts: 1
New Member
 

Hi, it’s the same with nocoDB for create, delete, and with Google calendar.
Thanks

 
Posted : 28/11/2024 2:28 pm
Felipe_Mayer
(@felipe_mayer)
Posts: 1
New Member
 

I'm encountering the same issue. I managed to resolve it using the HTTP request Tool. I'm facing a similar problem with the Supabase Tool. I'm eager to find a solution for this, as it would simplify things considerably.

 
Posted : 03/12/2024 5:15 pm
theJoshMuller
(@thejoshmuller)
Posts: 1
New Member
 

Just wanted to mention that I'm encountering the same problem with the Google Calendar tool.

Primarily posting this to be notified when the fix is released.

:blush:

Thanks to the callin.io developers for all your hard work!

callin.io is an AMAZING tool!

 
Posted : 03/12/2024 6:30 pm
Baptiste_JACQUEMET
(@baptiste_jacquemet)
Posts: 13
Active Member
Topic starter
 

First off: +1 to the original poster! I completely agree that this is an amazing tool, the community is fantastic, and I'm incredibly impressed with the development work the team is doing!

:clap:

:clap:

I wanted to highlight another issue I've encountered with the Airtable node as a tool.
I'm uncertain if it's directly related to the bug mentioned, so please advise if I should start a separate thread.

When my agent invokes the same tool multiple times with different parameters, it seems to return the same object as the initial call. Initially, I suspected a visual bug, but upon inspecting the chat model logs, I observed that this behavior is also being passed to the LLM.

Context:
I'm using an Airtable node configured as a tool to search through Airtable records.

Example (this is a search by keyword, returning items that contain the word in their Description field):

When the agent queries the tool, it appears to be using different parameters, but I suspect it is not.

You can observe in this last screenshot that the description does not contain the word "efficiency", but it does contain the word "productivity" (from the first call's parameters). I've just verified, and my Airtable table does have other records with the word "efficiency" in the Description field, so it should be returning different results.

Finally, you can see in this log that the chat model node is receiving the same response from the agent three times.

My apologies for the lengthy message; I hope this explanation is clear.

 
Posted : 04/12/2024 9:24 pm
Uneerup
(@uneerup)
Posts: 1
New Member
 

Any updates on this matter?

 
Posted : 09/12/2024 3:23 pm
ichat006
(@ichat006)
Posts: 11
Active Member
 

I've run into a comparable problem. Has there been any recent advancement?

 
Posted : 09/12/2024 10:02 pm
Page 1 / 2
Share: