Supercharge Your Chatbot with ChatGPT's AI-Generated conversations
Welcome to an exciting new world of chatbot creation! Today, we're thrilled to share with you an innovative feature that will revolutionize the way you build ...
Being able to provide a service in multiple languages is becoming more important as countries have people living from various nationalities. The more languages you can speak the more customers you attract.
With UChat this has been made possible for years now but it can be a bit time consuming to set up.
Having said that with the rise of AI this has becoming so much easier to set up without the time consumption it took before.
I will share with you the original way versus the new way so you can determine which one you prefer.
Are you excited to learn to take your chatbots to the next level and make them multilingual?
Well I am excited to show you how so let's get started and see how we can achieve just that!
So the original way to provide this kind of setup is to first finish the chatbot in the language you prefer to work with. For myself that would be English to speak to a wide range of people all over the world.
Once you have finished your chatbot then the step to follow is to go to tools section and start with creating a new language option like so;
As you can see I already added quite a few as part of a template I was building a while ago.
Well now you created a language but how to actually provide the translations?
You see that translate button to the right of each language? That is where you need to go. Here is how the system works:
go into the flow under flows which you want to translate
then go back to the multiple language section and press "Translate" after you created a new language
As you can see in the middle column you can see the language as you have created it inside your own chatbot while creating the flow itself. On the right you are then able to add the different language and provide the translations.
Although you have the translations fully under your own control, you have to translate each and every flow this way which can take up a lot of time when you have let's say 25-100 flows 😱
you literally have to translate each text and question node so if we take an example of having 50 flows and each flow has 20 text and or question nodes inside to translate you would get to a staggering 1000 lines for you to translate.
Then if you like to provide 4 languages (again as an example) that would make it 4000 lines to translate!
Petty insane when you do the math like that right?
I am sure that we will improve this in the future but for now it is what it is.
What if I told you that you can skip all that by using AI? Even better what if I told you that you only need to add one line to a prompt to instantly make it multilingual?
If you want to know more read on ahead. If you want to know more about the above mentioned translations which can still work very well for smaller chatbots just have a look here.
As said there is a much easier way to create these kinds of chatbots. Just use AI to generate any kind of reply or question you want to send to your bot user. Inside create a chat completion by following the below
From there it is really easy to set up any kind of prompt.... believe me it is much easier than it sounds. Let me walk you through it so no worries 😁
Before we go into the prompt itself make sure you have connected to your OpenAI account under the workspace integrations section.
Once connected let's get started with the prompt. First up is the system message!
The system message is used to provide the proper context on how the AI needs to reply to the user's question. Included will be things such as:
persona
role
business information
guidelines for response
So let's do just that!
You can see we used the persona, a role to fulfill and guideline for responses. Sometimes you do not need the business information part like with this example. We have a simple AI response we need.
But you might be wondering what about the multilingual part? How does the AI know in which language to reply back to?
Well with adding ONE simple guideline at the bottom we are able to INSTANTLY transform this chatbot into a multilingual one.
Can you guess what that guideline will be? Will give you a few seconds...
.... you found it?
Ok ok let me show you 👇
That is pretty much it!
In UChat in most channels the language is automatically pulled in when receiving the rest of the user profile. This helps in instantly reply to the user in their own language which directly connects that user with your business as they are free to interact based on their own preferences and do not need to adjust to get a reply from you.
In very rare instances it could happen that the system field for storing the language is empty. When this happens there is no need for panic because we can just add a fallback to this guideline very easily.
You see what we added?
We have now put with the system field between double quotes indicating that we expect there to be a value. if this is empty then it will look for guidance in the fallback message where we tell the AI to look at the last input from the user to see if a language can be determined from there.
So what would if there is no user input present? It could be the very first interaction from a user yet to be given. So what has to be added to help and resolve that issue?
Well again luckily it is not that difficult either so have a look
And just like that we have added another guideline for when the others might fail. But you can see even with this it is still much easier to create a multilingual chatbot right?
Imagine how much time it would save in comparison to the first solution we talked about where you need to manually translate each node and do it for each language you want to add.
With just 3 sentences of guidelines you can just bypass all of that and use AI to do the hard work for you.
And to be fair.... it isn't really hard work for AI 🤭
Which option would you be more likely to implement into your own setups? If I take a look at myself the option is very clear as my mentality is always to work smart and not hard.
And using AI to create instant multilingual chatbots definitely falls under that category.
Hope you enjoyed this quick tip and will take some time to explore it if you did not do so already. And as always we are here if you have any questions.
Partager cet article