Storing and Retrieving Data¶
The Store offers developers the ability to store and access data for individual users to personalize user experiences.
Botlet data can be accessed via the LOAD and FIND commands. To share data with other botlets, you can create an action that can be invoked by other botlets. This action will be responsible to LOAD the data and return it to the requesting botlet.
Example Use Case¶
It would be possible to create a Package Tracker skill which uses a botlet that collects and stores package tracking information using the
mso.parcel_delivery type from the Entities in order to show the latest delivery status of a given package.
The code sample below shows that mso.parcel_delivery has many properties. Here we only filled two of them for demonstration purposes.
CREATE "$mso.parcel_delivery", entity_title = "parcel", description="my package", tracking_number="12345" STORE myPackage SAVE myPackage as "myPackage" LOAD "myPackage" STORE loadedMyPackage