Hello Geleosan (@geleosan),
Apologies as this slipped through the cracks.
I’ve been working hard on improving content awareness.
If you’re using an Assistant, you can (as of Version 2.2.7) include a function to search for relevant content to answer visitor questions.
You will want to include the following in a function in your OpenAI Assistant:
query_wordpress_api (function definition)
{
"name": "query_wordpress_api",
"description": "Calls a WordPress Rest API endpoint to query the WordPress database for post and page content that might answer the user's questions.",
"strict": false,
"parameters": {
"type": "object",
"required": [
"endpoint",
"query",
"include_excerpt",
"page",
"per_page"
],
"properties": {
"endpoint": {
"type": "string",
"description": "The URL of the WordPress Rest API endpoint"
},
"query": {
"type": "string",
"description": "Search query to filter posts and pages"
},
"include_excerpt": {
"type": "boolean",
"description": "Flag indicating whether to include excerpts in the response"
},
"page": {
"type": "number",
"description": "Pagination parameter to specify which page of results to retrieve"
},
"per_page": {
"type": "number",
"description": "Number of results to return per page"
}
}
}
}
OpenAI Assistants can now use the one function. For security purposes, the assistant must be “registered” in the Kognetiks Chatbot lists of Assistants on the GPT Assistants tab. This will limit unanticiapated use.
The function should be entered into the Assistant’s “Functions” section.
Click the “+ Functions” button, then copy/paste the function from above, then click the “Save” button.
Once you’ve added the Assistant to a page in your website, ask it a question that your content is likely to be able to answer it.
Let me know what you discover.
Best!
Stephen
-
This reply was modified 10 months, 4 weeks ago by
kognetiks.