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
Bot Instruction Manual for Web and Messaging
TABLE OF CONTENTS 1. OVERVIEW 1.1. Flow Designer 2. WEB BOT: GETTING STARTED 2.1. Create a conversation 2.2. Specific tools in the conversation designer 2.3. Turning the Bot on and off 3. BOT MESSAGING: GETTING STARTED 3.1. Create a conversation 3.2. ...
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 ...
Oct8ne API for custom CSM integration
Oct8ne API documentation API version 2.4 Contents 1. Introduction 2. Architecture 3. Overview 3.1. Downloading and installing plug-ins and extensions 3.2. Registering as a developer and enabling the platform 3.3. Inserting the oct8ne widget 3.4. ...
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 ...
How to configure the tracking URL of orders in Prestashop
The Oct8ne plugin for Prestashop (since version 1.0.28) has the ability to access customer order data. The integration of Oct8ne with prestashop orders allows to know the order number or order id, the products that have been bought in that order, ...