From SmartBots Developers Docs
Jump to: navigation, search

Sends a notice to the group.


The following table shows input values (you send them with the API call) and returned output values.

Variable Required Description.
This API command applies only for Standard bot
Input basic parameters:
action yes = send_notice
apikey yes Your personal developer's API key.
botname yes Your bot's SL login.
secret yes Bot access code of your bot.
custom no The custom data (string) to be passed back to caller script. This value will be returned back to the caller in HTTP response.
groupuuid yes the UUID of the group
subject yes the subject of the notice (can't contain international characters)
text yes the text of the notice (can contain international characters)
attachment no inventory UUID of the attachment (see below)
result OK - command completed successfully
FAIL - command failed
resulttext Detailed reason for the failure.
custom The value from input "custom" parameter. See above.


  1. This command does not return FAIL if your bot has no "Send Group Notice" ability. Pay attention to bot's group permissions while using this command.
  2. The notice delivery is guaranteed even if the bot is offline (the invitation will be sent after bot comes online)


string sbApiKey="...";
string sbBotName="Fashion Firethorn";
string sbBotAccessCode="nskndKgfa-243js";
key httpReq=NULL_KEY;
default {
    touch_start(integer total_number) {
        string params = llDumpList2String([
            "action="  + "send_notice",
            "apikey="  + llEscapeURL(sbApiKey),
            "botname=" + llEscapeURL(sbBotName),
            "secret="  + llEscapeURL(sbBotAccessCode),
            "groupuuid="  + "877d11f0-72ad-649e-3ba2-96185b72d345",
            "subject=" + llEscapeURL("Notice subject"),
            "text=" + llEscapeURL("Notice text goes here")
            [HTTP_METHOD,"POST"], params);


The notice attachment can be taken from the bot's inventory. To make an attachment, proceed with the following steps:

  1. Set copy+transfer permissions to the object (so bot can give it with notice)
  2. Drop object to the bot in Second Life
  3. Open SmartBots account, click "manage bot":
  4. Open bot's inventory browser:
  5. Copy the "inventory UUID" of the required inventory item.

<< return back to Bot commands