> For the complete documentation index, see [llms.txt](https://docs.developers.symphony.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.developers.symphony.com/bots/messages/overview-of-messageml.md).

# MessageML

This article gives an overview of the message workflow and shows how message representations are used throughout the workflow. In its subpages are presented the specifications of messageML.

## Introduction of the MessageML

When calling API methods that create messages, the content of the message must be sent using *MessageML* markup. MessageML is a tag-based language that is a subset of XHTML, with the addition of tags specific to Symphony Messaging for embedding information (e.g. a mention) into a message.

You can find the specifications of the MessageML language in the attached subpages. Even if they are grouped in different categories for documentation clarity purposes, please note you can do your own mix, respecting the specific rules explained at each component specification level.

Also, please note that **messages in MessageML markup are enclosed in a `<messageML>` tag.**

MessageML has full unicode support and messages should be sent using UTF-8 character encoding.

When [creating ](https://developers.symphony.com/restapi/main/messages/create-message-v4)or [retrieving](https://developers.symphony.com/restapi/main/messages/messages-v4) messages using the API, MessageML shorthand tags are translated into equivalent XHTML tags and returned in [PresentationML](/bots/messages/overview-of-presentationml.md).

{% hint style="info" %}
Note: MessageML is just a subset of PresentationML that makes it easier to construct messages from your bot. The API can ingest either MessageML or PresentationML. However, the API will only deliver messages as PresentationML to a bot.
{% endhint %}

{% hint style="warning" %}

## XML Formatting

MessageML is formatted as XML and should have all tags properly formatted. For example, rather than using `<br>` you must use `<br/>`.\
For string attributes, standard rules for escaping XML special characters apply, i.e. escaping:

* `'` with `&apos;` (if single quotes are used to quote the value)
* `"` with `&quot;` (if single quotes are used to quote the value)
* `<` with `&lt;`
* `&` with `&amp;` Other XML named entity sequences such as `&gt;` may be used.
  {% endhint %}

{% hint style="warning" %}

## Valid characters for hashtags and cashtags

Keywords may only contain alphanumeric characters, underscore, dot and dash.

Important: when sending numeric $cashtags as signals, add an `*` after the $ sign, for example, $\_122450.\
\<cash tag="$\_122450"/>
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.developers.symphony.com/bots/messages/overview-of-messageml.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
