This demo showcases how to use the Nylas Notetaker API in conjunction with calendar and event APIs to create and manage notes associated with calendar events.
- Creating notes linked to calendar events
- Retrieving notes associated with events
- Managing event-related notes
- Syncing notes with event updates
- Using note metadata for event organization
- Python 3.8+
- Nylas Python SDK (local version from this repository)
- Nylas API credentials (Client ID and Client Secret)
- Install the SDK in development mode:
# From the root of the nylas-python repository
pip install -e .- Set up your environment variables:
export NYLAS_API_KEY='your_api_key'
export NYLAS_API_URI='https://api.nylas.com' # Optional, defaults to https://api.nylas.comFrom the root of the repository:
python examples/notetaker_calendar_demo/notetaker_calendar_demo.pyThe demo includes examples of:
- Creating a calendar event with associated notes
- Retrieving notes linked to specific events
- Updating event notes when the event changes
- Managing note metadata for event organization
- Syncing notes across multiple events
Each example is documented with comments explaining the functionality and expected output.