Configure n8n and Open WebUI integration
mainAfter starting the containers, follow these steps to link n8n with Open WebUI:
- Set up n8n: Open
http://localhost:5678/. Open the included workflow athttp://localhost:5678/workflow/vTN9y2dLXqTiDfPT. - Configure n8n Credentials:
- Ollama URL:
http://ollama:11434(orhttp://host.docker.internal:11434/if running Ollama on Mac host). - Postgres: Use DB, username, and password from your
.envfile. Host ispostgres. - Qdrant URL:
http://qdrant:6333. - Google Drive: Follow n8n's guide; use a custom domain for the redirect URI instead of
localhost.
- Ollama URL:
- Activate Workflow: Select Test workflow. Once running, toggle the workflow to active and copy the Production webhook URL.
- Set up Open WebUI: Open
http://localhost:3000/. - Add n8n Function:
- Go to Workspace -> Functions -> Add Function.
- Name and describe the function, then paste the code from
n8n_pipe.py(or download it from Open WebUI site). - In the function settings (gear icon), set
n8n_urlto the Production webhook URL you copied from n8n. - Toggle the function on to make it available in the model dropdown.