Recent

wzkb_ai_question_askedactionPro only

wzkb_ai_question_asked

Fires after Ask the Docs 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: 3.2.0
Source: includes/pro/ai/class-ask-handler.php line 399

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( 'wzkb_ai_question_asked', function($question, $result, $cached) {
    // ...
} );