n8n
Node.js UI .. luv it ..
Last updated
Node.js UI .. luv it ..
Last updated
Ensure the env is up and running.
Log into n8n.
To create a new workflow, click on either 'Create Workflow' button located top right or + icon next to n8n icon in right had menu bar.
Our first step is to add a Chat Message - prompt input. Click on Add first step.
Click on Test chat.
Enter a message in the prompt.
Next add Advanced AI > AI Agent node
The AI Agent is going to use a local model loaded from Ollama. Keep the default settings and click on Chat Model.
Select Ollama Chat Model. Once selected your canvas displays the 'nodes'.
Double-click on: Ollama Chat Model node. Select: Create new credential
Edit the URL to the Ollama server to connect with Docker container name - ollama.
Click on: 'Back to Canvas' link in top left. You can test the Agent.
The first time .. it will take a moment to first load the model.
Keep it simple and add some memory - windows buffer that will hold the last - default: 5 inputs.
The buffer kicks in and can now access previous chats.
Lets ask for the latest BTC price.
A quick search points to SerpAI. Sign up for a free account and create an API key
Again configure the Credentials - connection.
Reset and input the question. The AI agent will access the internet and perform a Google search for the price.