LLM
  • Overview
    • LLM
  • Key Concepts
    • Models
    • Key Concepts
  • Quckstart
    • Jan.ai
    • 🦙Ollama & Chatbox
  • Playground
  • Workflows
    • n8n
    • Flowise
      • Basic Chatbot
      • Research Agent
      • Company Information Agent
      • PDF Parser
      • Knowledge Base
      • Lead Gen
    • Agno
  • LLM Projects
    • RAG + ChainLit
  • Model Context Protocol
    • Claude + MCPs
    • Flowise + MCPs
  • Knowledge Graphs
    • neo4j
    • WhyHow.ai
  • Setup
    • WSL & Docker
    • 🦙Quickstart
    • Key Concepts
    • Workflows
    • Model Context Protocol
Powered by GitBook
On this page
  1. Workflows

n8n

Node.js UI .. luv it ..

PreviousWorkflowsNextFlowise

Last updated 2 months ago

n8n is an open-source workflow automation platform that enables users to connect different services and applications through a visual, node-based interface. It allows both technical and non-technical users to create automated workflows without writing code, thanks to its intuitive drag-and-drop editor.

n8n stands out for its flexibility, offering both cloud-hosted and self-hosted options, and it can run on-premises to keep sensitive data within your infrastructure. The platform supports hundreds of integrations with popular services and applications, includes customizable error handling, and allows for the creation of custom nodes when needed.

Unlike many competitors, n8n uses a fair-code license model, making it more accessible while still supporting sustainable development.

Ensure the env is up and running.

Build a simple Research Agent ..

  1. Log into n8n.

  1. 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.

  1. Our first step is to add a Chat Message - prompt input. Click on Add first step.

  1. Click on Test chat.

  1. Enter a message in the prompt.

  1. Next add Advanced AI > AI Agent node

  1. The AI Agent is going to use a local model loaded from Ollama. Keep the default settings and click on Chat Model.

  1. Select Ollama Chat Model. Once selected your canvas displays the 'nodes'.

  1. Double-click on: Ollama Chat Model node. Select: Create new credential

  1. Edit the URL to the Ollama server to connect with Docker container name - ollama.

The docker-compose also deploys: llama3.1:latest model for testing.

  1. Click on: 'Back to Canvas' link in top left. You can test the Agent.

  1. The first time .. it will take a moment to first load the model.


Memory

This is where the fun begins .. I informed the model that my dog is called Ruby. I then asked what is the name of my dog? - no clue .. so

  1. Keep it simple and add some memory - windows buffer that will hold the last - default: 5 inputs.

  1. The buffer kicks in and can now access previous chats.


Tools

  1. Lets ask for the latest BTC price.

  1. A quick search points to SerpAI. Sign up for a free account and create an API key

  1. Again configure the Credentials - connection.

  1. Reset and input the question. The AI agent will access the internet and perform a Google search for the price.

GenAI
n8n.io - a powerful workflow automation tool
Link to n8n
Discover 1440 Automation Workflows from the n8n's Community
Link to Automation Workflows
https://localhost:5678/localhost
Link to n8n
SerpApi: Google Search APISerpApi
Link to SerpAI
Logo
Logo
Logo
Simple Research Agent
Create a Workflow
Add Chat message
Test Chat
Enter Chat message
Add AI Agent
Pass the Chat message to AI Agent
Add Ollama
Define connection to Ollama
Ollama connection
Select Model
Test Chat
No memory..!
Add memory
Add Tools
SerpAI API key
Configure Credentials
Tool - SerpAI
Google search