> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuro-tech.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Messaging

> Send text or formatted XMPP chat messages

## Overview

Neuron uses XMPP for messaging. The Agent API lets you send messages without a persistent XMPP connection.

## Flow overview

```mermaid theme={null}
sequenceDiagram
  participant Client
  participant Neuron
  Client->>Neuron: Account/Login (HMAC)
  Neuron-->>Client: JWT
  Client->>Neuron: Xmpp/SendTextMessage (JWT)
  Neuron-->>Client: sent + message id
  Client->>Neuron: Xmpp/SendFormattedMessage (JWT)
  Neuron-->>Client: sent + message id
```

## Getting the recipient JID

A JID is the XMPP address of a user, such as `alice@neuron.example.com`. You can retrieve JIDs from your roster or directory services provided by your Neuron.

## Next steps

* [Send text messages](/neuron-api/api-reference/messaging/send-text-message)
* [Send formatted messages](/neuron-api/api-reference/messaging/send-formatted-message)
