Return metadata and pageContent from subnode

I have 1 node is the Question and Answer Chain that receives the user’s question, processes, gives them an answer and then store that answer in Supabase database. But in only return the output data, it can’t return the metadata (JSON), Are there any way to return and store that metadata? I will give some pictures below to make sure that you guys can understand my situation


Return data from Supabase Vector Store is a list with pageContent (user readable) and metadata (JSON)


But Question and Answer chain can only return text after format, I want it return a list of metadata to store in supabase database node

Below is my flow

Thank you all!

1 Like

I also ran into this problem. I’ve been using the n8n recently. and I’m really looking for a solution on how to return metadata.

the http request block option is not suitable.

maybe this will help you. I found a loophole on how to access metadata in the AI Agent block. if you add a CODE TOOL block with a stub in the agent’s tools (return “Stub response”;), then all metadata will be displayed at the output.

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