Introducing the Aion Conversation custom post type for Aion Chat.
The aion-conversation
custom post type [CPT], is the basic data structure for communicating with Large Language Models [LLMs] using the Aion Chat plugin for WordPress. Conversations [aka “chats”] are mapped into the default WordPress comment system. Since Aion Conversations are regular WordPress CPTs, you can use any technique to manipulate them, i.e. PHP.
Get Started
Go to Aion 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 Aion to a conversation
An “aion-conversation” is a custom post type with two sides to the conversation. One, or both of the speakers are Aions, with the user role “aion”. Aions will automatically intelligently respond to comments published on the aion-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 “_aion_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 Aion
Aion user role |
Artificially Intelligent Operational Node – A WordPress user who is an artificially intelligent agent. |
aion-conversation custom post type |
Where conversations with Aions happen in the comment sections |
_aion_chat_interlocutor post meta data |
User ID of user who is conversing with the post author |
aion-conversation post author |
User ID of user who is conversing with the interlocutor. Is sent _aion_chat_system_instructions in prompt |
_aion_chat_system_instructions post meta data |
LLMs, expect system instructions for chat completions. Aion Chat uses the post [aion-conversation custom post type] meta data with the key _aion_chat_system_instructions for this purpose. If there is no _aion_chat_system_instructions the system will pass “You are a helpful assistant.” to the LLM. |