Hello. You guys are doing a great job here.
How do I capture the chat_history memory object (returned below) from my AI Agent simple chat node and output it on my AI Agent Output?
I need to implement a PostqgresSQL to do it?
I tried to capture it from global {{ $vars }}, but I didnt found it.
the object output from chat I want to output on my Agent answer:
[
{
"action": "saveContext",
"chatHistory": [
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"messages",
"HumanMessage"
],
"kwargs": {
"content": "fgdfgdfgdfgdgf\nfgdgdfgfdg",
"additional_kwargs": {},
"response_metadata": {}
}
},
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"messages",
"AIMessage"
],
"kwargs": {
"content": "It looks like you're typing some random letters. How can I assist you today?",
"tool_calls": [],
"invalid_tool_calls": [],
"additional_kwargs": {},
"response_metadata": {}
}
}
]
}
]
Information on your n8n setup
- My Linkedin: https://www.linkedin.com/in/anderson-campolina-688175225/
- **n8n version:1.90
- **Database (default: SQLite):simple memory
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
- **Operating system:Linux