Skip to content

n8n + Telegram: Build Your Own Personal Assistant Bot (No Code!)

This page may contain affiliate links.

\n

Imagine having a dedicated personal assistant working tirelessly for you, 24/7. Someone to remind you of tasks, fetch information, generate ideas, or even kickstart your morning routine. Sounds like a luxury reserved for the super-rich, right? Well, what if I told you that with a bit of ingenuity and two powerful, accessible tools – n8n and Telegram – you could build your very own, completely bespoke personal assistant bot? And the best part? You don't need to be a coding wizard.

\n

At sheddad.tech, we're all about empowering you to build, automate, and succeed in your digital side hustles. A custom bot isn't just a cool tech project; it's a productivity superpower that can free up precious time for your revenue-generating activities. In this comprehensive guide, we'll walk you through the process, from setting up your n8n instance to creating intelligent workflows that respond to your commands.

\n\n

Why n8n and Telegram? The Perfect Pair for Your Bot

\n

Before we dive into the nitty-gritty, let's understand why n8n and Telegram are such a brilliant combination for this project.

\n

  • \n
  • n8n: Your Automation Powerhouse. n8n is an open-source workflow automation tool. Think of it as a super-flexible digital brain that connects various services and applications. It allows you to build complex automated workflows using a visual interface, dragging and dropping 'nodes' (blocks of functionality) to create sequences of actions. It's incredibly powerful, offers a generous free tier for cloud usage, and can even be self-hosted for ultimate control.
  • \n
  • Telegram: The User-Friendly Interface. Telegram is a popular, secure messaging app with a robust Bot API. This API makes it incredibly easy to create bots that can send and receive messages, respond to commands, and even interact with users via buttons. Its widespread use in the UK and excellent mobile experience make it the ideal, accessible front-end for your personal assistant.
  • \n

\n

Together, n8n handles all the complex logic, data processing, and integrations with external services, while Telegram provides the intuitive chat interface where you'll interact with your bot. It’s a match made in automation heaven!

\n\n

Getting Started: Your n8n Instance and Telegram Bot Setup

\n

Let's get the foundational pieces in place. You'll need an n8n environment and a new Telegram bot.

\n\n

1. Setting Up Your n8n Instance

\n

You have a couple of options here, depending on your comfort level and budget:

\n

  • \n
  • \nn8n Cloud (Recommended for beginners): The easiest way to get started. n8n offers a free tier (Developer plan) that's perfect for experimentation, with paid plans starting from around Β£17/month (at current exchange rates) for more usage. Simply head to n8n.io/cloud and sign up. You'll get instant access to your n8n dashboard.
  • \n
  • \nSelf-Hosting: For more control and potentially lower ongoing costs, you can self-host n8n on a virtual private server (VPS). A basic DigitalOcean droplet, for example, starts from around Β£5/month. This usually involves using Docker. If you're comfortable with command lines, check out n8n's excellent self-hosting documentation. For this guide, we'll assume you're using n8n Cloud, but the workflows are identical regardless of where n8n is running.
  • \n

\n\n

2. Creating Your Telegram Bot

\n

This is straightforward and fun:

\n

  1. \n
  2. Open Telegram: On your phone or desktop app, search for @BotFather. This is Telegram's official bot for creating and managing other bots.
  3. \n
  4. Start a Chat: Tap or click on @BotFather and hit 'Start'.
  5. \n
  6. Create a New Bot: Type /newbot and send the message.
  7. \n
  8. Name Your Bot: BotFather will ask for a display name. Something like "Sheddad Assistant" or "My Productivity Bot".
  9. \n
  10. Choose a Username: This must be unique and end with 'bot' (e.g., sheddad_pa_bot).
  11. \n
  12. Get Your Token: Once successful, BotFather will give you an HTTP API Token. This is crucial! Copy this token and keep it safe. It's like the password for your bot.
  13. \n
  14. Start a Chat with Your Bot: Search for your new bot's username (e.g., @sheddad_pa_bot) and send it a 'Hello' message. This initiates a chat, which is necessary for n8n to 'see' messages from your bot.
  15. \n

\n\n

Building Your First Telegram Bot Workflow in n8n

\n

Now for the exciting part – bringing your bot to life with n8n workflows!

\n\n

1. The Basic 'Echo' Bot (Your First Workflow)

\n

Let's start with a simple bot that just echoes back whatever you send it.

\n

  1. \n
  2. \nLog into n8n: Go to your n8n dashboard (cloud.n8n.io or your self-hosted instance).
  3. \n
  4. \nCreate a New Workflow: Click 'Workflows' in the sidebar, then 'New Workflow'.
  5. \n
  6. \nAdd a Telegram Trigger Node: Click the '+' button and search for 'Telegram Trigger'. Drag and drop it onto the canvas.
  7. \n
  8. \nConfigure Telegram Trigger:\n\n
    • \n
    • Double-click the 'Telegram Trigger' node.
    • \n
    • Under 'Authentication', click 'Create New Credential'.
    • \n
    • Give it a name (e.g., 'My Telegram Bot').
    • \n
    • Paste your HTTP API Token from BotFather into the 'Bot Token' field. Click 'Save'.
    • \n
    • Make sure 'Listen to Messages' is toggled ON.
    • \n
    • Click 'Execute Workflow' to test the trigger. Now, send a message to your bot in Telegram. You should see data flow into the Telegram Trigger node in n8n.
    • \n
  9. \n
  10. \nAdd a Telegram Send Message Node: Click the '+' button, search for 'Telegram', and add a 'Send Message' node.
  11. \n
  12. \nConnect the Nodes: Drag a line from the output of the 'Telegram Trigger' node to the input of the 'Telegram Send Message' node.
  13. \n
  14. \nConfigure Telegram Send Message:\n\n
    • \n
    • Double-click the 'Telegram Send Message' node.
    • \n
    • Under 'Authentication', select your existing Telegram credential ('My Telegram Bot').
    • \n
    • For 'Chat ID', click the 'Add Expression' button (the cogs icon) and enter {{ $json.chat.id }}. This ensures the bot replies to the same chat it received the message from.
    • \n
    • For 'Text', click 'Add Expression' and enter {{ $json.text }}. This will send back the exact text it received.
    • \n
  15. \n
  16. \nTest and Activate: Click 'Execute Workflow' on the 'Telegram Send Message' node, then send another message to your bot in Telegram. It should echo it back! Once satisfied, toggle the workflow to 'Active' in the top right corner.
  17. \n

