# instant_message

Activates when the bot receives an instant message from an avatar.

# Incoming and outgoing parameters

The input parameters are sent to your HTTP script along with this event. Output parameters (if any) should be generated by your script.

## Input parameters

| Parameter | Required | Value |
|-----------|----------|-------|
| action    | yes      | = instant_message |
| bot_name  | yes      | the SL name of your bot |
| channel   | yes      | the unique bot id |
| cid       | yes      | internal HTTP connection identifier (you can ignore this value) |

## Input parameters specific for `instant_message`

| Parameter | Required | Description |
|-----------|----------|-------------|
| speaker_type | yes      | The type of the speaker: AGENT |
| speaker_name | yes      | The name of the avatar talking |
| speaker_uuid | yes      | The UUID of the avatar talking |
| message   | yes      | The message itself |

## More info

This callback is triggered when your bot receives an instant message from an avatar.


:::info
This is a notification-only event. The bot does not expect any reply from your HTTP script.

:::