OpenAI / ChatGPT ViCiDial Intergration
Posted: Wed Mar 15, 2023 5:24 pm
Good evening guys,
Inspired by bbakirtas in http://vicidial.org/VICIDIALforum/viewtopic.php?f=3&t=41572#p150666, I decided to try and integrate OpenAI's ChatGPT into ViCiDial. This version uses cURL rather than any third-party library to achieve it's ends. I've written the code by myself but have co-credited bbakirtas as he inspired me to do this
I've propose two new system settings;
Here is a question I asked ChatGPT...it was SO WRONG...Vincent Silvidi? Is there any truth to this Matt? lol the tiny window is draggable as to not obstruct parts of the dialler.
Feature submitted on Mantis http://www.vicidial.org/VICIDIALmantis/view.php?id=1455
Inspired by bbakirtas in http://vicidial.org/VICIDIALforum/viewtopic.php?f=3&t=41572#p150666, I decided to try and integrate OpenAI's ChatGPT into ViCiDial. This version uses cURL rather than any third-party library to achieve it's ends. I've written the code by myself but have co-credited bbakirtas as he inspired me to do this
I've propose two new system settings;
Here is a question I asked ChatGPT...it was SO WRONG...Vincent Silvidi? Is there any truth to this Matt? lol the tiny window is draggable as to not obstruct parts of the dialler.
Feature submitted on Mantis http://www.vicidial.org/VICIDIALmantis/view.php?id=1455
- Code: Select all
=============================================
OpenAI / ChatGPT Integration for ViCiDial.
=============================================
Ticket Type: Add Feature.
Reporter: Martin McCarthy (martinch).
Impacted Users: ViCiDial agents.
Priority: Low.
Product(s) Affected: ViCiDial.
Deadline: No firm deadline in place.
Time / Effort Estimate: 4 hours of development / 1 hour of QA testing.
=============================================
Description
=============================================
It would be nice to provide ViCi agents with the chance to interface with ChatGPT during calls...perhaps to pull out a fact from thin or or get information very very quickly. Inspired by bbakirtas's idea, I have implemented an initial version of OpenAI's ChatGPT into ViCiDial.
Tasks;
- Create two new system settings options;
- OpenAI Enabled (ENUM - Y - N)
- OpenAI API Key (VARCHAR)
- Create a new div to contain the question input and answer output.
- Make the div draggable as to not obscure the agent's view of dialler controls.
- Create a button on the ViCiDial sidebar to show and hide the div.
- Create a PHP page to process requests to OpenAI (via cURL).
If you have any queries, please reach out to me.
=============================================
End
=============================================