Sample Business Processes for Social Media
Contents
The Genesys Social Messaging Management solution includes the following sample Business Processes:
- Business Process for Use with Facebook
- Business Process for Use with Twitter
Each Business Process is located under the bp subfolder inside the corresponding Driver.
Requirements
Interaction Workflows (Business Processes) that handle social media interactions require the following versions of Universal Routing components:
- Interaction Routing Designer (IRD) 8.1.4 or later
- Universal Routing Server 8.1.4 or later
Install the sample Business Processes
Installation is similar for both Business Processes.
General Procedure
- Use IRD to install the Business Process.
- Click Interaction Design and then Business processes in the left menu.
- Click File and select Import From File.
- Select the facebook.wie or twitter.wie file from the <eServices home>\<Digital Messaging Server>\media-channel-drivers\channel-<SocialMediaName>\bp subfolder.
- Complete the Configuration Import Wizard procedure.
- After completing the wizard, you must run an upgrade script to add the corresponding fields to your Interaction Server database. This script is described below.
- Create configuration objects in your environment.
Configuration Objects
To use the sample Business Processes, it is necessary to create configuration objects that are listed in Configuration Objects for Sample Business Processes.
Database Upgrade Scripts
As part of the installation of the sample Business Processes, the following scripts are installed in <eServices home>\<Digital Messaging Server>\media-channel-drivers\channel-<SocialMediaName>\bp\Scripts\<RDMSname>. The scripts come in pairs, one for cleaning up the existing database and one for performing upgrades. Always run the CleanUp script first.
- Stop the Interaction Server and DB Server (IXN) microservices
- Apply these scripts to Interaction Server's database (MS SQL Server, Oracle)
- Start the Interaction Server and DB Server (IXN) microservices
- Both Facebook and Twitter:
- CleanUpTableInteractionsForIWDIntegration.sql
- AlterTableInteractionsForIWDIntegration.sql
- The Alter script adds fields for sentiment, actionability, and influence to the database. Identical copies of this script are installed in the Twitter and Facebook directories; you only need to run one of them.
- Facebook:
- CleanUpTableInteractionsForFacebook.sql
- AlterTableInteractionsForFacebook.sql
This adds the following fields to the database:- facebookPostId
- facebookInQueueAtTarget
- facebookCommentId
- facebookInBufferBeforeTarget
- Twitter:
- CleanUpTableInteractionsForTwitter.sql
- AlterTableInteractionsForTwitter.sql
The Alter script adds the following fields to the Interactions table:- twitterGroupId
- twitterInBufferBeforeTarget
- twitterInBufferAfterTarget
Upgrade Procedure
- Deactivate the old Business Process strategies: In IRD, right-click Twitter or Facebook BP and select Deactivate Strategies.
- Delete an old version of Twitter or Facebook BP.
- Install Facebook or Twitter BP following the above General Procedure.
- Check queues: Stop Digital Messaging Server, then use Genesys Administrator or Configuration Manager to check or set the following options:
- Digital Messaging Server: [endpoints:*related_tenantId*] > twitter_queue or [endpoints:*related_tenantId*] > facebook_queue
- Workspace Desktop Edition: [interaction-workspace] > twitter.default-queue
- Workspace Desktop Edition: [interaction-workspace] > twitter.outbound-queue
- Workspace Desktop Edition: [interaction-workspace] > facebook.default-queue
- Workspace Desktop Edition: [interaction-workspace] > facebook.outbound-queue
Next Steps
Review the sample Business Processes