Problem with encoding in AI responses
-
Hi, thanks for the great plugin.
During use, some encoding issues were noticed in AI responses. The site is in Ukrainian, and Ukrainian is also selected in the plugin settings. The instructions for the AI ??indicate that you need to respond in the user’s language. Periodically, the AI ??responses were in Unicode format. It looked like this: u041du0430 u0436u0430u043bu044c. The solution was found with the help of AI )
Replacing strings in plugin files.
Find string
$wpaicg_chat_widget = json_decode($wpaicg_bot->post_content, true);
Replaced with this
$wpaicg_chat_widget = json_decode($wpaicg_bot->post_content, true, 512, JSON_UNESCAPED_UNICODE);
Perhaps this solution will be useful to other users.
PS Thanks again for the great plugin.
Additions that I would like to see in the future:
- Integration with CRM: Automatically add information about users who communicate with the chatbot to your CRM system. This will allow you to better understand the needs of customers and interact with them more effectively.
- Integration with email marketing services: Create subscription forms, automatically add users who interacted with the chatbot to the mailing list.
- Integration with Google Analytics: Track chatbot-related events in Google Analytics (for example, starting a dialogue, sending a form, clicking on a link) to analyze its effectiveness
Usability: Ability to send content directly from the chat, at the user’s request (price list, brief, commercial offer).
- You must be logged in to reply to this topic.