These instructions are intended for individuals with a basic understanding of web programming languages: HTML and CSS. If this does not apply to you, we recommend contacting your developers and providing them with these instructions. The installation will be very straightforward for them.
WHAT IS CONTEXTUAL INFORMATION?
Oct8ne allows you to collect a series of contextual data, in order to display it on the Oct8ne dashboard, in the history, in the BOT, and in the agent viewer. This is extra or additional information that a customer can transfer into the Oct8ne chat. Each customer may need different extra fields.
To do this, the following JS object must be included in the website code within the Oct8ne code.
The code provided is an EXAMPLE and should not be copied and pasted; instead, the value of the object's variables must be programmed according to the underlying web technology (depending on the source data). The ultimate goal is to have the oct8ne object available in the website's JavaScript.
- oct8ne.options = {
- context: {
- "customerId ": "MYF4058",
- "phone": "(444)818-6508102",
- "user": "TECEXP",
- "city": "Barcelona",
- "customerLevel": "PREMIUM"
- },
- user: {
- name: "Jon Doe",
- email: "jondoe@server.com"
- }
- }
The JS object oct8ne.options is an optional object that can contain the context object, which is also optional and customizable. The information represented within this object (oct8ne.options.context) is arbitrary and will be displayed within the viewer (in the ‘Customer info’ section), in the chat history details section, and can be transferred to the BOT.
The name of the variables and their value are chosen, in any case, by each customer according to their needs.
If we decide to add the user object (this is optional), it cannot be customized. Inside, the ‘name’ and ‘email’ fields are ALWAYS required. This information (oct8ne.options.user) is associated with the visitor and is used to identify the visitor in the activity grid and history grid. (It is not taken into account for the BOT).

SUMMARIZING
context: It is optional and customizable.
user: It is optional and NOT customizable. It must always contain ‘name’ and ‘email’ as mandatory fields. 'name' and 'email' will always be written in English.
Related Articles
Oct8ne API for custom CSM integration
These instructions are intended for people with a basic understanding of web development languages. If this doesn't apply to you, we recommend contacting your developers and providing them with these instructions. Integration and development will be ...
Instal Oct8ne into your website
Oct8ne can be integrated into any website in three different ways, depending on your platform and needs. 1. Via Plugin. If your website is built on one of the most common platforms, Oct8ne provides a specific “plugin/add-on” for each platform, which ...
How to create an XML feed file (in Oct8ne format)
To perform bulk product uploads to populate the Oct8ne catalog, we use feed files to supply our servers with your product data. These files have a specific format and naming convention, which we will review below. XML A file with the '.xml' extension ...
How to integrate Whastsapp into Oct8ne
In the following document, we will try to explain how we can add a phone line to WhatsApp Business API, a Facebook (professional) page, or a professional Instagram account. Each process requires certain verifications by the business owner, which will ...
Downloading statistics via API
These instructions are intended for people with a basic understanding of the web programming language: JavaScript. If this doesn't apply to you, we recommend contacting your developers and providing them with these instructions. Installation will be ...