Skip to main content
Group recent emails by category and record a priority for each message in a structured daily digest.
daily_digest.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run the example

Save the code above as daily_digest.py, then run:
Full source: cookbook/91_tools/google/gmail/daily_digest.py