Using Interview Services
Interview Services provides options for defining and configuring external web services that can be used in the routing and sample management scripts. The default IBM SPSS Collaboration and Deployment Services service type provides advanced real-time scoring and text analytics capabilities and can greatly improve respondent interactions. Some examples of how these services can be used are:
▪Allow for a more natural and engaging use of text responses, basing survey logic on concepts and sentiment captured in open-ended questions.
▪During the survey, automatically ask follow-up questions as a result of scoring against existing attitudinal and transactional data.
▪Based on scoring results, ask the most respondent-pertinent questions. Asking the right questions, instead of all the questions, is increasingly important as survey response rates continue to fall.
▪Centralize complex routing logic in models stored in IBM SPSS Collaboration and Deployment Services (segmentation, for example).
You can also configure custom services to take further advantage of third-party web services. External services must first be configured by using the authoring application's Interview Services Options feature. For more information, see
Interview Services options.
Updating the routing or sample management scripts
After the external services are configured, the routing or sample management scripts must be updated in order to call the functions and properties that are exposed by the configured service object.
Routing script example:
IOM.Services["CaDSServer1"].ContentRepository.CopyFile("/sourceFolder/test.txt", "/target/")
Sample management script example:
Services["CaDSServer1"].ContentRepository.CopyFile("/sourceFolder/test.txt", "/target/")
Configuring service types
Use the Configure Interview Services dialog to configure service types. Different services, with different names, can be used by the IOM.Services collection in the routing script or the sample management script’s Services intrinsic.
Routing script example:
IOM.Services["CaDSServer1"].Scoring.getScore(request)
IOM.Services["SalesforceConfig1"].CreateClient()
Sample management script example:
Services["CaDSServer1"].Scoring.getScore(request)
Services["SalesforceConfig1"].CreateClient()
You can use the provided service types or define custom service types. A custom service type provides a wrapper to third-party external web services that you want to call in the routing script.
Notes
▪The Interview Services configuration settings that are defined in the UNICOM Intelligence Professional and UNICOM Intelligence Author applications can be used only for surveys that are running in those applications. When activating a survey to UNICOM Intelligence Interviewer - Server Admin, the Interview Services settings are read from the UNICOM Intelligence Interviewer - Server Admin settings (in UNICOM Intelligence Interviewer - Server Admin, Interview Services settings are accessed from the Options menu (Options > Interview Services Settings). In UNICOM Intelligence Interviewer - Server Admin, you can import the defined UNICOM Intelligence Desktop ServicesOptions.xml configuration file settings, which are on the UNICOM Intelligence Desktop client computers at:
C:\Users\[User Folder]\AppData\Roaming\IBM\SPSS\DataCollection\7\Author\Interview\ServicesOptions.xml
▪The SalesforceServices and DBConnectionServices project source code is installed with the UNICOM Intelligence Developer Documentation Library at:
▪[INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Code\InterviewServices\DBConnectionService
▪[INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Code\InterviewServices\SalesforceService
For information about building the projects, and registering the output *.dll files, see:
[INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Code\InterviewServices\Instructions.txt
See also