All Collections
Integrations & API
SFTP
SFTP: Requests Configuration
SFTP: Requests Configuration
Updated over a week ago

Before You Begin

This document is a reference for the configuration of flat file data sources that are used as input the Connect batch sending system. The information provided here will assist in providing a standardized structure for flat-file inputs to conversions.

As the batch file is highly flexible, this document should be used only as a guide, specific unique requirements should be handled as necessary

Sending Protocol Specifications

We require a Public SSH key from our clients for authentication to the SFTP server. Please provide to your Agent Connect implementation manager, and we will then confirm completion.

  • SSH Key Type: RSA key 2048 bits or higher

  • DNS name: sftp-v2.stellaconnect.net/

Optional: If PGP is Required

If PGP is required, our Agent Connect Public PGP key allows the client to encrypt the files before sending is as follows (please notify your account manager when doing do):

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBGLsC64BCADkyxSJ10mg/v+bTT9NDP1wEBDU2O9G72M8NGPWt53zt439xXdg
KiFfiIeqyywl+ISPNFKavezowHJTUg7SgJQlUoqqeLUV92Pojf9RSffkKjTDnGkt
D3l9P5cnKcLUMTs1bTH7otEbEGJmzqmES0CTAuCo66xTNGtq371L6+SA6N5BjzFF
JLq52JwtU8jRwFtxcpRvrEudxVS5eGhlbp5dfMUGgwGdYkxEfJX5XTRPcx6gYWxF
oX4/Y4QSKjBPb0VGhfyoy7xh0fCqf2NKcoM6t5nNiymzL8FxtN1pgArdo5Rlnl3R
1AToWJmLGDm/fozQgK99UL0TpT8No1lPIzvVABEBAAG0LlN0ZWxsYUNvbm5lY3RQ
R1AtVjMgPHNnb29kc3RlaW5AbWVkZGFsbGlhLmNvbT6JAVEEEwEIADsWIQRErDFL
Tz13+fMWBDasclrUdGoGKAUCYuwLrgIbAwULCQgHAgIiAgYVCgkICwIEFgIDAQIe
BwIXgAAKCRCsclrUdGoGKPaiB/9tUsnkkRr7SR1ZOH8L5yndO8HlH3gLX2XJqXxq
CxD6NLoJMjSLUXyLO5tmWeqxokNk90Xjls9Atf/UdQn5XTkSYzIQNWrzH3F+VVRD
ztRpk99VXM5ujl51jnw2VjRc+9yIIIv+KAsF1HI7Koes30yyJMOiK3v+/z8bNt3n
XHZN6fk/1OMfOU1V2iBjDYon5fZch1+ShYbS7kzXku/bAy2bx7SjjUGDqCMrZtJN
OwVIlH3OacP5ti8HsnHBYfhtOzVViGCnG0YRrffFMJEScCR1IhUwiq4rDTYqJl/7
gaXpher47a6uJtenRxntea799afAishYRyXtm2AnOgHHITAluQENBGLsC64BCACu
ovrSMy5ay5E+WKHEsDhBVTJHuRYhWBIcurqpPB++UbOvde1xWc8VS9oNOOHv+2eu
bXumEUx1ymvV56LdI8GrVxzvurt8lTUUbjgYejGzweZdhdM/WWSapS/2XFFkxB9L
f2D2uJCZ43HnVn/H60uSfVkeozFgmQ43ysgSkGDv85nduE59Cv8PL+T4/ijGHXMb
26zKGd8BKB2Bi7qiPllxTKYnxxBcUh/YI7BlTF4R7c0S0iaLmexfsuInf99iKuc4
G3fTwjscQRJltrGUw1b2Xk8mwKU6Ol5icHwiaOAte4AMVPo87TYuLVgFeAWo5y/q
9PPi4Don9mmcC0UcuKP/ABEBAAGJATYEGAEIACAWIQRErDFLTz13+fMWBDasclrU
dGoGKAUCYuwLrgIbDAAKCRCsclrUdGoGKGArB/9YHqwq98znDQdNfwWJxMsqX0GM
qfKJeY+q5rUzfMMS+0LwBlEAh3nzvHdyIAppobYVr4gVQX3tSeC2yilj6bID3P53
wabmG3H1d4J9wZfjunAsWKaCMTH552ETyHvG19GScq4ES9tDp+9btPXWo3JQQL0B
oleliggTDIrw1et+2Wx/zjfURqpjaInd+2DOVh/vpIXoTN+2u+Uz0cDnaFthBH/+
0/U9RWUgiuTGPH8B4Hm5RwKFLw9AiIqcFUV6KufsffnZSy9vtmDOrVlGCsgYPUvO
cCDp5tuHqwXbb+ZJRBM7rXbLWmNZyQ2bRnSgYJaxLBKVgqFa9hkZNoxHxybu
=vtvB
-----END PGP PUBLIC KEY BLOCK-----

