Smart Connectors are powerful tools that allow the creation of predefined projects as soon as a file is uploaded to the folder or sent in a message to the e-mail address specified in the Smart Connector configuration. They work similarly to periodic jobs and are designed to save the project manager's time when a client orders multiple translation projects of the same type.
This guide shows you how to create and configure a Smart Connector. Depending on your knowledge of JavaScript, you can either configure the basic Smart Connector, which does not require any knowledge of JavaScript, or you can prepare an advanced Smart Connector, which requires at least basic knowledge of JavaScript but offers a lot more options.
Prepare Folders for Smart Connectors
Before following this guide, make sure that a special folder in a file-sharing service or in your e-mail service is already prepared and can be mapped for the Smart Connector to scan.
Create a Smart Connector
Go to the Configuration menu > Integrations > Smart Connectors.
Click the Add Smart Connector button in the top right-hand corner. You will be directed to the Add Smart Connector page.
Select the Project or Quote radio button according to your needs.
Provide a Name for the new Smart Connector. Note: The Smart Connector’s name is not related to the name of the project or quote created using this Smart Connector. The project or quote name can be specified in the Robot Code field.
Check the Active box to enable this Smart Connector.
Select a Client for whom the quotes or projects will be created in the search-as-you-type field. Note: The Smart Connector selects the default contact person specified in the client's price list. If there is no default contact person, the first contact person from the client's price list is selected.
(Optional) Select a Budget Code for this client.
Select the Client's Price Profile. If the client has only one price profile, it will be selected automatically.
In the Files Aggregation section, select how to process files from the mapped folder:
Process every top level file separately option creates separate projects or quotes for each file from the mapped folder.
Process files in batches option creates one project or quote for all files from the mapped folder.
In the Scan for Input Files section, select the Files location and provide the path to a folder that will be mapped and scanned for files. The folder can be either located on your local machine, on the FTP or SFTP server, or on an e-mail server. Provide the necessary information in the fields that appears after you specify the file location.
In the After Successfully Processing, Store Files in and In Case of Errors, Store Files in sections, decide whether you want to store the files from the mapped folder in an XTRF directory or on FTP or SFTP servers. Provide the necessary path or server details according to your selection.
In the Person Responsible section, select the Home Portal user that will be responsible for this Smart Connector.
In the Connector Definition section, decide, whether you want to to configure a basic Smart Connector or an advanced one.
For a basic Smart Connector: select the source and target languages, service, and specialization that will be applied to all projects or quotes created by this Smart Connector.
For an advanced Smart Connector:
Select the Robot Code radio button.
Change the settings according to your needs. You can find the list of available parameters by clicking the Available Parameters link on the left or in the /wiki/spaces/OK/pages/3472954237,
The advanced parameters added to the robot code in this example are:
name: specifies the name of the project,
sourceLanguage: specifies the source language
targetLanguages: specifies the target language
service: specifies the type of workflow in the project
specialization: specifies the specialization of the project
categories: specifies the category of the project
notes: adds the message "Important notes" to the Notes section in the project’s Instructions tab
startDate: specifies the start date of the project
deadline: specifies the deadline of the project
Click the Save button.
Go to the Schedule tab. Here you can configure how often the Smart Connector should check for new files in the e-mail folder.
Click the Save button.
Go to the E-mail Notifications tab. Here you can select when the person responsible for the Smart Connector (see step 12 above) and the client should receive notifications concerning the projects and quotes created by this Smart Connector.
Click the Save button.
After creating a project or quote, the Smart Connector will delete files from the mapped folder to avoid creating another project or quote with the same files.