SocialMiner Forums

« Back to Technical Discussion

Script Filter to apply on equal campaigns

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
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
 

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.

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

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 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

Hi John, thanks for your support, It works.

Regards.

Search CDN

 Go

By API/SDK: