LightVela

How Can One Agent Appear Across Multiple Messaging Apps?

Summary

The gateway normalizes platform messages, routes them to the configured Bot, and returns results to the originating conversation. Each channel retains its own authorization, group settings, and delivery limits. Channels connected to the same Bot share that Bot’s persona and long-term memory. Different Bots have separate Profiles, with their own memories and skills. A chat message does not automatically become long-term memory just because it reaches the same Bot.


The scenario this solves

Suppose the same Bot is connected to Telegram, WhatsApp, and Discord. In the morning, ask it on Telegram to save a project deadline. At midday, ask about that saved date in a new WhatsApp session. In the evening, add a confirmed change through Discord. The continuity comes from saved facts, not from automatically merging every chat on all three platforms.

If those three interactions behaved like three unrelated bots, multi-platform access would be worthless — you would re-explain the context every time. The useful shape is different: three entry points, one assistant.

The difficulty here is commonly misread as "integrating a few more APIs." API integration is only the surface-level work. The real problem is this: make every entry point resolve to the same identity and context, without breaking each platform's own rules. The message gateway is the layer that resolves that tension.


1. First, a correction: a channel is not an Agent

This distinction is the prerequisite for everything else.

ConceptWhat it isCardinality
ChannelAn entry point for messages, e.g. Telegram, WhatsApp, Discord, Slack, WeChatOne Agent can connect many
Bot / ProfileThe persistent working subject holding identity, memory, skills, tasksShared within one Bot; separate across Bots

People instinctively treat "my Telegram bot" as a standalone entity, which naturally raises the question "so is my WhatsApp bot a different one?" Once channels are understood as entry points rather than subjects, the question dissolves.

The full path looks like this:

Messaging apps (multiple entry points)
    ↓  platform-native messages
Message gateway (normalise / route / deliver)
    ↓  unified request
The same Hermes Agent
    ↓
model inference + tool execution + memory recall + skill loading
    ↓  execution result
Message gateway
    ↓  delivered in platform format
Original conversation on the original channel

Note that final step — the original conversation on the original channel. That is not a footnote; it is one of the core problems the gateway must get exactly right, covered below.


2. Gateway job one: receive and normalise

Platforms differ along nearly every dimension:

  • Different user identifiers — numeric IDs, phone numbers, or platform-internal usernames.
  • Different conversation identifiers — direct messages, groups, channels, and threads are each represented differently.
  • Different message structures — text, images, voice, files, quoted replies, and reactions all have their own field designs.
  • Different event models — some push via webhooks, others need a persistent connection or polling.

If the Agent faced these differences directly, platform-specific branching would spread through its core, and every new platform would mean touching core logic. Normalisation confines those differences to the gateway: platform-native messages become one uniform request, so the Agent only ever needs to understand a single input shape.

The practical payoff: adding a channel should not require changing identity, memory, or skill logic. The Agent cares about what was asked, not which app's field layout carried it.


3. Gateway job two: route to the same Agent

This is the step that makes "one personality across platforms" possible.

Once a request is normalised, the gateway uses your connection configuration to determine which Agent it belongs to, then hands the request to that Agent. It does not spin up a fresh personality or memory store just because the message arrived from a newly connected platform.

This matters because it decides whether long-term assets are shared or fragmented:

AssetWhere it livesBehaviour across channels
Identity and behavioural rulesSOUL.mdShared within one Bot; separate across Bots
User profileUSER.mdShared within one Bot; separate across Bots
Cross-session factsMEMORY.md / memories/Shared within one Bot; separate across Bots
Captured methodsskills/Shared within one Bot; separate across Bots
Scheduled TasksAgent-layer configurationOwned by the current Bot; delivery channel and target conversation are configurable

The table describes sharing within one Bot. Saved assets can be reused across its channels; raw chat contexts are not automatically merged. Other Bots maintain their own content.

This is the same decoupling logic as "switching models does not lose memory": separate the volatile access layer from the stable asset layer. For the model-side version of this argument, see "Can a Hermes Agent's Brain Be Replaced? Model Layer vs Agent Layer."


4. Gateway job three: deliver back to the right place

Once the Agent finishes, the gateway sends the result back. "Sending it back" is harder than it sounds, because it must answer three questions correctly at once:

  1. Which platform — a message from Telegram must return to Telegram, not WhatsApp.
  2. Which conversation — on one platform you may have direct messages plus several groups and channels. Replying to the wrong conversation is not merely awkward; in a group context it can leak information.
  3. Which format — platforms differ on message length limits, Markdown support, how images and files are sent, and whether quoted replies exist. The same content needs different presentation per platform.

