Need help with java (google wave robot)

I have been using tutorials from the GAEJ experiments online book, Episode 7, 11, and 12 Basically I have created a Google wave robot that responds to blips when a keyword is mentioned – user types word, submits blip, phrase is returned. What I want to do is put the keywords with accompanying paragraphs (phrases) on my website and have my Google wave robot search for these words and display the phrases relate to them when the keywords are used. Maybe using a custom search engine web service would be easiest? How would I connect code my robot to search for the keywords and how to connect it to web service or whatever process is being used