hercegdoo/aicomposeplugin

A plugin for AI generated emails.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

Type:roundcube-plugin

1.0.5 2025-02-19 15:42 UTC

This package is not auto-updated.

Last update: 2025-03-06 14:10:27 UTC


README

Overview

The AI Email Generator plugin for Roundcube enhances the email composing experience by integrating AI-based email generation capabilities. With this plugin, users can generate professional and personalized emails with just a few clicks, saving time and effort.

Features

  1. AI Email Generation:

    • Allows users to generate an email by providing specific instructions.
  2. Customizable Parameters: Users can choose:

    • Style: The tone and style of the email (e.g., formal, casual, informational, etc.).

    • Length: How long the generated email should be (short, medium, or long).

    • Creativity: Adjust the level of creativity in the email (low, medium, or high).

    • Language: Choose from Bosnian, Croatian, English, German, or Dutch.

  3. User-Defined Predefined Instructions:

    • Users can create custom predefined instructions that they can reuse for generating emails. Instead of typing instructions each time, users can save and select frequently used ones, enhancing productivity.
  4. Default Settings:

    • Users can set default values for style, length, creativity, and language. These default settings will be automatically applied during email generation, allowing for a more streamlined experience.
  5. Seamless Integration:

    • Adds a new button to the Compose page in Roundcube that opens a prompt for email generation.

Install

  1. Clone repository content to an AIComposePlugin directory inside your RoundCube plugins directory.

  2. Then reference the plugin by adding an item AIComposePlugin to the RoundCube plugins list in the configuration:

    $config['plugins'] = array('AIComposePlugin', ...);
  3. You can install the required dependencies using Composer, npm, and run the development build. Navigate to the plugin directory and run the following commands:

composer install --no-dev
npm install --omit=dev
npm run build
  1. Fill in the settings in the config.inc.php.dist file according to the instructions provided within it. After completing the configuration, rename the file to config.inc.php.

Usage

  1. Compose a New Email:

    • Open Roundcube and start composing a new email.
    • A new button labeled Generate will appear on the Compose page.
  2. Open the AI Prompt:

    • Click on the Generate Email button.
    • A prompt will appear where you can:
      • Enter instructions for the email.
      • Choose the style, length, creativity, and language of the email.
  3. Generate Email:

    • Provide the necessary details, and click Generate.
    • The AI will generate an email based on the provided input.
    • The generated email can be inserted into the Compose window, ready for further editing or immediate sending.

image