Termux SMS ChatGPT Assistant is a Python script that integrates with Termux on Android to automate the processing of SMS messages using OpenAI's GPT-3.5-turbo. The script listens for new SMS messages, analyzes their content, and generates responses using the OpenAI language model if the message ends with a question mark or any other symbols configured in the 'bodyIncludeText = "?"'.
- Listens for new SMS messages at regular intervals.
- Analyzes SMS content and generates responses using OpenAI GPT-3.5-turbo.
- Marks processed SMS as read to avoid repeated processing.
- Handles cases where 'sender' information is not available by using the 'number' field.
- Termux installed on an Android device.
- OpenAI GPT-3.5-turbo API key.
- Python installed on Termux.
-
Clone the repository:
git clone https://github.com/rzgarespo/android-termux-sms-chatgpt.git
-
Navigate to the project directory:
cd android-termux-sms-chatgpt chmod +x sms.py
-
Install the required Python packages:
pkg install python pip install openai
-
Set up your OpenAI API key by replacing
"your-api-key"
in the script with your actual API key. -
Run the script:
python sms.py
- Adjust the script's configuration parameters, such as the API key, polling interval, and message processing logic, according to your preferences.
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.
Feel free to contribute to the project or submit issues if you encounter any problems.