$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 | This method returns the history of user and bot interactions within the current session. |
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. |