> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.gbnetwork.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Integrate Telegram with Hermes

This guide will walk you through connecting your Telegram bot to your Hermes AI agent. Once integrated, you can interact with your AI directly from Telegram.

### Prerequisites 

Before you begin, ensure you have:
* An active Hermes VPS 
* A Telegram account
* **Your Hermes agent already set up** (if not, complete the [Hermes Agent Setup Guide](https://helpdesk.gbnetwork.com/en/article/how-to-set-up-your-hermes-agent-1kyjmje/) first)

|| If you're new to Hermes, feel free to check out this [__guideline__](https://helpdesk.gbnetwork.com/en/article/hermes-vps-quick-start-guide-9fe1pq/).

### Step 1 : Create a Telegram Bot via BotFather

1. Open Telegram and search for [**__@BotFather__**](https://t.me/botfather/)**.**
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/aa_1gztbwj.png =600x500)

2. Send the command `/newbot` to start creating a new bot.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/b_1a58sev.png =600x500)

3. Choose a **name** for your bot (e.g., `My Assistant AI`).
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/c_7ncsts.png =600x500)

4. Choose a **username** for your bot. **Important:** The username must end with the word `bot` (e.g., `my_assistanceAI_bot`).
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/d_rh2eok.png =600x500)

5. Save your bot token. BotFather will send you a message with your bot's token (e.g., `1234567890:ABCdefGHIjklMNOpqrsTUVwxyz`). Keep this token secure, you'll need it in Step 3.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/ss_1ar9621.png =600x500)

|| 💡 Tip: Click the bot link BotFather provides (e.g., `t.me/my_assistantAI_bot`) to open your bot and send it a test message later.

### Step 2 : Get Your Numeric Telegram ID

To ensure only you can control your Hermes agent, you need your personal numeric Telegram User ID:

1. **Search** for **@userinfobot** in Telegram.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/aq2ffrjbh3_frqdj2.png =600x500)

2. Send any message to receive your exact numeric ID (e.g., `987654321`). Then, **copy your numeric ID.**
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/mitorgabyy_zn1edd.png =600x500)

### Step 3 : Configure Hermes on Your VPS

1. SSH into your Hermes VPS.

2. Run setup command: `hermes gateway setup`

3. When prompted, select platform and choose **Telegram** from the list.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/satu_10i08k5.png =600x500)

4. Enter bot token and paste the token you saved from @BotFather.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/xbdmxrd67x_1cdtk6q.png =600x500)

5. Enter your user ID and paste the numeric ID you got from @userinfobot.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/step-3-2_1is158l.png =600x500)

6. Continue through the remaining prompts, configure other settings according to your preferences.

|| ⚠️ **Important:** Telegram bot will **not respond** until this configuration is successfully completed.

### Step 4 : Test Your Connection

1. **Open Telegram** and find your bot (use the link from BotFather or search its username).
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/step-3-1_1dvn26o.png =600x500)


2. Send `/start` or send any message to the bot. Wait for a response. If everything is configured correctly, your Hermes agent will reply.
![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/9/3/67938060e89a4400/rd4nw0smkh_jloi7s.png =600x700)

| You have successfully integrate Telegram with Hermes.

### 🔗 Related Articles
* [__How to Set Up Your Hermes Agent__](https://helpdesk.gbnetwork.com/en/article/how-to-set-up-your-hermes-agent-1kyjmje/)
* [__How to Access the Hermes Dashboard Locally__](https://helpdesk.gbnetwork.com/en/article/how-to-access-the-hermes-dashboard-locally-1lzh26e/)
* [__Hermes VPS: Essential Command Guide__](https://helpdesk.gbnetwork.com/en/article/hermes-vps-essential-command-guide-1bo9ayk/)

---

### Need Further Assistance?

If you face any issues or need assistance, don’t hesitate to reach out — **our support team is always ready to help!**

🔧 **Need help?** [Submit a Support Ticket](https://secure.gbnetwork.com/submitticket.php)
💬 **Chat with us on Live Chat via our** [__website__](https://www.gbnetwork.my/)
