From SmartBots Developers Docs
Jump to: navigation, search

Initiates bot login sequence.


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

Variable Required Description.
Input basic parameters:
action yes = login
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.
location no The initial location to login. Leave blank for previous location.

Format: Region name/X/Y/Z

Use HOME instead of location to send the bot home (see examples below).

result OK - command completed successfully
FAIL - command failed
resulttext Detailed reason for the failure.
custom The value from input "custom" parameter. See above.


This commands just tells the bot to start logging in. It is always successful:

  • you won't get any error if the bot is already logged in
  • you won't get any error if the bot's password is incorrect


Login your bot immediately (the command is ignored if bot is already logged in). Bot logs in to DuoLife region:

string recipient="Tester Resident";

string params = llDumpList2String([
  "action="  + "login",
  "apikey="  + llEscapeURL(sbApiKey),
  "botname=" + llEscapeURL(sbBotName),
  "secret="  + llEscapeURL(sbBotAccessCode),
  "location="  + llEscapeURL("DuoLife/206/36/94")
  ], "&");
  [HTTP_METHOD,"POST"], params);

<< return back to Bot commands