Although we don't offer this function as part of the LiveAgent application, an example script capable of importing contacts from csv file to LiveAgent via API v3 is attached below this article.
Your csv file must contain column headers on the first line. You then use those column names in keys of variable COLUMNS.
Configure the script in the first section
/***************** CONFIGURATION START *****************/ // agent panel -> settings -> system -> API const APIKEY = 'test'; // e.g. https://test.ladesk.com/api/v3 const API_URL = 'https://127.0.0.1/LiveAgent/api/v3'; // e.g. ./data.csv const FILE_PATH = './contacts.csv'; // Col1;Col2;Col3; const DELIMITER = ';'; // csv column name => api column name // columns which is not mentioned will be ignored // HACK_1: 'csv_column' => 'name' // it will devide name into firstname and lastname // 'aaa bbb ccc' will be firstname => 'aaa', lastname => 'bbb ccc' // HACK_2: 'csv_column' => 'company_name' // it will try to add contact into company if company already exists // if company doesn't exist, it will create that company const COLUMNS = array( 'Company fullname' => 'company_name', 'User name' => 'firstname', 'User Phone' => 'phones', 'User E-mail' => 'emails', ); /***************** CONFIGURATION END *******************/
and execute it on command line.