Skip to main content

An AI-powered chatbot and email automation package with Streamlit UI

Project description

Ishtam AI - Custom AI-Powered Email Message Generator

Ishtam AI is a custom AI-powered email generator! It allows users to send love notes, schedule emails, get date ideas, and chat with AI to create personalized messages tailored to their partner’s preferences.

Installation & Setup

Setting Up a Virtual Environment

It is recommended to install Ishtam AI in a virtual environment to avoid dependency conflicts.

  1. Create a virtual environment:
    • On Linux/macOS:
      python -m venv ishtam  
      source ishtam/bin/activate  
    
    • On Windows (PowerShell):
     python -m venv ishtam  
     ishtam\Scripts\Activate  
    

Install the Package

Install Ishtam AI from PyPI:

pip install ishtam_ai  

Verify the installation:

python -c "import ishtam_ai; print('Package installed successfully!')"

Running AI-Powered Features

Install & Run Ollama (For AI Responses)

Ollama is required for AI-generated love messages.

  • On Linux:
  curl -fsSL https://ollama.com/install.sh | sh  
  • On MacOS/Windows (requires Homebrew):
    If Homebrew is not installed, install it first:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"  
    

    Then, install Ollama:

    brew install ollama  
    
    

Before running the app, start the Ollama server:

ollama serve  

Using Streamlit

Running the Streamlit App

Before launching, check where Ishtam AI is installed:

python -c "import ishtam_ai; print(ishtam_ai.__path__[0])"  

If installed inside a virtual environment or system-wide, run:

streamlit run $(python -c "import ishtam_ai; print(ishtam_ai.__path__[0])")/app.py  

Logging into Streamlit

Streamlit login is optional, but if required:

streamlit login  

Setting Up Email Credentials

To send emails, configure email credentials as environment variables:

export EMAIL_ADDRESS="your-email@gmail.com"  
export EMAIL_PASSWORD="your-app-password"  

Google App Passwords

If using Gmail, generate a 16-digit App Password instead of using your actual password.
To generate an App Password:

  1. Go to Google Account Security Settings
  2. Select App Passwords
  3. Generate a 16-character password
  4. Use the generated password as $EMAIL_PASSWORD

Verify that credentials are set:

echo $EMAIL_ADDRESS  
echo $EMAIL_PASSWORD  

Using the App

Once the Streamlit app launches, you can:

  • Chat with AI for personalized romantic messages
  • Send Love Emails with heartfelt notes
  • Schedule Recurring Messages to automate love messages
  • Get AI-Powered Date Ideas

Upgrading the App

pip install --upgrade ishtam_ai


Troubleshooting

Ollama Not Running?
Ensure the Ollama server is active:

ollama serve  

Streamlit File Error?
Use the correct command to run Streamlit:
streamlit run ishtam_ai/app.py

Emails Not Sending?
Check email credentials:

echo $EMAIL_ADDRESS  
echo $EMAIL_PASSWORD  

Gmail Users: Ensure App Passwords are set up correctly.

License

This project is licensed under the MIT License.

Enjoy Ishtam AI!

Now you can spread love with AI-powered messages! Let me know if you need any help.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ishtam_ai-1.0.8.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ishtam_ai-1.0.8-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file ishtam_ai-1.0.8.tar.gz.

File metadata

  • Download URL: ishtam_ai-1.0.8.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for ishtam_ai-1.0.8.tar.gz
Algorithm Hash digest
SHA256 2ff639473dfb222ec22a0ca0a9509833f74808015b6514f6d59b7c4b47788551
MD5 ca5a2b3b510b92795da98e7122dbc33b
BLAKE2b-256 2429e364c3a625b4450fb2eb15622fcd059c7ad3647dc5ce14b0626bb76ae7dd

See more details on using hashes here.

File details

Details for the file ishtam_ai-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: ishtam_ai-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for ishtam_ai-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a0284ac8166137dfcc4d5116fabf3f453d209cd08fcb73c5daa56c3ed0b8bef9
MD5 45b94ab7139fc998b3ce94e119a69a37
BLAKE2b-256 3a10f748d4c8fc37b54da414a6610d2873ac8e63dab59257d903a87a56f26f85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page