惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
GbyAI
GbyAI
M
MIT News - Artificial intelligence
美团技术团队
罗磊的独立博客
雷峰网
雷峰网
量子位
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
D
Docker
小众软件
小众软件
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
WordPress大学
WordPress大学
V
V2EX
博客园_首页
腾讯CDC
The Cloudflare Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Automating LinkedIn Posts from Telegram with Hexabot
Med Marrouch · 2026-05-16 · via DEV Community

Automating LinkedIn Posts from Telegram with Hexabot

In this article, I want to share a practical Hexabot demo: publishing a LinkedIn post directly from Telegram.

The idea is simple:

You send a message to a Telegram bot.
Hexabot receives it.
An AI workflow prepares the LinkedIn post.
The content is published to LinkedIn automatically.

This is a small example, but it demonstrates something important: AI workflows do not have to live only inside dashboards or internal tools. They can start from a conversation, connect to external services, use AI, and trigger real business actions.

What we are building

This example connects three main pieces:

  1. Telegram as the input channel
  2. Hexabot as the AI workflow automation engine
  3. LinkedIn as the publishing destination

The workflow starts when a user sends a message to a Telegram bot. Hexabot receives the message through the Telegram channel extension, processes it through a workflow, generates or formats the LinkedIn post using an AI model, then publishes it using the LinkedIn API.

You can find the full example here:

https://github.com/hexabot-ai/linkedin-post-from-telegram-example

Why this example matters

A lot of AI demos stop at generating text.

But in real operations, generating text is rarely the final step.

Usually, you need to:

  • receive input from a user or a system
  • understand the request
  • transform it into structured content
  • call an external API
  • track what happened
  • and keep the process reusable

That is where workflow automation becomes useful.

In this example, Telegram is not just a chat interface. It becomes the entry point for an automation process. LinkedIn is not just a manual publishing destination. It becomes an action executed by the workflow.

Hexabot sits in the middle as the orchestration layer.

How the workflow works

At a high level, the flow looks like this:

Telegram message
      ↓
Hexabot Telegram channel
      ↓
AI workflow
      ↓
LinkedIn publisher action
      ↓
LinkedIn post

Enter fullscreen mode Exit fullscreen mode

A user sends a prompt such as:

Write me a LinkedIn post about this first test post that I sent from Telegram to my Hexabot LinkedIn integration.

Enter fullscreen mode Exit fullscreen mode

Hexabot receives the message, runs the imported workflow, uses the configured AI model to prepare the content, then publishes the final post to LinkedIn.

Main setup steps

The repository includes a detailed README, but here is the overall process.

1. Create a Hexabot project

First, install the Hexabot CLI and create a new project:

npm install -g @hexabot-ai/cli
hexabot create hexabot-linkedin-bot
cd hexabot-linkedin-bot

Enter fullscreen mode Exit fullscreen mode

Then start the project locally:

hexabot dev

Enter fullscreen mode Exit fullscreen mode

The admin interface will be available at:

http://localhost:3000

Enter fullscreen mode Exit fullscreen mode

2. Create a Telegram bot

To receive messages from Telegram, you need to create a bot using @BotFather.

In Telegram:

/start
/newbot

Enter fullscreen mode Exit fullscreen mode

After choosing a name and username, Telegram gives you a bot token. This token will later be configured inside Hexabot as a credential.

3. Install the Telegram channel extension

The example uses the Hexabot Telegram channel extension:

npm install hexabot-channel-telegram

Enter fullscreen mode Exit fullscreen mode

This extension allows Hexabot to receive messages from Telegram and use them as workflow inputs.

4. Expose your local API

Telegram needs a public webhook URL to send messages to your local Hexabot instance.

For local development, you can use a tunneling service such as:

ngrok
pinggy

Enter fullscreen mode Exit fullscreen mode

Once your local API is exposed, update your .env file:

API_ORIGIN=https://your-public-url.example.com/api

Enter fullscreen mode Exit fullscreen mode

5. Configure the Telegram source in Hexabot

Inside the Hexabot admin panel, go to the sources settings page:

http://localhost:3000/settings/sources

Enter fullscreen mode Exit fullscreen mode

From there, configure the Telegram source:

  • enable the source
  • select the default workflow
  • add the Telegram bot token credential
  • add a webhook secret credential
  • enable automatic webhook setup if needed

This allows Telegram messages to be routed into the correct Hexabot workflow.

6. Configure LinkedIn access

To publish to LinkedIn, you need a LinkedIn developer application and an access token with the required permissions.

The README walks through the process of:

  • creating a LinkedIn app
  • enabling the required LinkedIn products
  • generating an OAuth access token
  • retrieving the LinkedIn sub identifier
  • using that identifier as the author reference for publishing

You will need two important values:

LinkedIn access token
LinkedIn member identifier

Enter fullscreen mode Exit fullscreen mode

These values are used by the LinkedIn publisher step in the workflow.

7. Import the workflow

The repository includes a ready-made workflow file:

linkedin-post-form-telegram.yml

Enter fullscreen mode Exit fullscreen mode

Import it from the Hexabot workflow editor:

http://localhost:3000/workflow-editor/

Enter fullscreen mode Exit fullscreen mode

After importing it, configure:

  • the AI model provider
  • the model name
  • the AI API key credential
  • the LinkedIn access token
  • the default LinkedIn author identifier

Once saved, the workflow is ready to run.

What makes Hexabot useful here

This example is not only about publishing to LinkedIn.

It shows how Hexabot can be used as an AI automation layer where workflows can:

  • start from a conversation
  • connect to channels like Telegram
  • use AI models
  • call external APIs
  • execute real actions
  • stay self-hostable and extensible

For developers, this is especially useful because Hexabot workflows can be extended with custom actions, channels, and integrations.

That means you are not limited to Telegram and LinkedIn.

The same pattern could be adapted for:

  • posting to other social platforms
  • creating CRM notes
  • sending internal notifications
  • generating support replies
  • preparing marketing content
  • triggering approval workflows
  • building internal AI assistants

Final thoughts

This Telegram-to-LinkedIn example is intentionally simple, but it shows the power of connecting conversations with real automation.

Instead of opening multiple tools, copying text, formatting content, and publishing manually, you can start the whole process from a Telegram message and let Hexabot orchestrate the workflow.

You can explore the full example here:

https://github.com/hexabot-ai/linkedin-post-from-telegram-example

And if you find Hexabot useful, consider giving the main repository a star on GitHub:

https://github.com/hexabot-ai/hexabot