Recent

bsearch_ai_question_askedactionPro only

bsearch_ai_question_asked

Fires after AI answers answers a question, or finds no answer.

Not fired when the visitor limit, daily cap, a provider error or invalid model output stopped the request, or when the same visitor repeats a question within an hour and gets the cached answer.

Type: action
Since: 4.5.0
Source: includes/pro/ai/class-ask-handler.php line 433

Parameters

Type Name Description
string $question Question.
array $result Result with answered, answer and sources.
bool $cached Whether the result came from the cache.

Usage

add_action( 'bsearch_ai_question_asked', function($question, $result, $cached) {
    // ...
} );