A small launchpad for building Hexabot AI automation apps.
This template gives you a ready-to-run Nest app powered by @hexabot-ai/api. That dependency brings the Hexabot runtime, workflow engine, extension discovery, and built admin frontend, so this repo can stay focused on your project-specific code.
Hexabot lets you build agentic workflows across channels: conversational, manual, scheduled, tool-calling, memory-aware, or whatever your automation needs next.
This guide explains how to integrate Telegram with LinkedIn using Hexabot workflows.
Requirements:
- Node.js
20.19.x - npm, unless you change
hexabot.config.json - Docker only for
hexabot ... --docker curl- An AI model API key
- Recommended AI model:
gemma-4-31b-it
Install the CLI and create an app:
npm install -g @hexabot-ai/cli@3.2.2-alpha.17
npx @hexabot-ai/cli@alpha create support-bot
cd support-bot
hexabot devVerify the installation:
hexabot --versionOr:
npm list -g --depth=0The CLI creates .env, asks for the first admin credentials, installs dependencies, and starts local development with SQLite.
The admin UI runs at:
http://localhost:3000
- Sign up or sign in to your Telegram account.
- Search for the username
@BotFather. - Send the following commands one by one:
/start
/newbot
- Choose a username for your bot.
Example:
hexabot_telegram_linkedin_bot
The username must end with
bot.
You will receive a response similar to this:
Done! Congratulations on your new bot.
Use this token to access the HTTP API:
1234567890:ABCD-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If you receive this message:
Sorry, this username is already taken. Please try something different.
it means the username is already in use. Try another one.
You can test the generated token using this endpoint:
GET https://api.telegram.org/bot1234567890:ABCD-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/getMeCreate a new project using the CLI:
hexabot create hexabot-linkedin-botMove into the project directory:
cd hexabot-linkedin-botInstall dependencies:
npm installInstall the Telegram channel extension:
npm install hexabot-channel-telegramExtension page:
Expose your local API using a public tunneling service such as:
- ngrok
- pinggy
Once configured, you will receive a temporary public URL.
Example:
https://dqfsj-x-x-x-x.run.pinggy-free.link
Update your .env file:
API_ORIGIN=https://dqfsj-x-x-x-x.run.pinggy-free.link/apiStart the project:
hexabot startOpen the Sources page:
http://localhost:3000/settings/sources
Then:
- Make sure a Telegram source exists.
- If not, create one.
- Edit the Telegram source.
- Select a default workflow linked to the Telegram integration.
- Ensure the source is enabled.
Example:
- Name:
Telegram API access token - Value:
1234567890:ABCD-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Select the created credential.
Example:
- Name:
Webhook secret - Value:
HeLLo_123405678
Select the created credential.
Finally:
- Enable Auto set webhook
- Click Submit
Open the following API endpoint in your browser after replacing the placeholders with your actual values:
https://api.telegram.org/bot1234567890:ABCD-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/setWebhook?url=https%3A%2F%2Fdqfsj-x-x-x-x.run.pinggy-free.link%2Fapi%2Fwebhook%2F826e0fdb-429d-4039-a24c-48a8dbe5cbc2&secret_token=HeLLo_123405678
Create a LinkedIn application:
Fill in the following:
- App name
- Select or create a LinkedIn Page
- Upload a logo
- Accept the terms
- Click Create app
Request access for:
- Share on LinkedIn
- Sign In with LinkedIn using OpenID Connect
For both:
- Accept the terms
- Click Request access
Open:
Steps:
-
Click Create token
-
Select your app
-
Select all required scopes, especially:
openidw_member_social
-
Accept the redirect URL update notice
-
Click Request access token
-
Sign in and authorize the app
-
Confirm the verification code
-
Click Allow
Example access token:
A11B22C33D44XXXXXXXX
Store it securely.
Run:
curl -X GET "https://api.linkedin.com/v2/userinfo" \
-H "Authorization: Bearer A11B22C33D44XXXXXXXX"Expected response:
{
"sub": "ABCD1EF234"
}The value of sub is the LinkedIn member identifier you need.
Start the project:
hexabot startThen:
- Log in to your account.
- Open the Workflow Builder:
http://localhost:3000/workflow-editor/
- Click Import and select:
linkedin-post-form-telegram.yml file
- Click Model
- Select provider:
gemini - Set model name:
gemma-4-31b-it
- Add a Gemini API key credential
- Select the created credential
- Click Save
Set:
- Access Token:
A11B22C33D44XXXXXXXX
- Default Author URN:
ABCD1EF234
Click Save.
- Open Telegram.
- Select your bot:
hexabot_telegram_linkedin_bot
- Send a message such as:
Write me a LinkedIn post about this first test post that I sent from Telegram to my Hexabot LinkedIn integration.
- Check your LinkedIn profile.
A new LinkedIn post generated by Hexabot should now appear.
Your Telegram ↔ LinkedIn integration is now complete. 🚀
Keep this README close to the app. Update it when your project gains new scripts, services, extensions, workflows, or deployment rules.

