functional-samples/ai.gemini-on-device-calendar-mate/README.md
This sample demonstrates how to use Chrome's built-in Prompt API in an extension to extract calendar event details from natural language text. To learn more about the API, see Prompt API on developer.chrome.com.
Calendar Mate allows users to quickly create Google Calendar events from any selected text on a webpage. Simply highlight text describing an event (e.g., "Team meeting on Friday at 3pm in Conference Room A"), right-click, and select "Create Calendar Event". The extension uses Gemini Nano to intelligently extract:
The extracted details are used to pre-populate a new Google Calendar event.
npm install in the project directory.npm run build to build the extension.dist directory in Chrome as an unpacked extension.