Close Menu

    Subscribe to Updates

    Get the latest news from tastytech.

    What's Hot

    Why has India arrested US, Ukrainian nationals under anti-terror laws? | Russia-Ukraine war News

    March 24, 2026

    Getting Started with Nanobot: Build Your First AI Agent

    March 24, 2026

    Ultrahuman opens US pre-orders for Ring Pro

    March 24, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    tastytech.intastytech.in
    Subscribe
    • AI News & Trends
    • Tech News
    • AI Tools
    • Business & Startups
    • Guides & Tutorials
    • Tech Reviews
    • Automobiles
    • Gaming
    • movies
    tastytech.intastytech.in
    Home»Business & Startups»Getting Started with Nanobot: Build Your First AI Agent
    Getting Started with Nanobot: Build Your First AI Agent
    Business & Startups

    Getting Started with Nanobot: Build Your First AI Agent

    gvfx00@gmail.comBy gvfx00@gmail.comMarch 24, 2026No Comments6 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email



    Image by Author

     

    Table of Contents

    Toggle
    • # Introduction
    • # Using Nanobot For Your First AI Agent
    • # Step 1: Installing uv
    • # Step 2: Installing Nanobot
    • # Step 3: Initializing Your Nanobot Project
    • # Step 4: Adding Your Nanobot Configuration
    • # Step 5: Connecting Nanobot To WhatsApp
    • # Step 6: Testing Your AI Agent On WhatsApp
    • # Final Thoughts
      • Related posts:
    • 11 Business & Tech Factors to Consider Before You Start
    • How AI is Reducing Emergency Room Overcrowding
    • AI That Auto-Generates Research Diagrams

    # Introduction

     
    I was looking for an alternative to OpenClaw, not because it is not useful, but because it can feel too heavy and bloated for simple everyday use. I wanted something lightweight, easy to set up, and simple to connect to WhatsApp without going through too many complicated steps. That is when I came across Nanobot on GitHub, and I also noticed that many people were starting to talk about it on YouTube.

    In this tutorial, we will explore the Nanobot architecture and how it works. Then, in six simple steps, we will go through the installation, setup, and process of connecting it to WhatsApp so you can start using it as a 24/7 artificial intelligence (AI) agent for a wide range of tasks.

     

    # Using Nanobot For Your First AI Agent

     
    Nanobot is an excellent choice for a first AI agent because it keeps the overall setup simple while still supporting the features that matter in real-world usage. It can connect to messaging platforms such as WhatsApp, Telegram, Slack, Discord, Feishu, QQ, and email, while also working with a wide range of model providers and model context protocol (MCP) tool servers. This provides beginners with a clear way to understand how an agent is structured without starting with a system that feels overly complex.

     

    Getting Started with Nanobot: Build Your First AI Agent
    Architecture of Nanobot | Image from HKUDS/nanobot

     

    It also stands out as an alternative to OpenClaw because it offers practical integrations and everyday usability from the start. Alongside messaging channels, it supports tool calling, web search, scheduled tasks, voice transcription, real-time progress streaming, and multiple provider options, which makes it easier to turn it into a useful personal assistant instead of just a demo project.

     

    # Step 1: Installing uv

     
    First, install uv, which Nanobot uses to manage the Python environment and dependencies. Then, confirm it was installed correctly by checking the version.

    curl -LsSf https://astral.sh/uv/install.sh | sh

     

    Check the installation:

     

    Output:

    uv 0.10.9 (f675560f3 2026-03-06)

     

    # Step 2: Installing Nanobot

     
    Once uv is installed, use it to install the Nanobot package. This will add the Nanobot command line interface (CLI) so it can be launched directly from the terminal.

    uv tool install nanobot-ai

     

    Installing Nanobot CLI

     

     

    # Step 3: Initializing Your Nanobot Project

     
    Next, run the onboarding command to initialize Nanobot.

     

    This creates the basic local setup, including the default configuration directory at ~/.nanobot and the workspace Nanobot uses to store its files. After this step, Nanobot is ready for provider, model, and channel configuration.

     

    Nanobot Onboarding Process

     

    # Step 4: Adding Your Nanobot Configuration

     
    Navigate to your ~/.nanobot/config.json file, then copy and paste the configuration below. Before saving, replace the placeholder values with your own OpenAI API key, model, and WhatsApp number.

    {
     "providers": {
       "openai": {
         "apiKey": "sk-REPLACE_ME"
       }
     },
     "agents": {
       "defaults": {
         "model": "openai/gpt-5.3-codex",
         "provider": "openai"
       }
     },
     "channels": {
       "whatsapp": {
         "enabled": true,
         "allowFrom": ["1234567890"]
       }
     }
    }

     

    Before you save, edit:

    • apiKey with your real OpenAI API key
    • model if you want to use a different model
    • allowFrom with your own WhatsApp number

    One important note — recent Nanobot issues show that WhatsApp allowFrom formatting can be slightly inconsistent in practice, and some users report it works better without the “+” sign depending on their specific setup.

     

    # Step 5: Connecting Nanobot To WhatsApp

     
    Before starting the WhatsApp login flow, ensure that Node.js and npm are installed on your machine, since the WhatsApp bridge runs through a Node-based process.

    First, start the login flow in one terminal:

    nanobot channels login whatsapp

     

    WhatsApp Login QR Code

     

    This will generate a QR code that you need to scan from WhatsApp → Settings → Linked Devices on your phone. Once the device is linked, open a second terminal and start the Nanobot gateway:

     

    Starting the Nanobot Gateway

     

    This is the process that keeps the channel running so Nanobot can receive and respond to WhatsApp messages.

     

    # Step 6: Testing Your AI Agent On WhatsApp

     
    To test the agent, you will need a second phone. This second phone number should already be added to the allowFrom list in your configuration file. When you send a message to the first phone number connected to Nanobot, it should reply through WhatsApp.

    In this example, the prompt asks what is happening in the world. Nanobot then processes the request, performs a web search if tools are enabled, and returns a detailed snapshot based on the latest information.

     

    Testing AI Agent via WhatsApp

     

    While the gateway terminal is running, you can observe the full agent workflow in real time. This includes receiving the message, calling tools, generating the response, and sending the reply back, which makes it easier to confirm that everything is functioning correctly.

     

    Agent Workflow in Terminal

     

     

    # Final Thoughts

     
    Setting up Nanobot showed me that building a personal AI agent does not have to be overly complicated, though it was not entirely friction-free. I appreciated how quickly I could transition from a terminal setup to a working WhatsApp-connected agent that provides useful responses in practice.

    However, I did encounter a few minor hurdles. On Windows, if Node.js or npm was already installed in a certain configuration, the Python script sometimes failed to detect npm correctly in the terminal, which made the initial setup slightly confusing. Additionally, the lack of extensive WhatsApp documentation meant it was not immediately obvious that the interface works by messaging the connected device directly rather than through a separate bot chat interface.

    Despite these minor issues, Nanobot remains a strong starting point for anyone looking to build their first AI agent. It provides a core agent experience without the overhead of heavier alternatives. Once the setup is operational, its value becomes immediately apparent, bridging the gap between simple terminal commands and a truly helpful personal assistant.
     
     

    Abid Ali Awan (@1abidaliawan) is a certified data scientist professional who loves building machine learning models. Currently, he is focusing on content creation and writing technical blogs on machine learning and data science technologies. Abid holds a Master’s degree in technology management and a bachelor’s degree in telecommunication engineering. His vision is to build an AI product using a graph neural network for students struggling with mental illness.

    Related posts:

    7 Statistical Concepts Every Data Scientist Should Master (and Why)

    Nanochat Trains GPT-2 Level Model using Auto-Improving Agents

    Top 7 Free Machine Learning Courses with Certificates

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleUltrahuman opens US pre-orders for Ring Pro
    Next Article Why has India arrested US, Ukrainian nationals under anti-terror laws? | Russia-Ukraine war News
    gvfx00@gmail.com
    • Website

    Related Posts

    Business & Startups

    Top 10 YouTube Channels to Learn Machine Learning

    March 24, 2026
    Business & Startups

    10 Best X (Twitter) Accounts to Follow for LLM Updates

    March 24, 2026
    Business & Startups

    Guide to Propensity Score Matching (PSM) for Causal Inference

    March 23, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Black Swans in Artificial Intelligence — Dan Rose AI

    October 2, 202517 Views

    BMW Will Put eFuel In Cars Made In Germany From 2028

    October 14, 202511 Views

    Best Sonic Lego Deals – Dr. Eggman’s Drillster Gets Big Price Cut

    December 16, 20259 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram

    Subscribe to Updates

    Get the latest tech news from tastytech.

    About Us
    About Us

    TastyTech.in brings you the latest AI, tech news, cybersecurity tips, and gadget insights all in one place. Stay informed, stay secure, and stay ahead with us!

    Most Popular

    Black Swans in Artificial Intelligence — Dan Rose AI

    October 2, 202517 Views

    BMW Will Put eFuel In Cars Made In Germany From 2028

    October 14, 202511 Views

    Best Sonic Lego Deals – Dr. Eggman’s Drillster Gets Big Price Cut

    December 16, 20259 Views

    Subscribe to Updates

    Get the latest news from tastytech.

    Facebook X (Twitter) Instagram Pinterest
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    © 2026 TastyTech. Designed by TastyTech.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.