# Messages Format

## Plain text

By default when you send a message using the SDK, the UI shows it in plain text.

Plain text messages are great for chatting or sending messages that don't contain formatting to the user.

<figure><img src="https://2332253210-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9YXfNoIzbidkaC4JWWjU%2Fuploads%2F5kAiGpHQitHLoIVsx5U2%2FScreenshot%202023-10-13%20at%2021.03.52.png?alt=media&#x26;token=aa70e60a-98ba-46de-a809-24d9977682b0" alt=""><figcaption><p>Plain text response example</p></figcaption></figure>

Sending plain text is the default behavior of the SDK, so you just have to run the following code:

{% tabs %}
{% tab title="Python" %}

```python
agent.send({
    conversation_id: 'your-conversation-id',
    text: 'Your plain text value',
});
```

{% endtab %}

{% tab title="TypeScript" %}

```
agent.send({
    conversationId: 'your-conversation-id',
    text: 'Your plain text value',
});
```

{% endtab %}
{% endtabs %}

## Markdown

Often, you may want your agent to return more than just a simple text. In that situation, you most likely want to use the markdown format.

Markdown is great for applying **some** *styling,* [or to display a link](https://agentlabs.dev), generating a table, displaying `code snippet` , images, and more.

You can see a [full markdown cheatsheet here.](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)

{% embed url="<https://youtu.be/r6PK--cEdjw>" %}
Example of a message containing markdown
{% endembed %}

Send indicate the interpreter you are sending text in Markdown, you just have to use the `MARKDOWN` format option.

{% tabs %}
{% tab title="Python" %}

```python
from agentlabs.chat importMessageFormat

agent.send(
  text="**My Text**",
  format=MessageFormat.MARKDOWN,
  conversation_id=self.conversation_id,
)
```

{% endtab %}

{% tab title="TypeScript" %}

```
agent.send({
    conversationId: 'your-conversation-id',
    text: 'Your plain text value',
    format: 'Markdown'
});
```

{% endtab %}
{% endtabs %}
