Automatic Reciprocal Feedback

Leave automatic feedback for any customer who has left positive feedback for you.

As much as you should respond quickly to any complaints lodged against you in your feedback profile, you’ll also want to leave positive reciprocal feedback [Hack #6] for each and every positive comment you receive from buyers. As you might expect, this is also something that can be done with the eBay API.

But let’s add a little spice to the mix. Instead of leaving the same feedback comment every time, have the script choose a random comment. Start by creating a plain-text file with a handful of positive comments, one on each line:

Lightning-fast payment. Reliable buyer. Thanks for your business!
Quick to pay, friendly emails. This eBayer makes selling a pleasure!
Very fast payment, good communication. All-around excellent customer!

Save the file as prefabpraise.txt and place it in the directory specified in your config.pl file (discussed at the beginning of this chapter).

Next, take the script from “Negative Feedback Notification” [Hack #121] and replace the code between line and line with this code:

 if ($type eq "Praise") { open (INFILE,"$localdir/prefabpraise.txt"); @line = <INFILE>; close (INFILE); chomp @line; $lines = @line; $choice = int rand ($lines); system './leavefeedback.pl', ...

Get eBay Hacks, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.