What are platform integrations?
This feature allows institutions to connect their Mainstay data to a third-party platform, such as an external SFTP server. This enables a 2-way sync of contact record data, including default fields (name, phone, email, etc.) and custom fields created by the partner. To learn more, visit Platform Integrations.
The Conversations Export is an optional 1-way data sync to export Mainstay Conversations messages to Slate or another SFTP-powered platform.
Add an integration instance
- From the Browse Available page, click Learn More for the individual platform.
- In the Available Integrations section, look for the option that includes Mainstay Conversations.
- Click the green Add New button to view a configuration modal for a new integration instance.
- Alternately, in the Configured section below, click the pencil icon on an existing integration instance to adjust its configuration.
Mainstay Conversations > [external platform] v2
- Your external platform may require specifying the incoming columns in a Field Mapping. The columns are as follows:
- crm_id: the unique identifier of the contact in the external platform
- mainstay_id: the unique identifier of the contact in Mainstay
- first_name: the first name of the contact on Mainstay
- last_name: the last name of the contact on Mainstay
- channel: the communication channel of the conversation (one of: "web" for web-chat, "twilio" for SMS, or "facebook" for Facebook Messenger)
- campaign_id: the unique identifier of the Mainstay campaign that this message was part of, if applicable
- campaign_name: the human-readable display name of the Mainstay campaign that this message was part of, if applicable
- timestamp: the date and time that the message was recorded on Mainstay (defaults to UTC)
- incoming: the body of the message, if it was incoming (ie, generated by the contact)
- outgoing: the body of the message, if it was outgoing (ie, generated from a campaign, a Knowledge Base answer, or a platform user via live chat)
- outgoing source: "AI" or "Live Chat" or "Campaign Script" or "Other", or blank if the message is incoming
- media: a list of URLs to image attachments, if any
- Your external platform may also require you to specify Allowed IP Address(es). All data exports for this integration should come from 3.101.8.12 and/or 52.8.18.64.
- On Mainstay, click Add New.
-
Within the Configuration Wizard, on the Instance Details screen, create a display name and description for this instance. This is what will appear in the list; these values are only used for internal display purposes.
- On the FTP Client Authentication screen, create a new authentication.
- Authentication name is for display purposes only.
- Make sure SFTP is selected (not FTP).
- Host can be found in your external SFTP server configurations.
- Username can be found in external SFTP server configurations.
- Password can be found in external SFTP server configurations.
- Private Key can generally be left blank.
- Passphrase can generally be left blank.
- Port can generally use the default value of 22.
- Cipher can generally use the default value of Default.
- Finally, Save your authentication.
- On the Data Configuration screen, customize your export:
- The checkboxes for SMS, Web, and Facebook Messenger allow you to filter (by channel) which conversations you export.
- The checkboxes for Campaigns and bot Q&A and Live Chat allow you to filter (by message type) which conversations you export. You can also choose whether to receive Incoming and/or Outgoing messages.
- The Offset Timestamps? allows you to adjust the message timestamps for your timezone. Note that the default (0) is UTC. (ex: For EST, enter -5.)
- The Historical Backfill Start allows you to set the starting date/time for this integration, while the Backfill + Polling End allows you to set the last date/time for which you want to receive messages.
- The checkboxes for SMS, Web, and Facebook Messenger allow you to filter (by channel) which conversations you export.
- On the CSV File screen, configure the file itself:
- Enter a Destination Path on your SFTP server, or use the default value, /.
- Enter a File name or use the default value, Mainstay_Conversations.csv.
- On the Schedule screen, select one or more time slots for this recurring contact export by checking or unchecking the boxes. Note that all times are listed in Eastern Standard Time.
- Click Finish.
- Note that the first time this runs, it may take several hours, as the system exports a historical record of all your Conversation messages, up to the present moment. All subsequent runs will only include new messages since the last run, so they will be significantly faster.
Enable/Disable or Delete an integration instance
- On the screen listing all instances for a specific platform, click the toggle to switch between enabled (to the right, with green showing) and disabled (to the left, with gray showing).
- Alternately, click the trashcan icon to remove this instance and configuration altogether.
Tips for partners using Slate
If the recipient of these Conversation Exports is the Slate platform, here are some helpful tips:
- Ensure that you are already saving the AdmitHub/Mainstay ID for the Contact records. See Mainstay Sync for Slate for the bidirectional contact sync.
- Map the Conversation imports to the Interactions record type. Make sure to match the admithub_id column to the same field AdmitHub/Mainstay ID field you're using for contact records.
- For the Import Configuration, specify the Import Automation's Path/Mask. Ensure this matches the path entered on the Mainstay configuration above.
- Note: This field already assumes the path starts with /incoming, so you should not enter that here or else it will incorrectly apply to /incoming/incoming/desired_path_to_file/file_name.csv
- In the General tab, match the following configuration:
Comments
0 comments
Please sign in to leave a comment.