pyChat is a versatile bot assistant that leverages OpenAI's API and function calling capabilities to provide a wide range of personalized functionalities. With pyChat, you can effortlessly send emails, draft LinkedIn messages, open applications, find flights, show art from The Met, and much more. The application features a Flask backend and a SwiftUI frontend, offering an intuitive user interface and seamless API integrations.
- Send Emails: Compose and send emails directly through pyChat using your Gmail account.
- Draft LinkedIn Messages: Get AI-generated LinkedIn message drafts tailored to your needs.
- Open Applications: Command pyChat to open various applications on your device.
- Find Flights: Search for and display flight options based on your preferences.
- Show Art from The Met: Explore and view artworks from The Metropolitan Museum of Art.
- And More: pyChat is constantly expanding its capabilities with new features!
- Backend: Flask
- Frontend: SwiftUI
- AI Integration: OpenAI API
- Python 3.8+
- Pipenv: For managing dependencies and virtual environments.
- Xcode: Required for interacting with the SwiftUI frontend.
- Postman: Optional tool for making API calls if you do not have Xcode.
-
Clone the Repository:
git clone https://github.com/your-username/pyChat.git cd pyChat -
Set Up the Environment:
Create a
.envfile in the root directory of the project with the following variables:SECRET_KEY=**ask me for this at [email protected]** OPENAI_API_KEY=your_openai_api_key APP_PASSWORD=your_gmail_app_password
-
Install Dependencies:
Use
pipenvto install all required libraries:pipenv install
-
Activate the Virtual Environment:
pipenv shell
-
Run the Flask Backend:
flask run
- Using Xcode: Open the project in Xcode and run the SwiftUI frontend to interact with pyChat.
- Using Postman: If you don't have Xcode, you can use Postman to make API calls directly to the Flask backend.
Once everything is set up, you can start using pyChat's features via the SwiftUI interface or by sending API requests. The bot will assist you with various tasks, offering AI-powered solutions and personalized experiences.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Note: Ensure that you keep your .env file secure and do not share your secret keys or passwords publicly.