You can try to use code like this:
add_action( 'wp_enqueue_scripts', 'aws_wp_enqueue_scripts', 999 );
function aws_wp_enqueue_scripts() {
$block_name = 'Popular Requests';
$links = array(
'request 1', 'request 2', 'request 3'
);
$block = '';
$block .= "<div class='aws-suggestions aws_results style-inline'>";
$block .= "<span style='display:block;padding: 15px;border-bottom: 1px solid #ccc;font-weight:700;'>" . $block_name . "</span>";
foreach ( $links as $link ) {
$block .= "<div class='aws_result_item'>";
$block .= "<a href='#'>" . $link . "</a>";
$block .= "</div>";
}
$block .= "</div>";
$script = '
function aws_results_html( html, options ) {
if ( ! html.includes("aws-suggestions") ) {
html = "'. $block .'" + html;
}
return html;
}
document.addEventListener("awsLoaded", function() {
AwsHooks.add_filter( "aws_results_html", aws_results_html );
});
';
wp_add_inline_script( 'aws-script', $script);
wp_add_inline_script( 'aws-pro-script', $script);
}