The second point deserves emphasis. Wrong delivery targets are the highest-severity class of problem in multi-channel setups: private content posted to a group, or one team's conclusion sent to another team's channel. That is exactly why every newly connected channel should be verified with a test message in a safe conversation first.


5. Unified does not mean unbounded

"One Agent, many entry points" is easily over-read as "all platforms behave identically." In reality each channel keeps its own constraints, and sharing an Agent does not remove them.

5.1 Authorisation differs

Each platform has its own connection flow and credential shape: some require creating a bot in a developer portal and copying a token, some require scanning a QR code, some require an AppID and AppSecret. In other words, connecting each channel is an independent authorisation step — one setup does not cover them all.

5.2 Supported channels differ by region

This is an easy trap when reading documentation: LightVela's global and China regions do not support the same channel set. The global channel order is Telegram, WhatsApp, Discord, Slack, WeChat, QQ, WeCom, Lark. The China region supports WeChat, QQ, WeCom, Lark, and DingTalk.

So when you see a claim like "Telegram is supported," confirm which region it applies to rather than assuming it carries across.

5.3 Group context differs from direct messages

In a direct message the Agent faces one person; in a group it faces many. Groups add questions: when should it respond, when should it stay silent, what content is inappropriate to expand on publicly, and who is allowed to trigger sensitive actions. These belong to behavioural rules and permission design — the gateway cannot decide them automatically.

5.4 Delivery capabilities differ

Message length caps, rich-text support, file sending, and the ability to quote a specific message all shape the output. A long reply that renders cleanly in Discord may need splitting or simplifying elsewhere.


6. A practical order for connecting a new channel

Turning the principles above into steps, this order avoids most problems.

  1. Confirm regional support — verify the channel is available in your region, so you are not following documentation written for another one.
  2. Complete platform-side authorisation — follow that channel's guide to create a bot or grant access and obtain the credentials. Credentials are sensitive: never write them into long-term context files or paste them into chat.
  3. Connect on the product side — enter the credentials, save, and confirm the status shows as connected.
  4. Send a test message — use a safe conversation (a direct message or a test group) and confirm the Agent replies.
  5. Verify the delivery target — specifically check that the reply landed in the same conversation you messaged from, not another one.
  6. Check the Bot and saved memory — confirm both connections belong to the same Bot, then ask about a saved fact in a new session.
  7. Only then add group access — after direct messages check out, join groups and confirm the in-group response boundaries behave as expected.

Step 6 requires checking both the connection configuration and the saved content. A correct answer in an old chat may come from that chat’s context, and an existing session may not immediately load a recent memory edit.


7. Common symptoms and how to read them

SymptomMore likely causeSuggested action
No reply at all on a new channelAuthorisation incomplete or credentials wrongCheck connection status and credentials, redo authorisation
Reply appears in a different conversationDelivery target resolution or configuration errorStop using it in groups; move to direct messages to isolate
Replies, but "doesn't know me"Possibly connected to a different AgentVerify with a known fact and check which Agent the connection points to
Groups silent, direct messages fineIn-group trigger rules or permissionsReview group response rules and required permissions
Long replies truncated or misformattedPlatform delivery limitsAdjust output length and formatting for that platform

Row three deserves attention: "doesn't know me" means something different here than it does after a model switch. After switching models it is usually a style difference; on a newly connected channel it more likely means this channel is not pointing at the Agent you assumed. The diagnostic is the same — ask about one fact you are certain it should know.


8. LightVela's approach: channels as pluggable entry points

Hermes separates channels from the Agent at the mechanism level, but connecting each platform still means handling credentials, callbacks, and runtime yourself. LightVela's direction is to make that layer a productised, pluggable entry point:

  • Channels are settings — connect or disconnect them under one Agent, with no need to create a separate Agent per platform.
  • Consistent within a Bot — its connected channels use that Bot’s persona and memory. After switching Bots, check the content saved by the selected Bot.
  • Connection state is visible — the console shows whether a channel is connected, making it easy to distinguish "never connected successfully" from "connected but not replying."
  • Regional differences are explicit — the global and China regions each list their own supported channels, preventing cross-region mistakes.
  • Problems are traceable — recent logs in Diagnostics help separate authorisation issues from delivery issues from task issues.

Key points

  • The gateway normalizes platform messages, routes them to the configured Bot, and returns results to the originating conversation. Each channel retains its own authorization, group settings, and delivery limits.
  • The gateway does three things: normalise platform differences, route to the same Agent, and deliver back to the original conversation.
  • Identity, memory, skills, and scheduled tasks live outside the channel layer, so cross-channel continuity is an architectural consequence, not an added sync feature.
  • Unified does not mean unbounded: authorisation, regional support, group context, and delivery limits differ per channel.
  • After connecting, check Bot ownership, reply destination, and saved facts in a new session.

Last updated 2026-11-15