Develop multiple AI chatbots with different styles and behaviors on different pages of your website, including using content-aware functionality
OpenAI Assistant API and
RAG. You can personalize the appearance of the chatbot: colors, styles, text; Personalize its position on the screen, window size, chatbot behavior by choosing: model, instruction, temperature, tokens, etc. You have the option to choose whether the chatbot will be visible only to registered visitors or not. The plugin allows you to update models directly from OpenAI and independently choose the model to use. You can record and save chat conversations between users and the chatbot. Additionally, it allows you to create/modify content and images as well as generate code using the ChatGPT API. The API provides access to large language models.
With this plugin, you can not only edit and generate code, but also perform various content manipulations using OpenAI
ChatGPT . You can use plugin for generate images using
Dall-E2 and
Dall-E3 AI systems. One of the features is the ability to create a database of instructions, which you can easily refer back to whenever needed. Moreover, you have the flexibility to choose from a wide range of models available in the OpenAI ChatBot API, ensuring that your requests are tailored to your specific needs.
S2B AI Assistant is plugin for WordPress powered by any model you can choose from OpenAI API platform
https://platform.openai.com/docs/models .
You can log conversations between AI chatbot and visitors of your website.
Features
- AI powered chatbot
- Multiple different chatbots with different style and behavior for different website pages
- Content aware AI chatbot using Assistant API, better use gpt-4-turbo-preview, gpt-4
- Content aware AI chatbot using RAG via embedding content
- Conversation Logging. Recording and saving chat interactions between users and the chatbot
- Personalize the appearance of the chatbot: colors, styles, text
- Personalize view of chatbot using custom css (additional feature for each chatbot)
- Personalize behavior of the chatbot: model, instruction, temperature, tokens, etc.
- Option to choose if the chatbot is only visible to registered visitors or not
- Is possible to select position, size of chatbot's window
- Dynamic update of models directly from OpenAI
- Select any model which to use in plugin
- Plugin can generate images
- Correct any grammatical errors
- Rewrite sentences
- Summarizing
- Finish the sentence
- Improve your writing skills
- Engaging questions
- Answering All Inquiries
- Create product descriptions
- Intent Recognition
- Code Understanding
- Select any model you want from ChatGpt
- Create a blog intro for your next article
- Create blog outlines
- Change the tone of your sentences
- Create brand names, startup ideas and slogans
- Generate a list of marketing ideas
- Brand story
- Create ad copy for Adwords and Facebook
- Create landing page content
- Change access to different functions of plugin for different user roles
Quick setup:
-Open account at
OpenAI and get API key
-Go to /wp-admin/admin.php?page=s2baia_settings page of this plugin. Input copied API key in the 'Open AI Key:' field of the ChatGPT tab. You can copy API key on
api keys page
-Switch to Models tab. Click on the 'Refresh from OpenAI' button. It updates models from OpenAI server. Select Models which you want to use. Select the Edit checkbox for models that will be used with chatbots and text manipulation. Select the Expert checkbox for models to be used in the Expert playground. Finally click the Save button. You can now use the S2B AI Assistant plugin.
-You can customize the position, appearance, behavior of the chatbot on the ChatBot configuration page /wp-admin/admin.php?page=s2baia_chatbot. On this page, you can create many chatbots that differ in their appearance, position and behavior.
-To get the chatbot operational, simply insert the shortcode [s2baia_chatbot] to any post or page
-If you want to use different chatbots on different pages, add a shortcode in the format [s2baia_chatbot bot_id=generated_hashcode] to any page or post.
-To add content aware feature using OpenAI Assistant API you need to go to Chatbot page, then click on Assistant API and follows 3 steps:
1.Upload file that will be used as knowledge base by ChatGPT.
2.Create new Assistant by filling instruction and selecting model. For details see below in Content aware feature section below.
3.Add shortcode [s2baia_chatbot bot_id=assistant] to any page, to display Assistant. We tested this feature with different models and found that the best result are when using gpt-4-turbo-preview, gpt-4 and gpt-4-turbo models. Please read
this and
this articles for detailed information.
-Additionally you can create many Assistants inside OpenAI Assistant dashboard and link them with our plugin. Read this
article on how to do it.
Detailed setup and configuration:
Initial configuration.
- Go to Settings page /wp-admin/admin.php?page=s2baia_settings. In the ChatGPT tab fill your API key in the 'Open AI Key:' . You can generate API key on this page: https://platform.openai.com/account/api-keys
- You can fill other fields on this tab or leave them by default.
Chat GPT Models configuration.
3.Switch to Models tab. Click on the 'Refresh from OpenAI' button. It updates models from OpenAI server.
4.Select Models which you want to use in different functions of our plugin. Finally click 'Save' button. Select the Edit checkbox for models that will be used with chatbots and text manipulation. Select the Expert checkbox for models to be used in the Expert playground. Remember that not all models are suitable for chatbots and word processing. That means you can get error response like this one 'This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?' when you try to use them. As of today's date (July 2024) we recommend to select gpt-3.5-turbo, gpt-3.5-turbo-16k-0613, gpt-4 versions, gpt-4-turbo-preview and gpt-4-turbo versions. You can play with selection and deselection models to find best that fit to your needs.
For more information about selecting models
read
AI Chatbot setup.
Open Chatbot menu page in wp-admin. You can see such tabs:
General, Styles, Chatbots,Assitant API, Assistants, Logs and Support. On General, Styles You can customize default behavior, appearance and view of chatbots. In particular you can select ChatBot position, ChatBot size, model, colors of chatbot's elements etc.
If you want to use different chatbots on different pages then create bot in Chatbots tab and then put shortcode in format [s2baia_chatbot bot_id=automatically_generated_hashcode] into any page or post. In addition, the plugin allows you to create AI Assistants using the
Assistants API. You can create Assistants in Assistant API and or in Assitants tabs. Read below on how to do this.
Notice! Chatbot view parameters like position, size, colors are affected by caching. When you found that you have changed chatbot parameters, but view has not changed then try to clear cache then reload page.
Content aware feature for AI chatbot.
OpenAI introduced new
Assistant API which allows it automatically to parse and chunk uploaded documents, to create and to store the embeddings, and use both vector and keyword search to retrieve relevant content to answer user queries. We implemented File Search API feature in our pugin. Before using this on your website, you should remember some important tips:
1.It is Beta feature and not yet tested carefully. Thus it can cause unpredicted behavior. Therefore, we cannot guarantee the chatbot's responses.
2.OpenAI charges additionally besides used conversational tokens. At the moment of release version 1.5.8 of this plugin it costs $0.10 / GB of vector-storage per day (1 GB free) + used tokens during conversation. Please
observe to be informed about pricing updates.
3.The effectiveness and accuracy of the bot's responses depends on the system instructions provided and the models used in the prompts. For detailed information please read
article
To setup content aware chatbot using Assistant API you need to open page Chatbot and select Tab "Assistant API". Then you need to perform 3 steps:
1.Upload file that will be used as knowledge base by ChatGPT.
2.Create new Assistant by filling instruction, selecting model and timeout.
3.Add the shortcode [s2baia_chatbot bot_id="assistant"] to any page you want.
Additionally you can create many assistants manually in the
Assistants OpenAI dashboard and link them to our plugin. For this you need to go to
Assistants OpenAI dashboard and create assistants there. Then copy ID of created assistant. After that, you need to create a new assistant in the plugin Assistants tab.Finally, paste the ID in the Assistant ID field.
Alternatively you can use Completion API
to create content aware chatbot along with RAG by embedding website content.
Starting from version 1.6.4 we added Retrieval-augmented generation (RAG) support to chatbot. So you can use external vector database API and use it in pair with
Embedding API and with
Chat Completion API endpoint to build content aware chatbot. With the right configuration you can have such powerful chatbot like Assistants but with cheaper price. How RAG feature works? Plugin allows to upload content of selected posts or pages from your website into external vector database using their API and generate search database. This vector database is able to do semantic search inside uploaded content. You can attach vector database to chatbot. When visitors ask questions, this chatbot sends a query to the vector database instead of sending it directly to ChatGPT. The vector database returns content that matches the user's query back to your site. The content found by the vector database is then sent to ChatGPT along with the user's query. If the vector database does not find any information that is related to the user's request, you have the option to stop sending the request to ChatGPT and return a message informing the client about the missing content. This way, you can achieve 2 goals:
- Limit sending any requests to ChatGPT that are not related to website content.
- Only send ChatGPT content from your website that is relevant to the user's request. This allows you to reduce the cost of using the Chat Completion API.
For more details of how RAG works see this article. Also you can read this page to get idea on how plugin's RAG feature works.
RAG setup.
1.Open account at
pinecone. Create empty Index there, set the dimension to 1536, and choose cosine for the metric.
2. Get your API KEY from
https://www.pinecone.io/
3.Open RAG wp-admin page of S2B AI Assistant
4.Fill field 'Pinecone API Key:' with API key
5.Click Sync indexes button. It should add your Pinecode Index in Pinecode Index field. Select it in dropdown box.
6.Select Embedding model with 1536 dimension.
7.Select other parameter on this page and click Save button.
8.Go to Pinecone tab and select content pages or posts from left list and add them into right list.
9.Open ChatBot wp-admin page of S2B AI Assistant plugin.
10.Go to 'Chatbots' tab and create new chatbot or select some among created before.
11.Make checked Use embedding (RAG) checkbox and select pinecone in Select index (RAG) field in chatbot configuration.
12.Click Save button
13.Put chatbot's shortcode to any page or post on your website
14.Try to use
More detailed instruction on how to set up RAG feature you can fin on this
page.
Image generation setup.
Image generation feature requires only API key. It is ready to use by default. You can configure generation options on the Image Generation tab. On the same tab you can generate and store new images using Dall-e-2 and Dall-e-3 models.
Instruction setup.
Select page types you want to display metabox of the S2B AI assistant plugin at the configuration page.
Select models you want to use in the S2B AI assistant plugin.
The S2B AI assistant plugin enables you to create and manage instructions for ChatGPT. You can store these instructions in a database and use them in your requests. To access the instructions, simply switch to the "Instructions" tab. From there, you can add, edit, delete, enable, or disable instructions. Additionally, you can search for specific instructions by entering text in the "Search Instructions" input box.
For additional instructions and ideas, please visit our
page or
OpenAI best practice page
Post types setup.
The S2B AI Assistant plugin is accessible by default in the metabox displayed beneath the edit area for two post and page types. However, if desired, you have the option to enable it on other post types' edit pages. To do so, navigate to the General setup tab and select the desired post types.