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.
// 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
-
/** * 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 ); -
/** * Filter the order attribution window. */ apply_filters( 'sellai_attribution_window_days', self::ATTRIBUTION_DAYS ); -
/** * 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 ); -
/** * Filter the client IP used for rate-limiting. */ apply_filters( 'sellai_client_ip', $ip ); -
/** * Filters the A/B test variant of a conversation that starts now. */ apply_filters( 'sellai_conversation_ab_variant', '', $session_id ); -
/** * Render a tab registered through the 'sellai_data_tabs' filter. */ do_action( 'sellai_data_render_tab', $tab ); -
/** * Filter feature gate for a specific Pro feature. */ apply_filters( "sellai_feature_{$feature}", $default ); -
/** * 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, ] ); -
/** * 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 ); -
/** * Filters the maximum number of product cards per chat answer. */ apply_filters( 'sellai_product_card_limit', $limit, $stage, $context ); -
/** * 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'], ] ); -
/** * 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 ); -
/** * Filter the order statuses counted as chat-assisted orders / revenue. */ apply_filters( 'sellai_revenue_order_statuses', $statuses ); -
/** * 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 ); -
/** * Filter to define custom search synonyms. */ apply_filters( 'sellai_search_synonyms', [] ); -
/** * 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() ); -
/** * Renders an add-on Settings tab registered through sellai_settings_tabs. */ do_action( 'sellai_settings_render_tab', $tab, $opts ); -
/** * Filters the extra tabs of the Settings page. */ apply_filters( 'sellai_settings_tabs', [] ); -
/** * Fires when an answer was classified with a purchase stage. */ do_action( 'sellai_stage_detected', $stage, $session_id, $previous ); -
/** * 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 ); -
/** * 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 ); -
/** * Filters the sections of the chat system prompt before they are joined. */ apply_filters( 'sellai_system_prompt_sections', $sections, $context ); -
/** * 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 ); -
/** * Count an A/B test impression reported by the widget. */ apply_filters( 'sellai_track_ab_impression', false ); -
/** * Filter the widget event limits per hour. */ apply_filters( 'sellai_track_rate_limits', self::TRACK_LIMITS ); -
apply_filters( 'sellai_frontend_enabled', true ); -
apply_filters( 'sellai_managed_tables', [ 'sellai_chat_logs','sellai_conversions','sellai_leads','sellai_search_index' ] ); -
apply_filters( 'sellai_data_tabs', $builtin ); -
apply_filters( 'sellai_default_options', $defaults ); -
apply_filters( 'sellai_expand_synonyms', $expanded, $all_keywords ); -
apply_filters( 'sellai_frontend_config', $config ); -
do_action( 'sellai_lead_captured', $email, $name, $context, $session_id ); -
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... ); -
apply_filters( 'sellai_relevance_score', $score, $pid, $query_data, $candidate ); -
apply_filters( 'sellai_sanitize_settings', $out, $tab, $in ); -
apply_filters( 'sellai_search_ai_tabs', [ 'index' => __( 'Search Index', 'sell-ai-chatbot-for-woocommerce' ), 'synonyms' => __( 'Synonyms', 'sell-ai-chatbot-for-woocommerce' ), ] ); -
apply_filters( 'sellai_search_candidates', $candidates, $user_query, $analysis ); -
apply_filters( 'sellai_show_upgrade_banners', true ); -
apply_filters( 'sellai_stem_suffixes', $suffixes, $lang ); -
apply_filters( 'sellai_stop_words', array_unique( $words ), $lang ); -
do_action( 'sellai_synonyms_ai_tools' ); -
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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: