Script Filter to apply on equal campaigns

Version 1

    Subject: RE: Script Filter to apply on equal campaigns
    Replied by: John Russell on 27-03-2012 01:54:06 PM
    The language is groovy.  It is very much like Java if you are familiar with that. Java syntax will work. 
    For what objects are available in the script context check out section 16.2 of the developer guide.
    http://developer.cisco.com/web/socialminer/docs

    For example scripts there is at least one on your socialminer server at
    http://socialminerhost/scripts/klout.groovy

    That probably has more than you need but its a good example of tagging social contacts.
    This document was generated from CDN thread

    Created by: Rui Martins on 27-03-2012 12:12:39 PM
    Hi,
     
    I've a customer who monitores its Facebook Fan Page. We've created 2 campaigns with the same Feed (the FB fan Page) but now we want to filter the contacts/comments by some keywords, in order to separate the relevant contacts by campaigns.
     
    The only way I see to do this is to implement Script Filters, but I need additional help on this language.
     
    Does any of you have a sample code for this type of implementation?
     
    Thx in advance,
    Rui Martins
     

    Subject: RE: Script Filter to apply on equal campaigns
    Replied by: Rui Martins on 29-03-2012 11:28:52 AM
    Hi,

    I've followed the guide and made some script tests and we are able to that now.
    Configuring a script filter and applying to a campaign, we can filter out contacts that don't match predefined keywords.

    The hint in the Developers Guide 8.5.5 is at 16.2.4:
    //Finally, return 100 so that we include the social contact in campaigns.
    return 100

    Best Regards,
    Rui Martins

    Subject: RE: Script Filter to apply on equal campaigns
    Replied by: Andrew Cleasby on 13-06-2012 02:34:00 PM
    Hi guys,

    The link to the groovy script sample is now broken (http://socialminer host/scripts/klout.groovy ), could anyone send me the file sample?

    Regards

    The link above is an example.  If you have a SocialMiner server it should be accessible at the path provided (just replace 'socialminerhost' with your SocialMiner server's host name).

    Subject: RE: Script Filter to apply on equal campaigns
    Replied by: Rodrigo Covarrubias on 13-06-2012 01:50:37 PM
    Hi guys,

    The link to the groovy script sample is now broken (http://socialminer host/scripts/klout.groovy ), could anyone send me the file sample?

    Regards

    Subject: RE: Script Filter to apply on equal campaigns
    Replied by: John Russell on 14-06-2012 10:34:21 AM
    The socialminerhost part of the url is supposed to be replaced by your installed socialminer.  For example if your SocialMiner is installed at myhost.company.com the url would be

    http://myhost.company.com/scripts/klout.groovy

    Give that a try and let us know if it works.

    Thanks

    Subject: RE: Script Filter to apply on equal campaigns
    Replied by: Rodrigo Covarrubias on 19-06-2012 03:00:05 PM
    Hi John, thanks for your support, It works.

    Regards.