2010/6/12 Raphaël Pinson <raph...@gmail.com>:
> Hi there,
>
> I'm wondering if there is a way to control the "helpers" via the robot or
> gadget API. By "helper", I mean the little bulbs that appear when you type a
> YouTube link or use regexHook in an installer in the dev preview.
> If not, I think it would be a great addition. Here is my use case:
> I have a bot that recognizes text with a regex and puts a link on it. Now it
> can also replace that text with a corresponding quote. Currently, I have
> users type 'quote' or 'q' before the matched reference in order to have it
> quoted instead of just linked, but ideally I would get rid of all kinds of
> markup and would like to use a kind of "helper", ala YouTube link.
> Here is an example.
> Currently, when a user types "jn 3:16" in a wave, the Flammard bot will put
> a link to a Bible website where the user can read the John 3:16 verse.
> If the user wants to get the quote in the wave, he will type "quote jn 3:16"
> instead.
> What I would like to get to is this:
>    * The user types "jn 3:16"
>    * The bot puts a link on it and adds an "helper" (or a gadget, although
> that seems complicated)
>    * The user can click the "helper" and choose the "quote this verse"
> option, which will add the verse to the wave (either using the helper, or
> the bot).
> In short, I think it would be great to have this kind of programmatic
> helpers, that would be created with:
>   * a list of options users can choose from
>   * callbacks on these options, acting on the wave or exporting a shared
> state like gadgets.
> One could argue that gadgets can already do that, but they don't behave like
> "helpers" (YouTube linker, regexHook), which only show for the users that
> are editing the blip, and disappear immediately afterwards.

Right, you can do that today by creating a robot that monitors
that regex and then inserts an inline gadget at that location, it does
have the downside that you mention.

   Thanks,
   -joe

--
Joe Gregorio
Developer Relations, Google Wave


>
> Any hint?
>
> Regards,
>
> Raphaël
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to google-wave-...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-wave-api+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to