Hello,
I have a question. Is it possible to use an n8n workflow like a normal completions-endpoint (like the most Ai-Model-Apis)?
So I don’t want n8n (or the Ai Agent I am using in the workflow) to handle memory of the conversation, I just want to call it via the API and send the complete conversion History to it.
Memory, etc. should be handled by my application that is using this endpoint.
Has anyone an idea how can I archive this?
Regards
Chris
Yes, you can. You just need to use this Respond to Webhook | n8n Docs
This thing is very straightforward. It is called “Respond to Webhook”.
Hmm okay,
Response is clear, but how do I “inject” my array of messages
"messages": [
{
"role": "developer",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
into my KI-Agent-Node?
In the Ki-Agent-Node I can only connect to a “Chat Trigger Node” or “Define Below”. If I choose “Define Below” I can only insert the “user Message” but not the conversation history.