The Signal-ChatGPT Relay makes an OpenAI chatbot available over Signal messenger.
This is good for those who need AI on an airplane, as some airlines provide free messaging service for Signal. It may also be useful in jurisdictions where ChatGPT is not available. It gives some extra control of the model such as modifying the system prompt.
Message +1-775-235-2686 on Signal, or add it to your contacts with the QR code below.
Down due to signald problems
This mostly uses the Semaphore library for Signal functionality.
You can run your own or modify this bot with a Signal number you control. You should register the number on a phone (perhaps with a Google Voice number), and then link it with the signaldctl account link
command as shown below. Don't bother trying to register a new number with signald
, as it doesn't work with the new CAPTCHA.
- Linux (until Dockerized)
- signald (https://signald.org/articles/install/)
- Python 3 w/ pip and virtualenv suport
- Link your Signal number to signald.
signaldctl account link +XXXXXXXXXXX
# a QR code appears on screen that you scan with your phone
- Clone the repo and install dependencies inside a venv
git clone git@github.com:dillonwilliams/signal-chatgpt.git
python -m venv venv
source venv/bin/activate
cd signal-chatgpt
pip install -r requirements.txt
- Edit the paths in
signal-chatgpt.service
to match the clone dir and venv dir, and fill in the 2 environment variables. - Copy the service file, load and enable
sudo cp signal-chatgpt.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable signal-chatgpt
sudo systemctl start signal-chatgpt
- View logs with
sudo journalctl -u signal-chatgpt
If the bot hangs it is probably signald
's fault and should be restarted with sudo systemctl restart signald
.
For dev work, run python bot.py
inside your virtualenv.