This repository contains the FreeScout + ChatGPT Integration Module, which connects FreeScout with the powerful language models of ChatGPT by OpenAI via their API using your own API key. This integration enables the generation of AI-based responses for incoming messages, providing a more efficient and intelligent support system for your FreeScout team.
- Generate ChatGPT AI-based responses for each incoming message, then edit/polish as needed
- Utilize the powerful ChatGPT language models to improve support efficiency
- Customizable prompt message to set ChatGPT's role (e.g., support agent, sales manager, etc.), associate it with your brand with website links, and provide additional training information and context as desired
- Edit the prompt per reply using the Edit Prompt button on the Reply page, to add message-specific info to send with the request for a more detailed reply.
To use this module, you will need an API key for ChatGPT, which can be obtained from the OpenAI platform at https://platform.openai.com/account/api-keys.
- Upload the FreeScoutGPT Module ZIP file to your FreeScout Modules folder, rename it to ensure the module's folder is named "FreeScoutGPT".
- Go to each mailbox you want it enabled on, and add your ChatGPT API key to the module's configuration page.
- Set a good prompt to describe the role, and add some training info, website and KB links, etc for ChatGPT to consider using in it's answers.
- Be sure to check the Enable switch at the top.
- On a conversation page, not the reply page, click the drop-down in the upper right near the message time and choose "Generate answer (GPT)".
- Then you can copy that answer, click Reply, and paste it into your message, and edit/polish it as desired.
Edit prompt modal window displays current prompt, add message-specific info here and send it to get a generated reply
OpenAI offers a range of AI language models, each with distinct capabilities and pricing structures. Below is an overview of the models available for chat completions within FreeScoutGPT, with pricing details (which may change and be outdated).
Visit https://platform.openai.com/docs/pricing for the latest pricing.
gpt-4o-mini: Introduced as a cost-efficient alternative, 4o-mini balances performance with affordability. It offers a 128K context window and multimodal capabilities, including text and vision processing. This model replaces gpt-3.5-turbo. Pricing is set at $0.15 per million input tokens and $0.60 per million output tokens. Least expensive and fastest performance with decent quality results.
gpt-4o: GPT-4o (“o” for “omni”) is a versatile, high-intelligence flagship model, ideal for complex tasks requiring high accuracy and advanced capabilities. Less expensive but almost as good in quality and performance to chatgpt-4o-latest, its priced at $2.50 per million input tokens, and $10 per million output tokens.
chatgpt-4o-latest: OpenAI’s advanced chat model, designed to enhance pattern recognition and generate creative insights. It’s particularly adept at tasks requiring high emotional intelligence and creativity, such as writing and brainstorming. However, its advanced capabilities come with a higher cost, priced at $5 per million input tokens, and $15 per million output tokens.
There are new reasoning models as well, including o1, o1-preview, o1-mini, and o3-mini. Tier 1 API accounts apparently have access to only o1-preview and o1-mini, so we've fixed the API calls to remove system or developer roles which these models don't support, and added them to be available in the FreeScoutGPT settings page. o1-mini is priced at $1.10 per million input tokens, and $4.40 per million output tokens. o1-preview is the most expensive, priced at $15 per million input tokens, and $60 per million output tokens.
For more details on the models, visit https://platform.openai.com/docs/models
The default limit of 1024 tokens is about 750 words, and that would include the prompt and generated AI output. If you have more prompt details and training information, and longer messages to send out, then you may want to increase the token limit.
Rough Breakdown: • 1 token ≈ 4 characters (including spaces & punctuation) • 100 tokens ≈ 75 words • 1024 tokens ≈ 750 words
For larger prompts and messages, and larger responses, 2048 or 4096 tokens may work for a better balance of cost and performance. Decrease the token limit for shorter, lower-cost queries to avoid unnecessary expense.
This is an updated version of the FreeScout + ChatGPT Integration Module, and we appreciate any feedback, suggestions, or contributions to help improve the module. Please feel free to open issues or submit pull requests on GitHub.
Together, we can make this integration a valuable addition to the FreeScout ecosystem and enhance the capabilities of helpdesk software for the entire community.
This module uses the ChatGPT API, developed by OpenAI, and is not officially affiliated with or endorsed by OpenAI. For more details, see OpenAI’s Terms of Service.