How to replace Message a Model?

So I finally figured one workflow on my own

But I would prefer to use ollama instead of OpenAI
via Credential I have OpenRouter and my own Ollama which both works
where I get stuck is how could I message a model and with which nodes.

I tried these nodes AI Agent but it doesn’t offer the same JSON output as messaging a model via OpenAI.

Does anybody know how to easily replace Message a Model of OpenAI node?

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: