Contents

Support Managers

Sammyredfire
English
online
Aerielle Kiyori
English
offline
show offline managers  
English, Hindi, Russian  

give_inventory (SBSL Command)

Have a question? Ask at SmartBots DevPortal!

DevPortal is a blog and forum for developers. Ask your questions to get a prompt reply!

Continue to DevPortal


Gives the specific object or inventory folder to the resident.

Syntax

give_inventory RESIDENT-UUID OBJECT-ID

Command parameters

The following table explain the entries of the command:

Entry Description
RESIDENT-UUID the resident UUID to invite
OBJECT-ID the object or folder inventory UUID (see comments below)

Comments

OBJECT-ID is the inventory UUID, not an asset UUID. It can be retrieved in SmartBots account, by using "Inventory" page of your bot.

  1. The inventory is loading each time your bot restarts. Allow about 60 seconds for inventory to completely load.
  2. Bot automatically recognizes the inventory folders and delivers them accordingly.
  3. The commands freezes for about 15 seconds if object UUID is not exists in bot's inventory. To avoid this make sure you are using correct UUIDs.

Examples

Gives resident a notecard (or whatever else) when resident starts talking with bot:

start_typing {
  group_invite $speaker_uuid 3b65a122-8f77-64fe-5b2a-225d4c490d9c
}

<< return back to SBSL commands