Describe the problem/error/question
I’m using an AI Agent in n8n that retrieves answers from a Qdrant vector store.
Each chunk contains metadata, including a youtube
link.
But in the final response from the agent, this link never appears, even though I’m sure the metadata is stored correctly and returned by the Qdrant search.
I want the agent to include the YouTube link from metadata in its final answer, either inline or appended below.
What is the error message (if any)?
There is no error. The response works, but the metadata is ignored in the output.
Share the output returned by the last node
json
CopierModifier
{
"choices": [
{
"message": {
"content": "The answer is XYZ."
}
}
],
"documents": [
{
"metadata": {
"youtube": "https://www.youtube.com/watch?v=xxxxx",
"title": "Example Title"
}
}
]
}
Information on your n8n setup
- n8n version: 1.89.2
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- **Running n8n via Docker VPS
- Operating system: Ubuntu 22.04