I played with this a bit using Eggdrop + Tcl. The simplest way is to trigger on !ask, grab the text, then call the API using exec curl or http::geturl from Tcl. When the response comes back, just parse the JSON and send it with putserv "PRIVMSG $nick :$reply" so it stays private. Keep answ...