#114645·wp-calypso

Feature Request: Custom AI Chat's empty-view heading

Author: ecairolCreated Sep 24, 2026Updated Sep 24, 2026
LabelsNew Feature

What

Reader Chat always shows one of two hardcoded headings: Ask me anything about this post. or Ask me anything about this blog.` There's no way for a site to set its own wording.

Image

Why

We ran into this on a partner's site that wanted Ask me anything about this site. instead.

The only way we found to change it was a workaround: enqueue an inline script after Jetpack's own script that overwrites window.agentsManagerData.emptyViewHeading directly. It works, but it's fragile, it depends on an internal global that isn't meant to be touched from outside, and it'll break silently if that global ever changes shape.


How

Draft Pull Requests:

--

The proposed fix let the heading come from config instead of being hardcoded. In apps/agents-manager/reader-chat.js:

javascript
function getReaderEmptyViewHeading( config ) {
      if ( config?.emptyViewHeading ) {
              return config.emptyViewHeading;
      }

      return getReaderCurrentPost( config )
              ? 'Ask me anything about this post.'
              : 'Ask me anything about this blog.';
}

If emptyViewHeading is set in the config, use it. Otherwise, fall back to the current behavior. No change for anyone who isn't using it.

Note that this approach will need to touch 2 repos: wp-calypso and also jetpack.

This config comes from PHP, in class-jetpack-reader-chat.php (get_reader_chat_config()). Right now, nothing can inject a custom value into it. It just needs to run through a filter before it's sent to the browser:

return apply_filters( 'jetpack_reader_chat_display_config', $config );

With both pieces in place, a theme could set its own heading with a couple lines:

add_filter( 'jetpack_reader_chat_display_config', function ( $display ) {
      $display['emptyViewHeading'] = __( 'Ask me anything!', 'my-theme' );
      return $display;
} );

This approach avoids reaching into globals from the outside.

Pull Requests are currently Drafts because I want to see what the Jetpack team thinks before detailing them and formally opening them as PRs.