Introducing the GPT Package for Convoworks WP — Convoworks

Introducing the GPT Package for Convoworks WP — Convoworks

GPT can interact with your WordPress based system. And it’s no-code!

Convoworks WP is a powerful no-code framework that enables webmasters and web developers to easily build conversational workflows like chatbots. With the GPT package, Convoworks WP now allows users to access and interact with WordPress data through the use of artificial intelligence (AI).

The GPT package is in the development phase and available through our GitHub repository. It is packaged as a WordPress plugin that contains components for accessing OpenAI AP. Using these components, you can create chatbots that can interact with their websites, load user data, create appointments, and much more. You can find full component specifications in the repository readme file.

How to Install and Use the GPT Package

Make sure that you have the Convoworks WP plugin installed (available through WordPress org).
Now download the plugin from GitHub and install it on your WordPress site. Once installed, you can access the GPT package components through the Convoworks WP service editor.
The GPT package comes with the “GPT Examples” template which is a very good way to learn how it can be used. Examples are covering all GPT components. To try it, create a new service in Convoworks and select the “GPT Examples” template. The only configuration is to enter your OpenAI key in the variables view. After you’ve done it, navigate to the test view and try it for yourself.

API Components

The GPT package contains components for accessing the OpenAI API, including completion and chat completion — GPT Completion API and GPT Chat Completion API elements. These two components are API wrappers, allowing you to use all the features those two APIs have, through a no-code interface. Important to say that you can combine it with our existing WordPress specialized components (e.g. post based data, custom DB tables).

An example service template uses these two components to build a simple chatbot. You can notice how those two components have slightly different properties, which are following the API specification.

We don’t expect much future changes for these components, but you can expect that we add support for other API endpoints.

Autonomous Chat Components

The GPT package contains two autonomous chat components, Autonomous Chat and Turbo Chat. The main difference between the two is that Autonomous Chat uses completion API while Turbo Chat is using chat completion API (10x cheaper).

The premise behind the autonomous chat components is that they use prompts to describe what actions are available, which parameters they require, and how AI can invoke them. They rely on large prompts styled as markdown, which are separated into sections and defined with Prompt Section and Simple Prompt components.

A Simple Chat Action component is also available, and it allows users to define custom actions and what should be executed when they are triggered. This element also defines a prompt section for the given action. The action should be described so that the AI can use it (what does it do, which parameters are supported and/or required).

With our prompt and action componentization, we are enabling pluggable architecture, which allows you to dynamically modify prompts and actions, or to for example import the whole package pack, like appointment scheduling or any other purpose.

Example service demonstrates their usage as a website bot, capable of subscribing or unsubscribing users from the mailing list (implemented with custom post type) and appointment scheduling.

Configure real appointments plugin

Appointment scheduling is by default using the dummy appointment system (stores appointments in a chat session), but if you can also try to use it with Simply Schedule Appointments, Easy Appointments or Five Star Restaurant Reservations plugins.. Those appointment contexts are available through the convo-wp-plugin-pack.

Here is how to do it:

Switch to packages view in your service editor and enable convo-wp-plugin-pack

Select the Contexts tab and from the dropdown select e.g. Simply Schedule Appointments source. Now, select the newly added context, in its properties enter the id (how you will reference it) and select desired appointment type.

Navigate to the Variables view and enter your context id into APPOINTMENTS_CONTEXT_ID variable.

Conclusion

If you’re looking to build chatbots with WordPress data, look no further than the GPT package for Convoworks WP. With its easy installation and robust components for accessing OpenAI API and autonomous chat, the GPT package provides users with a powerful tool for building chatbots that can interact with their websites in meaningful ways.

To learn more about Convowork's general usage and features, check out our documentation and YouTube channel.

Originally published at convoworks.com on April 25, 2023.