AI Agent doesn't see detail database I set up in system message

Please help me, I use ollama to query a datetime and want to return a block_id has content is fit with query, in the system message, I set like this


and all I see are [Object, Object], [Object, Object],… so AI Agent can’t work well, you see

[
{
"output": 
"Unfortunately, I don't see any provided data to analyze. Please provide the "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" string or some sample data that contains block_id and content pairs. I'll be happy to help you identify the matching block_id value for your query date "2024-12-13"."
}
]

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Welcome to the community @12_0123_Nguy_n_Minh !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


Please share your workflow to take a look and see what might be the issue.

@12_0123_Nguy_n_Minh The issue here you are sharing list of Objects, probably you should {{ $json.data.toJsonString() }} before feed it to ollama.

1 Like

It’s exactly i need, thank you very much

1 Like

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