Documentation

Getting Started 4

Settings 5

How to Create OpenAI Assistants in the WordPress Dashboard?

Introduction

BuddyBots are the core of your website’s AI-powered interactions. They define how your bot engages with users, shaping it’s tone, behavior, and knowledge base. In this guide, we’ll explain what BuddyBots are, why they matter, and how you can create one in BuddyBot.

What Are BuddyBots?

BuddyBots in BuddyBot are AI-powered entities that:

  1. Answer Questions: Provide intelligent and context-aware responses to user queries.
  2. Follow Instructions: Behave according to your defined rules and guidelines.
  3. Learn from Your Content: Use synced posts, comments, and other data to personalize responses.

Every assistant is powered by OpenAI and can be customized to suit your website’s specific needs.

Why Are BuddyBots Important?

  1. Personalization: Tailor the bot’s tone and behavior to align with your brand.
  2. Specialization: Create BuddyBots focused on specific tasks, like customer support, product recommendations, or event assistance.
  3. Scalability: Use multiple BuddyBots for different sections or functionalities of your website.

How to Create an BuddyBot in WordPress

Step 1: Navigate to the BuddyBots Page

  1. Log in to your WordPress admin panel.
  2. Go to BuddyBot > BuddyBot.

Step 2: Add a New BuddyBot

  1. Click on the Add New Buddybot button.
  2. You’ll be redirected to the BuddyBot creation screen.

Step 3: Configure BuddyBot Details

On the BuddyBot creation page, fill in the following fields:

  1. BuddyBot Name (Required): Enter a name for the BuddyBot (e.g., EventBot, SupportBot).
  2. BuddyBot Description: Briefly describe its purpose (e.g., Handles customer inquiries and event-related questions).
  3. Assistant Name (Required): Choose the name users will see during interactions (e.g., Max, Sarah, BuddyBot).
  4. Assistant Model (Required): Select the AI model for your BuddyBot (e.g., GPT-4o 2024-05-13). Advanced models offer better accuracy but may consume more tokens.
  5. Additional Instructions: Provide specific guidelines to shape the BuddyBot’s behavior and responses (e.g., Be polite and assist with bookings).
  6. Response Creativity & Diversity: Adjust response randomness and variation to balance accuracy and creativity.
  7. Disallow External Search Option: If enabled, the BuddyBot will not query OpenAI’s main model when it cannot find an answer in the AI Training Knowledgebase.
  8. Personalized Responses: Allow BuddyBot to use logged-in user’s names and bios for more tailored interactions.
  9. Emotion Detection: Enable BuddyBot to detect and respond to user’s emotional tones.
  10. Greeting Message: Set a custom welcome message for users (e.g., “Hi! How can I assist you today? “).

Step 4: Save the BuddyBot

  1. After filling in all the fields, click Save BuddyBot.
  2. Your BuddyBot will be saved, and listed on the BuddyBots page.

How BuddyBots Act as a WordPress Interface for OpenAI Assistants

BuddyBots serve as an interface between WordPress and OpenAI, allowing website owners to customize AI-powered assistants without coding. These bots use the configurations set in WordPress to determine response styles, data sources, and user interactions.

Backend Configuration Example

Below is an example of a BuddyBot settings page where response creativity, diversity, and external search options are configured:

Key Takeaways from These Settings:

  1. Response Creativity & Diversity
    • Controls how dynamic or structured the assistant’s responses are.
    • Higher values introduce more randomness, while lower values ensure accuracy.
  2. Disallow External Search
    • When enabled, the BuddyBot will only respond based on its AI Knowledgebase.
    • If it cannot find a relevant answer, it will trigger the fallback message.
  3. Custom Fallback Message
    • You can define a message for cases where the bot lacks the necessary data.
    • Example: “Sorry, there isn’t enough information in the knowledge base to answer your question. Please feel free to ask something else!”

How These Settings Affect Frontend Behavior

When a user interacts with BuddyBot, these settings determine the chatbot’s responses. Below is an example of how disabling OpenAI search affects user interaction.

Since external search is disabled and no relevant information is available in the knowledge base, the bot displays the fallback message instead of generating a response from OpenAI.

What Happens Behind the Scenes?

  1. Metadata Storage: The Additional Instructions are stored in metadata for quick retrieval and customization:
    • buddybot_name – Stores the BuddyBot’s display name.
    • buddybot_description – Describes the purpose of the BuddyBot.
    • assistant_model – Defines which OpenAI model powers the BuddyBot.
    • personalized_options – Determines if personalized responses are enabled.
    • emotion_detection – Enables emotional tone detection in conversations.
    • greeting_message – Stores the custom greeting message.
    • openai_search – Configures whether external OpenAI search is allowed.
  2. OpenAI Integration: The BuddyBot’s details are sent to OpenAI, ensuring that the it’s behavior, tone and responses align with your configurations.
  3. Ready for Use : Once saved, your BuddyBot becomes active for user interactions, use the configured settings to provide intelligent and personalized responses.

Tips for Creating an Effective BuddyBot

  • Be Specific: Clearly define the BuddyBot’s role and behavior.
  • Use the Right Model: Choose a model that balances cost and performance.
  • Test Thoroughly: Check if the BuddyBot behaves as expected before deploying it.

Conclusion

BuddyBots are the foundation of AI-powered interactions on your website. By creating and customizing BuddyBots, you can enhance user engagement and provide a more personalized experience. Follow this guide to set up your first BuddyBot and bring AI-powered assistance to your website!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *