I've been working on nanobot, a personal AI assistant that lives in my terminal, and recently added one of my favorite features: the ability to publish blog posts directly through Telegram.
What is Nanobot?
Nanobot is an AI assistant I built that:
- Stores long-term memories about me (preferences, project details, personal info)
- Manages daily notes and tasks
- Has extensible "skills" that can do complex tasks
- Integrates with services like GitHub, Notion, Apple Notes, and more
The best part? It lives entirely in my terminal and can be controlled naturally through conversation.
The Telegram Integration
The key feature I wanted was the ability to create and publish blog posts without leaving Telegram. I'm often on my phone when ideas strike, and having to:
- Open a laptop
- SSH into my server
- Write the post
- Build and push
- Wait for Cloudflare Pages
...was just too much friction.
How It Works
The workflow is now incredibly simple:
- Telegram: I send a message like "Write a blog post about X"
- Nanobot: Receives it, uses the blog-post skill to create the post with proper frontmatter
- Validation: Runs a local build to catch any errors
- Git Push: Commits and pushes to the main branch
- Deploy: Cloudflare Pages automatically builds and deploys
The entire process takes about 30 seconds from idea to live post.
Technical Details
The blog-post skill is a custom nanobot skill that:
- Uses
gitto sync with the blog repository - Generates proper YAML frontmatter (title, date, category, description, slug)
- Validates posts with a local
python3 build.pybefore committing - Pushes to Cloudflare Pages which auto-deploys
Here's the skill configuration:
name: blog-post
description: Full-stack blog publisher to create content with frontmatter, validate builds, and push to git for Cloudflare Pages deployment.
Frontmatter Example
Each post gets this YAML header automatically:
---
title: "Your Title Here"
date: YYYY-MM-DD
category: [Projects, Learning, Meta]
description: Max 160 chars summary for SEO.
slug: url-friendly-slug
Valid categories include: DevOps, ML-AI, Projects, Career, Learning, Side-Projects, Meta
Why This Matters
This setup has increased my blogging frequency significantly because:
- Zero friction: No need to open an editor or remember build commands
- Immediate capture: Ideas get captured immediately when they occur
- Reliable: The build validation catches errors before they reach production
- Fast: Cloudflare Pages deploys in 1-2 minutes
What's Next
I'm planning to add:
- Image uploads via Telegram for blog post images
- Draft mode (save without publishing)
- Analytics integration to see which posts perform best
Wrapping Up
If you're interested in building your own AI assistant with custom skills, check out the nanobot project. The skill system makes it easy to add functionality like blog publishing, GitHub management, or any other automated workflow you can imagine.
Want to see nanobot in action? Just wait for the next blog postโI'll probably write it from Telegram. ๐