

This method starts the Oct8ne chat with an “input type” and an initial chat message, sent as an agent.This function supports 2 optional parameters:enterType: This is a string that can take the values: ‘TRIGGER’, ‘CUSTOM’, ‘LIVECHAT’. If the input type is not specified, it defaults to TRIGGER.message: This refers to the message to be conveyed at the start of that session.* This function does not return a value.
This method checks the client settings to see if chat is enabled (or disabled) on the website.This function does not support parameters.* This function returns a Boolean value: ‘true’ if chat is enabled and ‘false’ if it is disabled.
This function checks the visitor's status.This function does not accept parameters.* This function returns a string (“Just Looking,” “Waiting,” “Attending”) depending on the visitor’s status at the time the call is made.
Checks agent availability at the time the function is called.This function does not accept any parameters.* This function returns a boolean value: ‘true’ if agents are connected, and ‘false’ if no agents are connected to the Oct8ne dashboard.
Check whether the user is browsing from a mobile device (or not)This function does not support parameters.* This function returns a Boolean value: ‘true’ if the user is on a mobile device, and ‘false’ if the user is on another device (desktop computer)
This method updates the values of the specified property in "oct8ne.customData" and re-evaluates the triggers.It is only used if the "oct8ne.customData" object is embedded in the page.This function supports two parameters:key: A string corresponding to the property you want to update.value: A string containing the new value you want to assign to the trigger.* This function does not return anything as a response.
This function reloads the Oct8ne API, simulating a page refresh. Useful for SPA environments.This function does not support parameters.* This function does not return a response.
A method that updates context variables so that the agent can see them reflected in the Oct8ne dashboard.This function accepts 1 required parameter. It must be a key-value object containing the variables to be updated or added.* This function does not return a value.

METHODS RELATED TO CHAT SIZE.
They change the size of the chat window.

A method that minimizes the Oct8ne window.This function does not accept any parameters.* This function does not return a value.
Opens Oct8ne, using only the size of the chat module.This function does not support parameters.* This function does not return a response.
Open Oct8ne fully; that is, display the expanded chat module with the preview pane open (if the client settings allow it).This function does not support parameters.* This function does not return a response.
METHODS RELATED TO THE BOT
Retrieves the values of the visitor's variables in the bot.This function does not support parameters.* This function does not return a response.
Updates the values of the visitor's context variables in the Bot.This is only used if the ‘oct8ne.options’ object is embedded in the page.This function supports 1 required parameter. It must be a key-value object containing the variables to be updated.* This function does not return a response.Ejemplo:
- var newVars= {
- 'sessionId':'XXXXXXXXX'
- }
- oct8ne.updateOct8neOptions(newVars);
When this method is called, the bot goes to the root node of the main tree it has defined.This function does not accept any parameters.* This function does not return a value.
When this method is called, the current conversation is “moved” to a specific node in a tree.This function supports two optional parameters:treeId: An integer that refers to the selected tree.nodeId: The node or module to which the conversation is to be moved.* This function does not return a value.

ADDITIONAL CONSIDERATION