\n\n

2. Adding a Simple Command Handler

\n

Let's make it smarter. We'll add a command like /hello.

\n

  1. \n
  2. \nAdd an 'If' Node: Between your 'Telegram Trigger' and 'Telegram Send Message' nodes, add an 'If' node.
  3. \n
  4. \nConfigure the 'If' Node:\n\n
    • \n
    • Double-click the 'If' node.
    • \n
    • Add a condition: Value 1: {{ $json.text }}, Operation: contains, Value 2: /hello.
    • \n
  5. \n
  6. \nModify the Telegram Send Message (True Branch): Connect the 'True' output of the 'If' node to your existing 'Telegram Send Message' node. Change the 'Text' in this node to something like: Hello there! How can I assist you today?
  7. \n
  8. \nAdd Another Telegram Send Message (False Branch for other messages): Add a new 'Telegram Send Message' node. Connect the 'False' output of the 'If' node to this new node. Configure its 'Chat ID' to {{ $json.chat.id }} and 'Text' to something like: I didn't understand that. Try sending /hello.
  9. \n
  10. \nTest: Send /hello to your bot. Then send something else. See the different responses!
  11. \n

\n\n

If all this node-connecting feels a bit much, or you're just keen to fast-track your automation journey, consider checking out our n8n Starter Workflows. These are plug-and-play n8n workflow templates you can import in minutes, giving you a head start on common automation tasks for your side hustle (from Β£9).

\n\n

Elevating Your Assistant: Side Hustle Ideas & Advanced Features

\n

Now that you've got the basics down, let's explore how you can make your bot genuinely useful for your side hustles and personal productivity.

\n\n

Side Hustle Automation Ideas for Your Bot

\n

  • \n
  • \nContent Idea Generator: Integrate with an AI service like OpenAI or Anthropic. Send a command like /idea social media marketing, and n8n makes an API call, then sends back a list of fresh content ideas. You'll need an API key for these services (OpenAI's GPT-3.5-turbo is very affordable, often fractions of a penny per query).
  • \n
  • \nQuick Research Summariser: Send your bot a URL. n8n can use an 'HTTP Request' node to fetch the page content, perhaps clean it with a 'Code' node, then send the text to an AI node for a concise summary.
  • \n
  • \nLead Capture Bot: Create a simple form within Telegram using inline keyboards. Your bot guides users through questions, and n8n takes their responses and saves them to a Google Sheet, Airtable, or your CRM.
  • \n
  • \nSocial Media Scheduler: Send a post and image to your bot, perhaps with a desired publication time. n8n then queues it up with a platform like Buffer or directly posts to Twitter/Facebook via their APIs.
  • \n
  • \nDaily Task Reminders/News Digests: Use n8n's 'CRON' trigger to schedule workflows to run at specific times (e.g., 9 AM every weekday). Your bot can then send you a personalised reminder list, a summary of industry news (fetched via RSS feeds or news APIs), or a motivational quote.
  • \n

\n\n

Advanced n8n Features to Explore

\n

  • \n
  • \nAI Integration: n8n has dedicated OpenAI and Llama nodes. Use them for natural language processing, text generation, translation, sentiment analysis, and more. This is where your personal assistant truly becomes intelligent.
  • \n
  • \nHTTP Request Node: The most versatile node. Connect to virtually any web service or API out there (weather, stock prices, project management tools, smart home devices).
  • \n
  • \nCode Node: If you're comfortable with a bit of JavaScript, the 'Code' node lets you write custom logic, parse complex data, or handle edge cases that visual nodes might not cover directly.
  • \n
  • \nVariables and Data Storage: For more complex bots, you might need to store information about users or ongoing conversations. While n8n isn't a database, you can integrate it with external databases (PostgreSQL, MySQL) or simpler key-value stores like Redis if self-hosting. For simpler needs, consider Google Sheets as a 'database'.
  • \n
  • \nError Handling: As your workflows get more complex, implement error handling to notify you if something goes wrong, ensuring your bot is reliable.
  • \n

\n\n

The Future is Automated: Your Personal Bot Awaits!

\n

Building a personal assistant bot with n8n and Telegram might seem daunting at first, but as you've seen, the core concepts are surprisingly accessible. You're not just creating a fancy gadget; you're investing in a powerful tool that can dramatically boost your personal productivity and supercharge your side hustles by automating mundane tasks.

\n

The beauty of n8n is its flexibility. Start with simple commands, then gradually layer on more complex integrations with AI, external APIs, and data storage. Experiment, build, and customise your bot to perfectly fit your unique needs. Your digital personal assistant is no longer a futuristic dream; it's a practical, achievable reality that you can build today, right here in the UK.

\n

So, what will your personal assistant bot do for you first? Dive in, and start automating!

Written by

Richard Tucker

View all posts β†’