I am trying to use the Xata platform as a memory server via n8n cloud, using a simple workflow consisting of manual chat → conversation agent with OpenAI node as the model and Xata connected (with the correct credentials) as a memory source. However, the agent returns an error upon execution. Looking at the agent logs, it is replying to me, however it seems it can’t store (or retrieve) the chat session.
What is the error message (if any)?
Error: input values have 2 keys, you must specify an input key or pass only 1 key as input
at getInputValue (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]/node_modules/@langchain/core/dist/memory.cjs:31:15)
at Proxy.saveContext (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@google-ai+gen_l2pdhycmx5ubucgl6yjsjdwoyq/node_modules/langchain/dist/memory/chat_memory.cjs:52:75)
at AgentExecutor.call (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@google-ai+gen_l2pdhycmx5ubucgl6yjsjdwoyq/node_modules/langchain/dist/chains/base.cjs:136:31)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.conversationalAgentExecute (/usr/local/lib/node_modules/n8n/packages/@n8n/nodes-langchain/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js:57:24)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/packages/workflow/dist/Workflow.js:696:19)
at /usr/local/lib/node_modules/n8n/packages/core/dist/WorkflowExecute.js:656:53
Please share your workflow
Share the output returned by the last node
ERROR: input values have 2 keys, you must specify an input key or pass only 1 key as input