SFTP

Use a Secure File Transfer Protocol (SFTP) integration to transfer reports of customer interactions to Medallia Agent Connect, which then sends surveys, gathers feedback data, and so on.

Integration process

To implement an SFTP integration with Agent Connect:

  1. Create a report — Create a test file containing information captured for customer interactions. At minimum, the file must have the customer email, the Team Member email or ID, and the channel used for the interaction. Optionally, the file can include information such as the channel of the interaction, tags you want applied to the interaction, and the case number.

  2. Create an SSH key — Work with your IT team to create a public SHH key. A Medallia team member uses this key to generate credentials to access the Agent Connect SFTP server. The key must be an RSA key, 2048 bits or greater. For more information, see SSH key pairs.

  3. Automate file transfers — Work with your IT team to automate the process of transferring files to the Agent Connect SFTP server. The DNS name is sftp-v2.stellaconnect.net.
    Note: If your company requires PGP encryption, use the Agent Connect public PGP key to encrypt files before sending, and notify your Medallia representative that you are doing so. The public PGP key (which expires September 17, 2022) is:
    -----BEGIN PGP PUBLIC KEY BLOCK-----mQENBF9j4eQBCADBjbg092k62tkMdlMgvdvSjXNob8q/2Y8rQjqE6qDgrcYtg34OPfEDJhEAhGVU+93QBH4lgTrrz2WScn2dFf69Kw+ZcGrRbGKa+YP7o0xbqLfCKOveKkjDaGqXgGi8wr4SfCAihlBm2tQAsdZIoxpeLIOkEF/LIiR8nisTw12WIcrGGRJybftWGXbLoJZWCKrhv/GSgbfgUIIxWjZSoEpEF3LNn/8wvcWBjCNnYRj63DA1yTg867iuiDPZZ5hh/mny/+FC5VuMRZxGJmux8+lq1h04Qc21DIIOF+4hSU1yE6j959vTVmNhjquWFWeBk0R7VcmKt0vBFXyDPN47NJR5ABEBAAG0DVN0ZWxsYUNvbm5lY3SJAVQEEwEIAD4WIQRbfPqvBiSU3gCDbviPoEUMwlCh1gUCX2Ph5AIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCPoEUMwlCh1kX1B/4vJcKs4VOn1JXX8/0foh6PSquI2xuxseTKmJSLXECU0U4ycBshzszsXvbnO7eFqNJO6B1Ui+chiTmNwOeBqVt+Pcmg91cOYV5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of the integration by sending the test file you created.

  5. Schedule reports — Work with your IT team to send reports on a scheduled basis, as frequently as possible.

  6. Go live — Begin using your automated integration with Agent Connect.

Endpoint

Use this endpoint to send files via SFTP to the Agent Connect

Endpoint sftp-v2.stellaconnect.net
Port9222
IP129.80.119.205
Directory/sftp-bulk-requests-v2/userName

Where UserName is provided by your implementation specialist

Required and recommended fields

For each interaction, the following table lists the required fields and the optional fields Medallia recommends you include. Each interaction must have data for the customer email address, the channel used for the interaction, and either the user email address or the user custom ID.

FieldDescriptionRequired?
custom_id (for the customer)Unique ID of the customerNo
name (for the customer)Name of the customerNo
email (for the customer)Email address of the customerYes
do_not_sendWhen true, the survey request is not sentNo
languageThe language of the survey tNo
tagsCall center tags associated with the interactionNo
countryThe customer's country ID, used for identifying PIINo
brandThe company brand associated with the interactionNo
external_interaction_idInteraction ID used in your call center softwareNo
custom_id (for the user)Unique ID of the userYes (if email is not used)
email (for the user)Email address of the userYes (if custom_id is not used)
channelThe channel used for the interaction, email, phone, or chatYes
external_urlLink to the ticket in the company call center softwareNo

File format

With an SFTP integration, flat files are the data sources used as inputs to the Agent Connect batch sending system. Use the file format guidelines in this section to make the integration as seamless as possible.

  • All files must have a name with one of the following structures. Your <company_subdomain> in the examples below is a unique name for a data source that does not change, and can be referenced within Agent Connect to uniquely identify your company. If you need help identifying your company subdomain, contact your Medallia representative.
    • For CSV files: <company_subdomain>_yyyymmddhhmmss.csv
    • For PGP files: <company_subdomain>_yyyymmddhhmmss.csv.pgp
  • All files must be in ASCII format, and must not contain any non-readable characters.
  • You must choose a field delimiter, preferably the pipe character (|). The character you choose as a delimiter must never occur naturally in the data.
  • Values for string data field must be surrounded by opening and closing double quotation marks.
  • Boolean data fields must have either "true" or "false" as a value. The value must be surrounded by opening and closing double quotation marks.
  • Items in array data fields must be separated by commas, must not include spaces. If you need to separate words with in an item in the array, use dashes (-) or underscores (_). The entire array must be surrounded by opening and closing double quotation marks. For example: "red,green,light-blue,dark-blue"
  • For fields with no data, use opening and closing double quotes, with no space.
  • The first row of the file must be a header row that denotes field labels. This row is a delimiter record that names each field in subsequent rows, and serves as the schema for your data. The position of each field label (from left to right) must correspond to the position of the data for that field in subsequent rows. Each field label must be surrounded by opening and closing double quotation marks. The header row must be delimited by a newline character (\n). For example:
    “customer name”|”customer email”|”employee email”|”do not send”|”channel”|”external interaction id”|”external url”|”tags”\n
  • The second and all subsequent rows each contain data for a customer interaction. Each row must have the same number of fields as the header row, with each field having the same meaning in each row. Each field label must be surrounded by opening and closing double quotation marks. Each data row must be delimited by a newline character (\n). For example:
    “Simone”|”simone@example.com”|”paul@blancapeak.com”|”false”|”chat”|”49288523”|"https://blancapeak.your-source-system.com/cases/49288523"|”product-defect,return,vip"\n

The following example shows how a short file might be formatted:

"customer name"|"customer email"|"employee email"|"do not send"|"channel"|"external interaction id"|"external url"|"tags"/n
            “Simone"|"simone@example.com"|"paul@blancapeak.com"|"false"|"chat"|"49288523"|"https://blancapeak.your-source-system.com/cases/49288523"|"product-defect,return,vip",/n
            “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"/n