New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CW-1551] feat: Chat GPT(OpenAI ) Integration with Chatwoot #6436
Comments
I think the OP is a bit quick but how cool would it be if we could automatically feed the Chatwoot conversation content into your own OpenAI through their API (at the cost of the user). Combine that with feeding extra content like manuals, guides, forums and even Discord chats into OpenAI, the resulting ChatGPT conversations could be a really wonderful opener before handing a conversation off to an agent. I'm sure other chat services are working real hard on exactly this idea so it would be great if Chatwoot can be ahead of the curve here! Thoughts? |
SpecExploring ideas for some of the potential implementations of these language models/APIs into Chatwoot.The OpenAI language models provide the following capabilities. Ref:
We could explore building numerous product features leveraging these capabilities. Text Completionref: https://platform.openai.com/docs/guides/completion/inserting-text These APIs provide us with the option to build various capabilities, sentiment analysis, translations, summarisation etc. Potential features
Chat completionsref: https://platform.openai.com/docs/guides/chat
OpenAI now has a very specific model,
Fine-tuningref: https://platform.openai.com/docs/guides/fine-tuning GPT-3 has been pre-trained on a vast amount of text from the open internet. When given a prompt with just a few examples, it can often intuit what task you are trying to perform and generate a plausible completion. This is often called "few-shot learning." Fine-tuning improves on few-shot learning by training on many more examples than can fit in the prompt, letting you achieve better results on a wide number of tasks. Once a model has been fine-tuned, you won't need to provide examples in the prompt anymore. This saves costs and enables lower-latency requests.
Embeddinghttps://platform.openai.com/docs/guides/embeddings/what-are-embeddings Potentially useful for building features like improved versions of Speech to texthttps://platform.openai.com/docs/guides/speech-to-text
Using the APIThe openAI API endpoint is relatively straightforward to use with plain HTTP requests of the following format
Where the key parameters are the There are also various libraries available for different language bindings. Next Steps
|
you tell me if it's too quick but BotPress already did it |
Could you do this using Zapier and a webhook? I have seen something similar done with High Level SMS. If you figure it out, let me know! |
what is the best way to use chatgpt on chatwoot? |
Currently you can create a agent bot connect the user to the GPT models. May be pre-fine-tuning is needed for your Business of customer's business. |
thank you very much, where i find him ? im searching in chatwoot website but i dont find anything related, thanks forr help me |
thank you |
I think the Reply Suggestions feature would be even more useful if it were generated based on information from internal knowledge bases. While one possible solution could be to use Open AI Plugins, unfortunately this feature is currently not available through the API. Another potential solution would be to build a custom language model application based on frameworks like LangChain and use retrieval augmented generation techniques to achieve this functionality. This would allow the application to retrieve information from the knowledge base and generate a relevant response to the user. Refs: |
Update: We are working on a ref: Rephrase Agent response. [Generate different copies, Change the tone of text into helpful, professional etc.], |
…6957) ref: #6436 fixes: https://linear.app/chatwoot/issue/CW-1552/ability-to-rephrase-text-in-the-editor-using-gpt-integration --------- Co-authored-by: Sojan <sojan@pepalo.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
Adds additional endpoints for OpenAI integration which will allow - Reply Suggestions - Summarization ref: #6436 fixes: https://linear.app/chatwoot/issue/CW-1596/backend-for-generating-conversation-summary
Already starting to see some other chats building this. Eg you create an agent bot, feed it store information eg CMS, product info, blog posts and knowledge base, and it then answers questions about products, shipping, where is my order, and so forth on it's own using the information it has access to. If it can't answer them can then forward to live agent, or live agent can just take over, or contact form if no agent online. |
@sojan-official - Can I ask the plans for ChatGPT integration with Chatwoot?
|
Update: We have added a reply suggestion and conversation summary option as well. These features will be available on chatwoot cloud already and will be available in the v2.17.0 release. ref: #7029 Here is a quick preview of the functionality: ai.mp4 |
Great feature! But there is a issue with usage besides English Language. What is happening is that some replies and the summarize function is returning always in english, besides the conversation language. What I suggest is that in prompt you should include the commando to output in X language, being X the language set by the admin. That will fix all issues with usage worldwide. That command should be inserted in all prompts. That issue is happening because the prompt is being made in code in english and usually the OpenAi API will return in the prompt language, or the language sent and command in prompt. |
will be fixed in : #7092 |
ref: #7162 Generate embedding on support articles to be passed as context for GPT-based Chatbot |
Closing this issue since we have the integration in place. We will take further enhancements for the integration in subsequent issues. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
integrate the conversational AI platform into Chatwoot
CW-1551
The text was updated successfully, but these errors were encountered: