Cline Bot in VS Code (Win) + N8N (docker) + LM Studio (win)= HOW?

Hello, I am having difficulty configuring webhooks for Cline

Here’s my workspace in short, and the idea I want to implement:

Idea: I want to work on a project in VS code+Cline (they work in Win11 24h2). And I want to implement information processing in N8n (Docker) + LM studio (win).

In N8n, I want to implement the following logic:

The webhook receives/returns a request to Cline.

Before that, the message must pass through Ai Agent, to which LM Studio (win) is connected via OpenAI auth + postgres memory + embedding that works through ollama.

In theory, everything works if you send messages within the chat.

But I don’t understand how to attach a webhook to receive/send messages — please help.

(Or point me to a link where there is a solution to the problem. Thanks, everyone.)

I think I did almost the same project using those nodes and docker so check this project if it can help you I’m also use webhook