LifeSync-AI goes beyond traditional task management features, offering a dynamic, AI-driven personal assistant aimed at enhancing life management and decision-making skills. By integrating cross-platform task collaboration, AI-powered suggestions, bill tracking, and real-time environmental feedback, it helps users generate detailed hourly task plans with a single click.
- GHA Automation Support: Deployed in GitHub Actions for fully automated program execution.
- Task Retrieval: Automatically retrieves and categorizes tasks from the Notion database.
- Suggestions/Timeline Generation: Uses AI to generate a list of plans and daily suggestions (supports ChatGPT and ZhiPu QingYan).
- Weather Information: Provides real-time weather updates and customized suggestions based on your schedule.
- Scheduled Email Notifications: Sends a daily summary and task reminders to your inbox every morning, ensuring you're always prepared.
- User Information Customization: Automatically retrieves and manages environmental variables for multiple users.
- Route Suggestions: Offers daily route suggestions based on the user's travel destinations and environmental factors.
- Bill Monitoring and Summarization: Monitors user's bill transactions and dynamically summarizes and charts them.
- Calendar and Task Automation Management: Automatically adds, deletes, modifies, and queries calendar events and daily tasks through mainstream calendar and task management tools.
- Python 3.8+ (not needed for cloud deployment)
- Notion API key (see User Information Configuration Interface below for how to apply)
- Mailgun API key (apply on the Mailgun official website)
- OpenAI API key (apply on the OpenAI official website, this is the only step that will incur a cost)
- OpenWeather API key (apply on the OpenWeather official website)
First, open the following two pages and copy them to Notion:
- Notion Template (not mandatory, you can use your own Notion task database (table))
- User Information Configuration Interface (mandatory)
Fork the repository and install the required dependencies:
git clone https://github.com/Zippland/LifeSync-AI.git
cd LifeSync-AI
pip install -r requirements.txt
Configure the .env
file to set your user information configuration interface token, OpenAI key, and OpenWeather API.
Then run the following command to activate your personal assistant:
python main.py
Before starting the application, make sure all configurations in .env
are correct.
Fork the repository in the upper right corner of the interface.
Modify the startup time in the .github/workflows/deploy.yml
file:
on:
schedule:
- cron: '0 22 * * *'
workflow_dispatch:
Here cron
represents the daily scheduled start time in UTC. For example, cron: '0 22 * * *'
corresponds to 6 AM Beijing time
.
Then go to Setting -> Security -> Secrets and Variables -> Repository secrets
Configure the following variables:
ENV_DATABASE_ID
ENV_NOTION_TOKEN
MAILGUN_API_KEY
MAILGUN_DOMAIN
AI_API_KEY
(changed after supporting ZhiPu QingYan)OPENWEATHER_API_KEY
This program will run automatically at the time you set, or you can manually go to Action -> Daily Report-> run workflow
and click to run.
We welcome contributions of all kinds. To contribute, please:
- Fork the repository.
- Create your feature branch.
- If you've added a feature, please add tests.
- Ensure your changes adhere to the project's coding style.
- Submit a pull request.
Licensed under the Apache License.
For support or inquiries, please contact me at zihan.jian@outlook.com.