This project generates AI-driven email responses to Freshdesk support tickets using the Mistral model via Ollama. It features an interactive GUI and supports multiple languages.
- Fetching and processing Freshdesk tickets
- Automatic language detection
- AI-generated email responses with Mistral
- Interactive GUI for ease of use
- Multilingual email support
email_generator.py– Main script managing the email generation processprompt_loader.py– Loads and processes prompt templatesemail_gui.py– Interactive GUI for usersprompts.json– Contains prompt structures for AI generationrequirements.txt– List of required dependencies
Ensure you have Python installed (version 3.8+ recommended).
pip install -r requirements.txtThis project requires the Mistral model via Ollama. First, download Ollama from ollama.com and install it as follows:
ollama run mistralCreate a config.py file and add your Freshdesk API key and domain:
import os
class Config:
FRESHDESK_API_KEY = os.getenv('FRESHDESK_API_KEY', 'your_api_key')
FRESHDESK_DOMAIN = 'yourcompany.freshdesk.com'To use the CLI version:
python email_generator.pyFor the GUI version:
python email_gui.py- Ensure your Freshdesk API key is set up correctly.
- The project supports multiple languages; make sure
prompts.jsonis properly configured. - Review the generated email response before sending it.
This project is released under the GPLv3 license. See LICENSE for more details.