• DELIVERY
  • COMMANDS
  • RECIPIENT
  • HUMAN

How to send peer to peer messages with your AI

Connect ZegoCloud to your AI client to enable direct communication. Once linked, your agent can reach out to users with text or system instructions.

Ask AI about this page

Short answer

Can my AI send direct messages to users?

Yes. Your AI uses the ZegoCloud MCP to trigger direct text messages or system commands to specific recipients. You'll see the results through the following breakdown.

The outcomes

What happens when you send a message.

The AI handles the delivery and execution based on your instructions.

DELIVERY

Direct text messages

The AI sends a text string to the target user. They receive it as a standard peer-to-peer message.

COMMANDS

System instructions

Your agent can issue system commands instead of plain text. This allows the AI to trigger specific logic in the client.

RECIPIENT

Targeted communication

The AI identifies the correct user for the message. You get confirmation once the message is sent.

HUMAN

Manual oversight

The AI doesn't decide who to message without your prompt. You remain in control of the conversation flow.

The workflow

What your AI does when a message is requested.

The AI translates your natural language into a specific tool call.

  1. Identify recipient

    The AI looks at your request to find the right user or channel for the message.

    send_peer_message
  2. Format payload

    The agent structures the text or the system command based on what you asked for.

    send_peer_message
  3. Execute delivery

    The AI calls the ZegoCloud tool to push the message through the peer-to-peer layer.

    send_peer_message
  4. Confirm status

    The agent reports back to you whether the message was successfully sent or if it failed.

    send_peer_message

Try it

Copy these to start.

Use these prompts to test the connection immediately.

Starting points

Replace the bracketed names with your actual user IDs or specific command strings.

ZegoCloud Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_aHG6b1W7K3KQMI23eWD2Zy3nI8QD6Qa3zfjCnnr6/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — ZegoCloud capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "zegocloud-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_aHG6b1W7K3KQMI23eWD2Zy3nI8QD6Qa3zfjCnnr6/mcp"
    }
  }
}
Copy into chat04
  • Send a peer message to user_123 saying 'Your report is ready'.

  • Tell the system to execute the 'reboot_module' command for the current session.

  • Message the support channel with the text 'System update required'.

  • Send a direct message to the admin user to notify them of a new login.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect ZegoCloud once, then ask.

Click the link to link your account. Your credentials stay encrypted, and you can start messaging through your AI client immediately.

Connect ZegoCloud to your AI

FAQ

How the messaging works

  • 01

    Can the AI send messages to anyone?

    No. The AI can only send messages to users or channels that the ZegoCloud MCP has access to.

  • 02

    Can the AI delete messages it already sent?

    No. This MCP only provides the ability to send messages and commands, not to manage or delete message history.

  • 03

    Does the AI decide when to message people?

    No. The AI only sends a message when you explicitly ask it to do so in your chat.

  • 04

    What is the difference between a text message and a system command?

    A text message is a standard string for a human to read. A system command is a specific instruction meant to trigger logic within the client.

  • 05

    Can I see if the user read my message?

    No. The tool confirms that the message was sent, but it does not provide read receipts or delivery status from the recipient.

  • More questions about ZegoCloud? The Connector page answers them. See everything the ZegoCloud Connector can do

Connect ZegoCloud to Claude, Cursor, ChatGPT & more