# im

Sends an Instant Message to a specific user.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("im", [
  "slname", "Glaznah Gassner",
  "message", "Hello in-world!"
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="im"
```

```snippet http-api-input-q5yvAagqsZ
slname    | yes      | The Second Life login name of the avatar **or** their UUID
message   | yes      | The message text to send
nosafehub | optional | Set to `1` to ignore the command if the bot is currently in a Linden Safe Hub (Welcome Area). Recommended for greeters and inviters.
```

```snippet http-api-output-JAwUcmg7i7
```

# Example

Send an Instant Message to **Tester Resident**:

(The example uses the `smartbotsAPI()` helper function. Set your `apikey`, `botname`, and `secret` in that function.)

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("im", [
  "slname", "Tester Resident",
  "message", "Hello from bot!"
]);
```