Gadgets are custom HTML and JavaScript components that run within an iframe and can be embedded within various web pages. Gmail includes support for embedding gadgets within the web interface, creating content-rich data displays and extending Gmail with additional functionality.

Contextual Gadgets

Contextual gadgets are applications that are displayed at the bottom of individual email messages and are triggered by contextual clues, such as the contents of Subject lines, sender and recipient email addresses, and more. For example, Gmail already provides a YouTube contextual gadget. If the body of an email contains a link to a YouTube video, a clickable thumbnail view of the video appears at the bottom of the email.

Contextual gadgets support the gadgets.* API as well as an additional API that allows them to extract contextual clues. Contextual gadgets in Gmail provide a way to integrate functionality into the workflow at precisely the point where it is useful.