$jsapi
The $jsapi built-in service includes various system methods.
Methods
Common methods
| Method | Description | 
|---|---|
| bind | This method is used for setting up handlers. | 
| chatHistory | The method returns the dialog history of the current session in a simplified format. | 
| chatHistoryJson | The method returns the detailed dialog history of the current session in the JSON format. | 
| context | This method returns an object which represents the current request context. | 
| random | This method returns a random integer number in the specified range. | 
| resolvePath | This method converts relative state paths to absolute ones. | 
| version | The method returns metadata about the current version of JAICP. | 
Current time retrieval methods
| Method | Description | 
|---|---|
| currentTime | This method returns the current Unix time in the UTC time zone. | 
| dateForZone | This method returns the current date and time in the specified format. | 
| timeForZone | This method returns the current Unix time in the specified time zone. | 
Session control methods
| Method | Description | 
|---|---|
| startSession | This method starts a new session. | 
| stopSession | This method stops the current session. | 
| newSession | Deprecated This method creates a new session and passes parameters to it. |