Content Awareness Isn’t Working

The content awareness works by obtaining the ID of the post on which the user is located and retrieving the content of the page. Therefore, if the modal content is present in the page HTML, it should function correctly. However, depending on certain scenarios, such as using third-party builders or third-party component blocks, it is possible that the content may not be readable.

To ensure content visibility, you can enable the developer tools in the AI Engine settings. In the new tab, utilize the "get content" button to preview what the chatbot will be able to read from your post. Additionally, remember to open your developer's console, as the results will be displayed there.

Notion image
Notion image
 
 
 

If, for legal reasons, you cannot or choose not to use the Queries Data, you can employ a filter in your logs to examine the content of a test query. This will help ensure that the content of the page is indeed present in the query, allowing for a thorough verification process.

 
add_filter( 'mwai_ai_query', function ( $query ) {

  error_log( print_r( $query, true ) );
  // You should look for the "instructions" in the query.
  return $query;
  
}, 10, 2 );
Did this answer your question?
😞
😐
🤩