Sell.AI Chatbot for WooCommerce icon
AI Tools

Sell.AI Chatbot for WooCommerce hooks reference

Sell.AI Chatbot for WooCommerce 2.0.0 has 9 actions and 34 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Sell.AI Chatbot for WooCommerce fires an action
add_action( 'sellai_data_render_tab', function( $tab ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Sell.AI Chatbot for WooCommerce is about to use
add_filter( 'sellai_ab_testing_available', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/class-sellai-privacy.php line 405
    /**
     * Whether the store can run A/B tests of the assistant (Sell.AI Pro), which
     * adds the 'sellai_ab' cookie to the suggested text.
     */
    apply_filters( 'sellai_ab_testing_available', false );
  • includes/class-sellai-conversion.php line 220
    /**
     * Filter the order attribution window.
     */
    apply_filters( 'sellai_attribution_window_days', self::ATTRIBUTION_DAYS );
  • includes/class-sellai-product-context.php line 1467
    /**
     * Filters one product line of the catalog sent to the AI ("[ID:12] Name |
     * price | … | field:value"). Append " | Field:value" parts; a line break or
     * a removed "[ID:n]" prefix drops the change.
     */
    apply_filters( 'sellai_catalog_product_line', $line, $product );
  • includes/class-sellai-ajax.php line 1572
    /**
     * Filter the client IP used for rate-limiting.
     */
    apply_filters( 'sellai_client_ip', $ip );
  • includes/class-sellai-conversations.php line 198
    /**
     * Filters the A/B test variant of a conversation that starts now.
     */
    apply_filters( 'sellai_conversation_ab_variant', '', $session_id );
  • admin/views/data.php line 218
    /**
     * Render a tab registered through the 'sellai_data_tabs' filter.
     */
    do_action( 'sellai_data_render_tab', $tab );
  • includes/pro-bridge/class-sellai-feature-gate.php line 62
    /**
     * Filter feature gate for a specific Pro feature.
     */
    apply_filters( "sellai_feature_{$feature}", $default );
  • includes/class-sellai-ajax.php line 1306
    /**
     * Filters the answer to a chat message before the FAQ and OpenAI. Return null
     * (default) to let the chat continue as usual.
     */
    apply_filters( 'sellai_pre_chat_reply', null, $user_message, [ 'session_id' => $session_id, 'product_id' => $product_id, ] );
  • includes/class-sellai-product-context.php line 2235
    /**
     * Filters the extra fields of a product card in the chat. Only 'delivery' is
     * read: a plain-text line shown under the stock label (e.g. "Ships today if
     * you order by 14:00"); '' shows none. The other fields cannot be changed
     * here.
     */
    apply_filters( 'sellai_product_card_extra', [ 'delivery' => '' ], $product, $card );
  • includes/class-sellai-product-context.php line 716
    /**
     * Filters the maximum number of product cards per chat answer.
     */
    apply_filters( 'sellai_product_card_limit', $limit, $stage, $context );
  • includes/class-sellai-ajax.php line 1421
    /**
     * Filters the quick-reply options of an answer (already validated; validated
     * again afterwards). Return [] to show none.
     */
    apply_filters( 'sellai_quick_replies', $options, [ 'session_id' => $session_id, 'guided_questions' => SellAI_Session::get_guided_questions( $session_id ), 'has_products' => $out['has_products'], ] );
  • includes/class-sellai-product-context.php line 2407
    /**
     * Filters whether the chat prompt explains the QUICK_REPLIES tag and the
     * parsed options are sent to the widget.
     */
    apply_filters( 'sellai_quick_replies_enabled', false );
  • includes/class-sellai-conversion.php line 168
    /**
     * Filter the order statuses counted as chat-assisted orders / revenue.
     */
    apply_filters( 'sellai_revenue_order_statuses', $statuses );
  • admin/views/search-ai.php line 147
    /**
     * Extension point: Pro renders content for any tab it added via the
     * sellai_search_ai_tabs filter (e.g. 'rag', 'enrichment'). No listeners by
     * default = unreachable, since $tab is only ever a key already present in
     * $tabs.
     */
    do_action( 'sellai_search_ai_render_tab', $tab );
  • includes/class-sellai-synonym-engine.php line 85
    /**
     * Filter to define custom search synonyms.
     */
    apply_filters( 'sellai_search_synonyms', [] );
  • admin/views/settings.php line 855
    /**
     * Extension point (G): Pro can render extra settings cards for the active tab.
     * No listeners by default = nothing rendered, form output unchanged. Fired
     * before the Save bar (regardless of which tab is active, same as before) so
     * Pro's cards (e.g. Smart Triggers on the Advanced tab) group with their
     * sibling cards instead of appearing detached below Save.
     */
    do_action( 'sellai_settings_after_tab', $tab ?? '', $opts ?? array() );
  • admin/views/settings.php line 842
    /**
     * Renders an add-on Settings tab registered through sellai_settings_tabs.
     */
    do_action( 'sellai_settings_render_tab', $tab, $opts );
  • includes/class-sellai-options.php line 272
    /**
     * Filters the extra tabs of the Settings page.
     */
    apply_filters( 'sellai_settings_tabs', [] );
  • includes/class-sellai-ajax.php line 1473
    /**
     * Fires when an answer was classified with a purchase stage.
     */
    do_action( 'sellai_stage_detected', $stage, $session_id, $previous );
  • includes/class-sellai-product-context.php line 2391
    /**
     * Filters whether the chat prompt asks for a STAGE tag and the answer is
     * classified as browsing / comparing / deciding / ready (same API call).
     */
    apply_filters( 'sellai_stage_detection_enabled', false );
  • includes/class-sellai-product-context.php line 680
    /**
     * Filters the complete chat system prompt built from the store settings and
     * the product catalog. Not applied to the product comparison prompt. The cart
     * / history context and the response strategy are added around it afterwards
     * by SellAI_Ajax.
     */
    apply_filters( 'sellai_system_prompt', $prompt, $context );
  • includes/class-sellai-product-context.php line 656
    /**
     * Filters the sections of the chat system prompt before they are joined.
     */
    apply_filters( 'sellai_system_prompt_sections', $sections, $context );
  • admin/views/system.php line 187
    /**
     * Extension point: Pro renders content for any tab it added via the
     * sellai_system_tabs filter (e.g. 'license'). No listeners by default =
     * unreachable, since $tab is only ever a key already present in $tabs.
     */
    do_action( 'sellai_system_render_tab', $tab, $diag );
  • includes/class-sellai-conversion.php line 583
    /**
     * Count an A/B test impression reported by the widget.
     */
    apply_filters( 'sellai_track_ab_impression', false );
  • includes/class-sellai-conversion.php line 668
    /**
     * Filter the widget event limits per hour.
     */
    apply_filters( 'sellai_track_rate_limits', self::TRACK_LIMITS );
  • public/class-sellai-frontend.php line 16 · used in 3 places
    apply_filters( 'sellai_frontend_enabled', true );
  • admin/class-sellai-admin.php line 412 · used in 2 places
    apply_filters( 'sellai_managed_tables', [ 'sellai_chat_logs','sellai_conversions','sellai_leads','sellai_search_index' ] );
  • admin/class-sellai-admin.php line 182
    do_action( 'sellai_admin_menu', 'sellai-dashboard' );
  • admin/class-sellai-admin.php line 302
    apply_filters( 'sellai_data_tabs', $builtin );
  • includes/class-sellai-options.php line 439
    apply_filters( 'sellai_default_options', $defaults );
  • includes/class-sellai-synonym-engine.php line 59
    apply_filters( 'sellai_expand_synonyms', $expanded, $all_keywords );
  • public/class-sellai-frontend.php line 85
    apply_filters( 'sellai_frontend_config', $config );
  • includes/class-sellai-leads.php line 125
    do_action( 'sellai_lead_captured', $email, $name, $context, $session_id );
  • includes/class-sellai-result-ranker.php line 76
    apply_filters( 'sellai_ranking_weights', [ 'title_base' => 150, 'ai_keywords_base' => 100, 'taxonomy_base' => 70, 'ai_desc_base' => 40, 'excerpt_base' => 20, 'content_base' => 10, 'phrase_adjacent' => 30, 'phrase_full' => 50, 'coverage_bonus' => 40, 'coverage_penalty_factor' => 60, 'multi_source_2' => 15, 'multi_source_3' => 25, 'multi_source_4' => 35, 'popularity_max' => 20, 'popularity_factor' => 3, 'recency_bonus' => 5, 'recency_da... );
  • includes/class-sellai-result-ranker.php line 169
    apply_filters( 'sellai_relevance_score', $score, $pid, $query_data, $candidate );
  • includes/class-sellai-options.php line 630
    apply_filters( 'sellai_sanitize_settings', $out, $tab, $in );
  • admin/class-sellai-admin.php line 450
    apply_filters( 'sellai_search_ai_tabs', [ 'index' => __( 'Search Index', 'sell-ai-chatbot-for-woocommerce' ), 'synonyms' => __( 'Synonyms', 'sell-ai-chatbot-for-woocommerce' ), ] );
  • includes/class-sellai-product-context.php line 1099
    apply_filters( 'sellai_search_candidates', $candidates, $user_query, $analysis );
  • sell-ai.php line 91
    apply_filters( 'sellai_show_upgrade_banners', true );
  • includes/class-sellai-query-normalizer.php line 493
    apply_filters( 'sellai_stem_suffixes', $suffixes, $lang );
  • includes/class-sellai-query-normalizer.php line 313
    apply_filters( 'sellai_stop_words', array_unique( $words ), $lang );
  • admin/views/search-ai.php line 94
    do_action( 'sellai_synonyms_ai_tools' );
  • admin/class-sellai-admin.php line 404
    apply_filters( 'sellai_system_tabs', [ 'diagnostics' => __( 'Diagnostics', 'sell-ai-chatbot-for-woocommerce' ) ] );

Generated from Sell.AI Chatbot for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: