Instiller
Integration type: Pre-defined
This guide details the processes required to integrate Apteco software with the Instiller email service provider (ESP).
Integration options¶
- FastStats—for a one-off broadcast, use a combination of the Email Broadcasting and Email Responses wizards to upload your list, schedule a broadcast campaign, and receive responses back into your FastStats system.
- PeopleStage—automate data uploads for unattended and scheduled marketing broadcasts. PeopleStage allows you to define and implement marketing process flow diagrams that react to the responses you receive from the ESP.
- Export and upload a file—access generic FTP support to allow data export and upload to third-party digital broadcast providers.
Note
Apteco approves this integration with Instiller. Use of Apteco software in combination with Instiller software through this integration will not affect the intellectual property rights indemnity provided in the Apteco software "End User Licence Agreement".
Instiller integrates with your FastStats system by utilising a RESTful transport over HTTP/S, in conjunction with SFTP.
Before you begin¶
Warning
This guide assumes you have the relevant Apteco software system administration experience, particularly with the FastStats Administrator, SQL Server, and the areas of the Apteco software that relate to creating selections and campaign creation. You need the appropriate system and SQL Server administrator permissions to install the relevant components successfully. You will also need access to the broadcaster web-based control panel and all the relevant information from Instiller.
Useful to have before you start:
- Database Connection String made up of the database server instance name and FastStats system name, for example:
;Initial Catalog=RS_;User Id=faststats_service;Password=fa5t5tat5; - The Digital Integration.zip available from apteco.com/portal/software-releases
- Decide where your FERG folders are to be created (used to store the
.xmland.batfiles used when scheduling FERG; bulk insert folder must be accessible from SQL Server) - Decide where you want the FastStats Email Response Gatherer to be installed (typically on the same server as the FERG folders, but can be on any PC)
- Virtual variables in FastStats to map to broadcast fields
- The Instiller UI URL, Username, Password, and PIN
- The Instiller List Name and Message Name (available from the Instiller UI)
- The Instiller API Username, Password, API Key, and API ID
Process summary¶
The following diagrams describe a typical process from FastStats to Instiller, to the customer, and back to FastStats.
- A broadcast is initialised through the FastStats Web Service using the Email Broadcasting Wizard, which inserts a job into the Web Service Control database (WS_DB).
- The FastStats Service picks this job up, uploads the list to the Instiller SFTP site and then uses RESTful communication to monitor the upload.
- Instiller then imports the contents of this list to its subscribers and associates them with a list name ready for use in any email campaigns.
- A campaign can then be scheduled using the Instiller web interface.
- Instiller sends messages to all recipients on the list.
- Instiller records any undelivered messages.
- Instiller records a response for each interaction with a message (for example opens and clicks).
- A scheduled job on the FastStats server initiates the FastStats Email Response Gatherer (FERG) which checks the SFTP site for response files.
- These responses are then imported into the Response database (RS_DB) ready for analysis by your FastStats system.
The key difference in this process is messages are sent from Instiller automatically, allowing full control of the campaign scheduling from within Apteco software.
Note
For the message to send automatically, you need to create a Message in Instiller.
Apteco system configuration¶
Creating the response database¶
- Open the FastStats Configurator.
- Select Database Management.
- Select the Database Creation Wizard option and click Start Wizard.
-
Enter the name of the Database Server where you wish to store the response database, then click Test Connection.
Note
The Database Server name can be found by launching SSMS and finding the SQL Instance for your FastStats system, for example
TDWIN10B\SQLExpress. -
Enter a System name (for example
Holidays) and your secure password. -
Select the Email Response check box, then click Next.
Note
The Response Database may already exist—see the Notes column. If it does, click X to exit the installer without completing this process.
-
Click Next on the Review actions step.
- Click Run Scripts, then click Finish.
Linking the response database to the FastStats service¶
- Open the FastStats Configurator.
- Click FastStats Services.
-
Select the FastStats Service for the system to link to the response database, then click Properties.
-
Select the system tab, select Email Broadcasting from the list on the left, and enter the database connection string to your response database.
-
Click Test Connection, then click OK to close the dialogue box.
- Select Save from the File menu.
Note
A restart of the FastStats service is required to pick up the changes. Click Restart in the Managed Services dialogue box.
FastStats broadcasting and responses¶
Note
You must log in as an administrator to perform the following tasks. The Email Broadcasting Wizard is required for FastStats use only.
Enable email broadcasting¶
- Open the FastStats Configurator.
- Select Web Service.
- Click OK on the Web Service Chooser dialogue box.
-
Click Client Configuration.
-
Select the Discoverer client associated with your system and click Edit.
-
On the Plugins tab, ensure the Apteco.Discoverer.Plugins.EmailBroadcasting check box is selected, then click OK.
Configuration in FastStats¶
-
Open Apteco FastStats, select the Users explorer, right-click on the Global node then navigate to Modify > Plugin Configurations.
-
Expand the Wizard node then clear the Inherit check box for Email Broadcasting (User Defined Fields), then click Edit.
-
Click Add to add a new template.
-
Enter a Name, select the appropriate Resolve Table from the drop-down, and select Instiller from the Broadcaster drop-down.
Note
Scroll to enter the Known Parameters information.
*indicates a required parameter.Field Setting API Key Your Instiller API Key API ID Your Instiller API ID Email Field Name Email Address Use Dated List true Urn Field Name Reference Number Field Map Name Your Field Map Encoding Default Note
You need to exit out of FastStats and log in again for these changes to take effect.
Adding a predefined broadcasting field set¶
As Instiller is a predefined digital integrator, you need to define a predefined output sequence which identifies the variables uploaded in your list.
Note
You must set up a message in Instiller before performing this step. See Configuring Instiller below.
- From FastStats select Tools > Administrative Functions > Setup Broadcasting Fields.
-
Click Add New Broadcasting Field.
-
Enter the Set Name to match the Template Name in Instiller.
Note
Use the Set Name to associate each new output field with a set.
-
Click Add New Broadcasting Field and complete each Update Broadcasting Field dialogue until the list of broadcasting fields is complete.
Field Description Set Name Template name in Instiller Variable Select the Variable that you wish to include in your sequence Header (Optional) Give the variable a name so that it matches the field name in your Instiller Message Output Style Select Code or Description from the Output Style drop-down Output Unclassified as Spaces Select this check-box if you wish unclassified values to appear as spaces, or if this variable is an email or SMS field Email Field Select this check-box when defining the Email field SMS Field Select this check-box when defining the SMS field Sequence ID Allows you to order your variables in the set -
At least one of the fields must be an Email Address.
Note
You can create multiple templates and sets and then reference these separately from your email broadcasts.
Checking your configuration¶
To use the Email Broadcasting Wizard, select the Email Broadcasting icon from the Output Wizards section on the Wizards panel. This sends a test email.
- Select the Upload Template; if you have multiple upload sequences configured, select the template from the drop-down list and click Next.
-
Drag a selection from FastStats with the contact(s) that you wish to send a test message to.
Note
Email Broadcasting Details Form: 1. Enter the Username. 2. Enter the Password. 3. Click the Message retrieve button. 4. After a short while you should be able to use the drop-down list to see the available messages from Instiller. If you do not see a list, do not proceed—something is wrong in a previous configuration.
-
Complete the Email Broadcasting Details form, then click Finish.
Field Description List Name drop-down Click on the List Name retrieve button and select a list from the drop-down (for Instiller, the List is defined by the Message) Message Name Click on the Message Name retrieve button and select one from the drop-down, or leave blank if you only want to upload your list A copy of the list is saved to the directory below Browse to the location where you wish to save a copy of the list Email Address Enter an Email Address—FastStats uses this to notify you once the list has been processed -
If you entered a message name, a Broadcast Warning message displays. Click Yes to commit this action.
- Once the list has been uploaded (and if applicable the message delivery has been scheduled), the wizard will complete. Click Finish to close the wizard.
Email responses¶
Installing the email response gatherer¶
- Download the FastStats Email Response Gatherer installer from the DigitalIntegration.zip, available here: apteco.com/portal/software-releases. Extract the zip file to your designated server.
- Open the EmailResponseGatherer64Setup.msi from the
DigitalIntegration\EmailResponseGathererfolder. - Click Next, accept the terms, and select an installation directory (default:
C:\Program Files\Apteco\FastStats Email Response Gatherer x64). - Click Install, then Finish.
Creating the response gatherer folders¶
Create folders to store the files used with the Response Gatherer.
| Type of file | Description |
|---|---|
| Batch (.bat) | Contains the information for Task Scheduler or command-line programs to run the Response Gatherer on a schedule |
| XML (.xml) | Contains the connection and communication parameters used to connect to the broadcaster |
| Text files (.txt) | The Response Gatherer generates two log files each time it runs: an Event log and a Details log |
Warning
The bulk insert directory must be accessible from the SQL server, and the user running the SQL Server Service must have read permissions to it.
Creating the configuration file¶
Note
You can use the Response Gatherer with multiple integrations by using an XML and matching batch file for each integration.
- Browse to the directory where you installed the Email Response Gatherer and open EmailResponseConfig.exe. Enter your Connection String and click Test.
- Select Instiller from the Broadcaster drop-down list.
- Enter the Username and Password to use with the Instiller API.
- Use Add to add all the required parameters for the Broadcaster.
- Use the File menu to save the XML file to the batch and XML file folder.
Note
Instiller is a Predefined Broadcaster; the only required parameter is FTPURL. You can use the other fields if you need to customise the collection.
Email Response Database Configuration Parameters
| Parameter | Description |
|---|---|
| Connection String | The connection string to the response database for your system |
| Timeout (secs) | The timeout for the connection and query steps; default is 1200 seconds |
| Bulk insert folder | The location to store results for optimised processing of large campaign volumes |
| PeopleStage Connection String | Used for certain broadcasters; not applicable with Instiller |
Scheduling the response gatherer¶
Set FERG to run on a scheduled basis by providing it with the broadcaster's communication details (in a .xml configuration file) and the location for log files.
Creating the batch files: Create or modify the batch file using Notepad++ or a similar text editor, and save to the batch and XML file directory.
Using Task Scheduler:
- Open Windows Task Scheduler.
- Select Create Basic Task and give it a Name and Description, then click Next.
- Select the Trigger interval and enter the Start Date and Time, then click Next.
- Select Start a program, then click Next.
- Click Browse and navigate to the folder containing your batch files. Select the file and click Open.
- Optionally, provide the name of the XML configuration file in the Add arguments box, then click Next.
- Check the Summary, then click Finish.
Email responses wizard¶
- Open the Email Responses wizard.
- Enter the name of the message that you used in the Email Broadcasting wizard, then click Next.
- As the Email Response Gatherer starts collecting information from Instiller, you will see how customers are interacting with your broadcast. Check Create a virtual variable from this information if required, then click Next.
- Drag the Email variable that you used in the Email Broadcasting wizard onto the drop box, then click Next.
- Locate the folder where you wish to store the virtual variable, then click Next, enter any notes, then click Next.
- Enter a Description for the virtual variable or drag an existing virtual variable onto the drop box if you wish to overwrite it. Modify the Security Attributes if applicable, then click Next.
- Click OK, then click Finish.
PeopleStage broadcasting and responses¶
Defining the broadcast channel in PeopleStage¶
- Open PeopleStage, select File > Administration > Channel Editor.
-
Click Add Email Channel through the context menu.
-
Enter a name in Channel Name.
Note
(Optional) Select Yes from Allow In Transactional Output if you need to send multiple emails to the same email address.
Field Description Broadcaster Select Instiller from the drop-down Username Enter your API username Password Enter your API password Variable Name Select Email Address from the drop-down Variable Description Override Enter the description, for example "Email Address". This must correspond to the email field within Instiller Upload but don't broadcast (Optional)—select to upload the list only without initiating a broadcast Append to List Deselected Reply Email Address The email address that will receive notifications when the channel is used (not the reply email address for the email send) Number of Retries Recommended (for Broadcast Channels) to leave this at 0 Response File Key Type Should be set to Communication Key for Instiller Message Content Type Always Broadcaster Template Note
The Encoding is set to UTF8 in the code.
Field Description API Key Your Instiller API Key API ID Your Instiller API ID Field Map Name Your Instiller Field Map Name Use Dated List True Urn Field Name Your Instiller Urn Field Name Email Field Name Your Instiller Email Field Name Encoding UTF8 See API parameters for all the available parameters.
-
Add any additional variables on the Additional Variables tab.
Tip
You can map actual variables from your FastStats System or use an empty Virtual Variable (VV) text field created in FastStats to map to the Instiller fields.
-
Click Save & Close.
Broadcasting in PeopleStage¶
- Drag your new Instiller channel from the Library to your Delivery step.
- Select from the available messages in Instiller from the Message Name drop-down, or use PeopleStage's functionality to dynamically select a message.
- Deselect the As above check-box to use the same List Name as the Message Name.
Selecting the Requires Manual Approval check box gives the option to view a sample list before processing.
Configuring Instiller¶
If you wish to automatically broadcast the list to a message either from the Email Broadcast wizard or PeopleStage, you need to create a message within Instiller using Instiller Templates.
Note
This section is not intended as a full manual on setting up your messages in Instiller. Refer to the Instiller help or contact Instiller for more information.
The following items are required in Instiller:
- Field Maps—create a new Field Map to select the columns required for the uploads from Apteco. Enter the Name, API Identifier, First Row Headings, and Field Delimiter. Add the required CSV Columns from User Profile and Custom Fields.
- Templates—create a Template to associate with the list uploaded from Apteco.
Create new template¶
- Select New Template.
- Enter the Subject Line, Description, API Identifier, and Email Profile.
- Under Content, for HTML Source Edit Content, create the email including any columns from the Fields Map.
- Save your Template.
API parameters¶
Email response gatherer parameters¶
| Parameter | Response table field | Instiller extract file column |
|---|---|---|
| MESSAGEPERIOD | Time period since message sent for responses to be pulled back, e.g. 1D or 2W |
|
| COMMUNICATIONKEYCOLUMNNAME | CommunicationKey | FastStats Communication Key |
| ConstantFields | Pipe-delimited field of key value constants, separated by #, e.g. Key1#Value1\|Key2#Value2 |
|
| ADDITIONALFIELDS | Any additional fields | |
| CLICKDATECOLUMNNAME | ClickDate | Date the link was clicked |
| CLICKURLCOLUMNNAME | ClickUrl | The name of the URL that was clicked |
| DATEFORMAT | Date format used, e.g. dd.MM.yyyy HH:mm |
|
| DELIVERYDATECOLUMNNAME | DeliveryDate | Delivery date |
| EMAILCOLUMNNAME | Email address | |
| EXECUTIONBUFFER | Adds a buffer in minutes to the start of the response window | |
| EXPORTTYPES | Pipe-delimited response types to collect. Default: delivered\|hard\|soft\|returned\|open\|output\|complaints\|clicks_info |
|
| LOCALTIMEZONE | Time zone to store dates in | |
| MESSAGEENDDATE | Message end date. Format: yyyy-mm-dd |
|
| MESSAGESTARTDATE | Message start date. Format: yyyy-mm-dd |
|
| ONLYPROCESSRECORDSWITHBROADCASTID | false | If true, only downloads responses to messages that originated from FastStats |
| TYPECOLUMNNAME | MessageType | Response type |
| URNCOLUMNNAME | URN | FastStats Urn |
Email broadcasting parameters¶
| Parameter | Default | Description |
|---|---|---|
| Admin From Email | The from email address that administrative emails are sent from | |
| DatedListFormat | yyyyMMdd-HHmmss |
The date format string for the date and time stamp |
| Field Map Name | Name of the Field Map in Instiller | |
| Email Field Name | Name of the Email Field in Instiller | |
| Encoding | UTF8 | Enter the encoding of the incoming file |
| File Mapping | A pipe-delimited list of header values that will overwrite any defined in your output sequences | |
| UseDatedList | True | Setting to false removes the date and time stamp from the end of the file name |
| Urn Field Name | Name of Urn Field in Instiller | |
| Target Automations | Target automations rather than individual templates |
Example batch file¶
@echo off
REM *** File Name: Instiller.bat ***
D:
cd D:\FastStats\FERG
cls
SET FERG="%ProgramFiles%\Apteco\FastStats Email Response Gatherer x64\EmailResponseGatherer64.exe"
SET LOGFILE="Logs\Instiller.txt"
SET LOGFILEDETAILS="Logs\Instiller_Details.txt"
echo. >> %LOGFILE%
echo. >> %LOGFILEDETAILS%
echo %date% %time% - Starting FastStats Instiller Response Download >> %LOGFILE%
echo %date% %time% - Starting FastStats Instiller Response Download >> %LOGFILEDETAILS%
%FERG% Instiller.xml >> %LOGFILEDETAILS%
IF ERRORLEVEL 9003 goto FailedException
IF ERRORLEVEL 9001 goto FailedDownload
IF ERRORLEVEL 9000 goto FailedLogin
:OK
echo %date% %time% - FastStats Gathered Instiller Responses OK >> %LOGFILE%
goto Complete
:FailedLogin
echo %date% %time% - FastStats Gatherer Failed - Login Failed to Instiller >> %LOGFILE%
goto Complete
:FailedDownload
echo %date% %time% - FastStats Gatherer Failed - Downloading from Instiller >> %LOGFILE%
goto Complete
:FailedException
echo %date% %time% - FastStats Gatherer Failed - Instiller API Exception >> %LOGFILE%
goto Complete
:Complete
echo %date% %time% - Completed FastStats Instiller Response Download >> %LOGFILE%
Troubleshooting¶
Error received when running FERG using a batch file
Error: Could not read email response configuration file: Could not find file D:\FastStats\FERG\Instiller.xml
Instiller.xml refers to the filename referenced in the batch file at %FERG% Instiller.xml. The location is set by cd D:\FastStats\FERG in the batch file.
Solution: Ensure the file exists at that path or change the filename in the batch file to match.



















