Automate Anything on Your PC for Free with Local LLMs and Open-Source No-Code Tools

Spheron NetworkSpheron Network
6 min read

Automation is now within everyone’s reach. From summarizing emails and generating insights to handling data and automating repetitive tasks, some tools let you run these processes directly on your PC without writing a single line of code. Leveraging local large language models (LLMs) alongside free, open-source, no-code tools, you can build powerful automation while keeping your data private and secure. This guide covers everything you need to know to get started.

The Shift Toward Local Automation

Over the past year, open-source AI models have greatly improved, allowing users to run capable models locally without relying on cloud-based solutions. Running tasks locally not only keeps your data private but also removes the need to send data to third-party servers. Previously, cloud-based automations were popular, but with privacy concerns and the evolution of local models, many are revisiting these processes to bring them in-house. While local models may not yet match the complexity of advanced models like GPT-4, they can handle most basic automation tasks, including summarization, extraction, and classification.

Key Tools for Local Automation

Setting up local automation requires just two main tools:

  1. n8n - A free, open-source workflow automation tool similar to Zapier and Make.com.

  2. LM Studio - A platform to run LLMs locally, allowing you to harness AI on your PC.

Using these tools together, you can build automated workflows and manage information in a streamlined way, whether it’s organizing emails, creating structured datasets, or even summarizing text.

Getting Started with n8n for Workflow Automation

n8n enables you to design workflows that automate tasks between apps and services, similar to what you might do with Zapier. However, n8n runs locally on your system, giving you control over your data. Here’s how to get started:

  1. Install Node.js: First, download and install Node.js from its official website. This will provide the environment necessary to run n8n.

  2. Set Up n8n: Open the terminal (or Command Prompt on Windows), and type in npx n8n to download and install n8n.

  3. Access n8n Dashboard: Once installed, go to http://localhost:5678 in your browser. This is your n8n dashboard, where you’ll create and 1manage workflows.

Running Local LLMs Using LM Studio

LLMs enable your PC to understand and generate text based on prompts, making them incredibly useful for various tasks. LM Studio simplifies the process of running these models locally without needing extensive technical knowledge.

Choosing the Right Model

There are two recommended models for local automation:

  • Phi-2: This small, efficient model is ideal for older or less powerful PCs and laptops.

  • Mistral-7B: A more powerful model suited for gaming PCs or workstations, providing better consistency.

When choosing a model, you’ll encounter different quantization levels like Q4 and Q8. Quantization reduces model size by simplifying the data, making it easier to run on limited hardware. Here’s a general guide to help you choose:

ModelQuantizationRecommended Hardware
Phi-2Q4_K_MOld PC/Laptop
Phi-2Q8Regular PC/Laptop
Mistral-7BQ4_K_MGaming PC
Mistral-7BQ8High-End Gaming PC/Workstation

Running and Testing Models in LM Studio

After choosing your model, download it from LM Studio. The model will appear on the dashboard once loaded, and you can test it by chatting directly with it. To activate the automation capabilities, go to the Server tab in LM Studio and select Start Server.

Building Your First Automation with n8n and LM Studio

With both tools ready, you’re set to build a basic automation. In this example, let’s automate email summarization to provide a neat overview of your inbox, which can be especially helpful for prioritizing responses and managing tasks.

Creating an Email Summarization Workflow

  1. Open n8n Dashboard: Navigate to http://localhost:5678 and create a new workflow.

  2. Import Workflow File: If you’re using a pre-built email summarizer workflow, simply import it into n8n by selecting Import from File at the top right.

  3. Set Email Information: Input the details of your email provider. This information can usually be found within your email client settings.

  4. Configure CSV File Storage: Specify a location and file name for the output CSV file. This is where your summarized email data will be saved.

Once configured, the workflow will pull in emails, summarize the content, and store it in a CSV file that you can access and organize as needed.

Expanding Automation to Other Use Cases

Beyond email summarization, n8n and LM Studio allow for an impressive range of automation possibilities. Here are a few ideas:

Batch Processing CSV Data

Suppose you have a CSV file with product descriptions, pricing, or user information. You can set up n8n to process each row and prompt the language model to generate or extract information based on specific columns. For example:

  • Generate Product Descriptions: Use column data to create catchy product descriptions that include features or target audiences.

  • Extract Information: Pull specific names, dates, or details from a column and insert them into your desired format.

Batch processing enables you to perform time-intensive tasks quickly, which can be a game-changer for tasks that would otherwise require hours of manual work.

Setting Up Prompts and Outputs for Different Tasks

In n8n’s Set Prompt and Model Settings node, you can customize prompts and outputs to align with your task goals. For example, you might set up a prompt that asks the model to extract a key name or date from a text passage, format it as JSON, and store it in a way that’s easy to filter and analyze later. This customization lets you adapt workflows for countless applications.

Practical Tips for Using n8n and LM Studio Together

  1. Start Simple: Begin with basic workflows to familiarize yourself with the n8n and LM Studio interface.

  2. Use Quantization for Efficiency: If your PC struggles to run certain models, try using a lower quantization level to optimize performance.

  3. Test and Adjust Models: Experiment with different model settings to find the optimal balance between quality and speed for your tasks.

  4. Debug with ChatGPT: If you encounter setup issues, ChatGPT or other AI tools can assist with debugging and code snippets, especially since n8n uses JavaScript.

Conclusion

With the power of n8n and LM Studio, you can transform your PC into an automation powerhouse. From organizing emails to batch-processing data and generating descriptions, these tools allow you to create custom workflows while keeping your data private. While there’s a learning curve, starting with simpler tasks and expanding gradually can make automation accessible and rewarding. The best part? You can accomplish all of this without needing to be a programming expert.

FAQs

  1. What hardware do I need to run local LLMs?

    Local LLMs can run on a range of devices. Smaller models like Phi-2 work on standard PCs and even older laptops, while models like Mistral-7B require more powerful setups like gaming PCs or workstations.

  2. Is coding required to use n8n and LM Studio?

    No, both n8n and LM Studio are designed to be no-code tools. While some understanding of basic logic helps, you can automate tasks without any programming skills.

  3. How secure is local automation compared to cloud-based options? Local automation keeps your data entirely within your system, making it much more secure than cloud-based tools that require data to be sent to external servers.

  4. Can I use these tools to automate my business processes? Absolutely. You can automate tasks like generating reports, summarizing emails, and processing data, which can significantly enhance productivity for small businesses.

  5. What types of tasks can I automate with n8n and LM Studio?

    These tools are versatile and can automate tasks like email summarization, data extraction, classification, and even content generation—allowing you to streamline both personal and business processes efficiently.

2
Subscribe to my newsletter

Read articles from Spheron Network directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Spheron Network
Spheron Network

On-demand DePIN for GPU Compute