Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
SocialMiner Developer Center
Overview
Documentation
Community
Wiki
Blogs
SocialMiner 9.0(1)
David Lender
20 Jun 2012
SocialMiner 8.5(5)
David Lender
31 Jan 2012
SocialMiner 8.5(4)
David Lender
29 Sep 2011
SocialMiner 8.5(3)
David Lender
23 Aug 2011
SocialMiner 8.5(2)
David Lender
09 Jun 2011
Showing 1 - 5 of 8 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
of 2
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Technical Discussion
Script Filter to apply on equal campaigns
Threads [
Previous
|
Next
]
Script Filter to apply on equal campaigns
Rui Martins
3/27/12 5:12 PM
RE: Script Filter to apply on equal campaigns
John Russell
3/27/12 6:54 PM
RE: Script Filter to apply on equal campaigns
Rui Martins
3/29/12 4:29 PM
RE: Script Filter to apply on equal campaigns
Rodrigo Covarrubias
6/13/12 6:50 PM
RE: Script Filter to apply on equal campaigns
John Russell
6/14/12 3:34 PM
RE: Script Filter to apply on equal campaigns
Rodrigo Covarrubias
6/19/12 8:00 PM
Rui Martins
Posts:
3
Join Date:
10/20/09
Recent Posts
Script Filter to apply on equal campaigns
script
filter
Answer
3/27/12 5:12 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
John Russell
Posts:
30
Join Date:
5/18/10
Recent Posts
RE: Script Filter to apply on equal campaigns
Answer
3/27/12 6:54 PM as a reply to Rui Martins.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Rui Martins
Posts:
3
Join Date:
10/20/09
Recent Posts
RE: Script Filter to apply on equal campaigns
Answer
3/29/12 4:29 PM as a reply to John Russell.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Rodrigo Covarrubias
Posts:
4
Join Date:
1/1/09
Recent Posts
RE: Script Filter to apply on equal campaigns
Answer
6/13/12 6:50 PM as a reply to Rui Martins.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
John Russell
Posts:
30
Join Date:
5/18/10
Recent Posts
RE: Script Filter to apply on equal campaigns
Answer
6/14/12 3:34 PM as a reply to Rodrigo Covarrubias.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
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
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Rodrigo Covarrubias
Posts:
4
Join Date:
1/1/09
Recent Posts
RE: Script Filter to apply on equal campaigns
Answer
6/19/12 8:00 PM as a reply to John Russell.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi John, thanks for your support, It works.
Regards.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available