AI Agent integration with nodes

SO my Task is that I want to do CRUD operations on Supabase, based on what user asks from Slack if he says get abc data We get the data and etc.

Issue: I did this with simple Open AI no issue, but I want to have a ongoing chat with AI, Like get data of abc, it gets 5 datas with abc in it, I say no I only need abc with country def, it gets me 2. or something like that.
For this I would like to have a continuous connect with Open AI, who can understand intent, I know there is an extremely powerful tool AI agent provided by N8N issue with that tool is it always return a simple string, and I am unable to add tools to it. I want to insert data to Supabase, We need 6 fields to filled OpenAI send 6 fields to AI agent, AI agent make is a simple string I have used structure parser, I have used everything How can I ask my AI agent to use nodes and query in strucutured phase.

My current Workflow
This is my current workflow it gets data from slack, pass it to AI agent code to convert back to JSON, do Supabase request, finally ask another AI to define what path to take. At the end a message through slack.
Thanks I need to create more AI agent, I would really appreciate if someone can help me in String to JSOn format for AI agent for use within the tool itself.

If your workflow require to alter your previous request I’d recommend using the AI Agent Node with Memory Tool. With the memory tool the agent will be able to remember the conversation and therefore has a better chance in using the correct parameters for the supabase tools. That would be my second suggestion: Use AI Agent Tools! For example the Supabase or the Postgres tool. The Postgres tool can also be used to connect to the supabase database and it supports executing sql queries.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.