File Naming Conventions

All files delivered should have a name with one of the following structures.

  • CSV files
    <company_subdomain>_yyyymmddhhmmss.csv

  • PGP files
    <company_subdomain>_yyyymmddhhmmss.csv.gpg


Your "<company_subdomain>" is a unique name for a data source that will not change and can be referenced within the Connect application to uniquely identify the company the batch file is used, if you need help please contact your client services manager.

Character Codes

All files should be in ASCII format. Files should not contain any non-readable characters.

Batch File - Field Delimiter

A field delimiter must be chosen. The preferred delimiter is the “|” (‘pipe’) character.

However, to use the “|” as a delimiter, it must be guaranteed that “|” will never occur naturally in any of the data in the file. If this is not possible, another delimiter must be chosen which satisfies this constraint. Once chosen, this character will be known as the ‘field delimiter’.

Batch File - String Data Type

The string data type should be wrapped in opening and closing quotation marks (“”).


An example of a string data type:

“this is a string”

Batch File - Boolean Data Type

The boolean data type only has valid values of: "true" or "false"'.
They should be wrapped in opening and closing quotation marks (“”).

An example of a boolean data type:

“true”

Batch File - Array Data Type

The array data type is a collection of string data types that are separated by a comma (‘,’).

They should be wrapped in opening and closing quotation marks (“”).

They should not contain spaces, leading, trailing, or in between words.
To separate words, dashes (-) or underscores (_) can be used.

An example of an array data type:

"product-defect,return,vip"

Batch File - Header Row

The first row of the file should be a header row that denotes field labels. This is a delimiter record that names each field in the Data section. This is the ‘schema’ for the data.

The position (left to right order) of each field label must correspond to the position of the data for that field in the Data section. The field labels are delimited by the chosen field delimiter.

Field labels should be wrapped in opening and closing quotation marks (“”).

The Header row must be delimited by a newline character (‘\n’).

An example of a header row:

“customer name”|”customer email”|”employee email”|”do not send”|”channel”|”external interaction id”|”external url”|”tags”

Batch File - Data Row

The second and all subsequent rows are the data section. Each row must be homogenous, containing the same number of fields in each row, each field having the same meaning in each row and matching the field labels in the header row. Each field is delimited by the chosen field delimiter.

Field labels should be wrapped in opening and closing quotation marks (“”).

Each Data row must be delimited by a newline character (‘\n’).

An example of a data row:

“Simone”|”simone@example.com”|”paul@blancapeak.com”|”false”|”chat”|”49288523”|"https://blancapeak.your-source-system.com/cases/49288523"|”product-defect,return,vip"

Batch File - Suggested Rows

The following fields and rows are suggested in the flat file.

Fields in bold are required for our system to successfully process a valid request.

customer- custom_id- name- emaildo_not_sendlanguagetagscountrybrandexternal_interaction_idEmployee (Only one of either custom_id or email)- custom_id- emailchannelexternal_url


Batch File - Sample CSV File

Filename: blancapeak_20180828.csv

Decided field delimiter: “|”

CSV content:

"customer name"|"customer email"|"employee email"|"do not send"|"channel"|"external interaction id"|"external url"|"tags"“Simone"|"simone@example.com"|"paul@blancapeak.com"|"false"|"chat"|"49288523"|"https://blancapeak.your-source-system.com/cases/49288523"|"product-defect,return,vip"“John"|"john@example.com"|"paul@blancapeak.com"|"false"|"chat"|""|""|"return"“Jane"|"jane@example.com"|"paul@blancapeak.com"|"false"|"chat"|"112233"|"https://blancapeak.your-source-system.com/cases/112233"|"return,vip"

Uploading and Next Steps

We always advise uploading one sample file first after following all of the above recommendations before going-live. This allows us to map the .csv headers to the relevant data points in Agent Connect to confirm surveys will be processed correctly. We will then re-process the file on our end and then work with you on a go-live date/time.

Did this answer your question?