Understanding User Identify

Delivering Personalized Experience

One of the powerful features of BrainShop is that it enables the robot to give personalized responses to each user. For example, BrainShop based robots can memorize user names and greet users with their own name.

The better is you, as a developer, don't have to consider the user identify when you write cells, nerves or codes. And you don't have to get involved in storing and retrieving user data required for personalization. Everything is done by Brainshop, automatically. You just need to assign a unique ID for each user and include the ID as the "uid" argument when you invoke BrainShop APIs.

Generating User Identify

If your application requires user login, you already have an ID for each registered user. You can use it directly for uid parameter. Doing so users can be identified correctly as long as they log in, even they change devices.

If your application doesn't require login, the equipment serial number or OS serial number can be used as user ID. This is good for situations where each user uses her own device, say a mobile phone.

Applications for Mass users

Some applications have dynamic users, typically a lot. For example, a robot works at exhibition. For such applications, you may utilize the face identification or voice identification technology to generate user IDs on the fly. Users will be really impressed when they find that the robot still "remembers" them when they come back days later.

In addition, there is a simple and quick solution to mass user application, the <reset-user/> element, with which your application can delete the user data and treat the person as a new user under certain condition.

For example, you may allow user to tap a "reset" button, or let the system clear the user data after each session, or do that based on the user's words.

    • Hi!
    • Hello, Tom!
    • Err... I'm not Tom.
    • (<reset-user/>)
    • Sorry, I got the wrong person. May I have your name?
    • Bye!
    • See you!
    • (<reset-user/>)

Just by creating a few simple cells, your application can still handle the user identity in a smart way, without face/voice recognition.