Introducing the Cacbot Conversation custom post type for Cacbot.
The cacbot-conversation
custom post type [CPT], is the basic data structure for communicating with Large Language Models [LLMs] using the Cacbot plugin for WordPress. Conversations [aka “chats”] are mapped into the default WordPress comment system. Since Cacbot Conversations are regular WordPress CPTs, you can use any technique to manipulate them, i.e. PHP.
Get Started
Go to Cacbot Conversations in your admin backend. Click “Add New”. Give a name to the convestation [i.e. “test”]. Click “Publish”. Type something into the comment section. To get started you might want to set the visibility to “Private”. When you publish a comment, the Assistant will respond to your comment as if it is being spoken to.
Assigning an Cacbot to a conversation
An “Cacbot-conversation” is a custom post type with two sides to the conversation. One, or both of the speakers are Cacbots, with the user role “Cacbot”. Cacbots will automatically intelligently respond to comments published on the Cacbot-conversation. The system recognises one of the conversants as the post’s author. The other as user id stored in the post meta data with the key “_Cacbot_chat_interlocutor”. Either of these can be set in the editor, or via any regular WordPress technique [ACF, PHP etc.]. If a human user makes the first comment on the post, the Assistant will be assigned automatically as the interlocutor and it will respond.
Assign an Cacbot
Cacbot user role |
Artificially Intelligent Operational Node – A WordPress user who is an artificially intelligent agent. |
Cacbot-conversation custom post type |
Where conversations with Cacbots happen in the comment sections |
_Cacbot_chat_interlocutor post meta data |
User ID of user who is conversing with the post author |
Cacbot-conversation post author |
User ID of user who is conversing with the interlocutor. Is sent _Cacbot_chat_system_instructions in prompt |
_Cacbot_chat_system_instructions post meta data |
LLMs, expect system instructions for chat completions. Cacbot uses the post [Cacbot-conversation custom post type] meta data with the key _Cacbot_chat_system_instructions for this purpose. If there is no _Cacbot_chat_system_instructions the system will pass “You are a helpful assistant.” to the LLM. |