Here is an example of an embedded bot,
http://botlibre.blogspot.ca/p/talk-with-brain-bot.html
Yes, for the search option the search query is a Twitter search query, this includes OR, etc.
See, https://dev.twitter.com/docs/using-search for what Twitter search supports.