visit
GPT has become a very popular topic in recent times and is being used in many different ways, from automated customer service to natural language processing.
This tutorial will show you how to create a GPT-powered chatbot for the Viber app, using the WordPress and no-code plugin . In it, we'll explain how to set up the chatbot so that you can use GPT-3's natural language technology to ask questions and converse about any topic.
Create a Viber bot on . In order to do that, the only thing you need is an installed and working Viber app. Once you create it you will have an API access token which will be used in Convoworks. Note the QR code which you can use to invite users.
The conversation
GPT (Generative Pre-trained Transformer) is a type of algorithm that can understand natural language and generate new text based on a given prompt. It works by using the input prompt to construct a context, and then using that context to generate text. The completion principle of GPT is that it will generate new text based on the context provided by the prompt. It is important to provide GPT with a prompt that provides enough context for the algorithm to generate related text. For example, if you provide a prompt like "What is the capital of France?", then GPT will generate text about France and its capital city. So, what we are doing here in Convoworks service, is simply setting the ${conversation} variable (empty at the beginning) which contains the full conversation (check for “Set parameter” element). We are adding to it both the user's inquiry and the bot’s responses.
Http Query element
Text filter and special commands
Authentication
When Viber is sending requests, we are receiving the user's unique id too. If we have that id in our database, we could easily know user details and respond with a personalized message or conversation.
Prompt engineering
There is much power in knowing how to form prompts to get most of the GPT. Forming the right prompt is crucial and you should play with it. Keep in mind that Convoworks is running inside WordPress and can access all its data., meaning that you can pre-populate a prompt with data from the database. You can put different conversation context if it is a new user, what was their last order … whatever you need.