AI Marketing, Site Insight and asset cache hooks

On this page

These modules cover Reach / Sell and Learn in the Growth Loop, plus the chatbot's front-end performance.

AI Marketing

Prefix qcld_wpbot_marketing/; the Master module adds qcld_wpbot_marketing_pro/.

Contacts and lists

HookTypeParametersWhat it is for
qcld_wpbot_marketing/contact_createdactionarray $contact, string $sourceA new contact was added
qcld_wpbot_marketing/contact_confirmedactionarray $contactA contact confirmed double opt-in
qcld_wpbot_marketing/contact_status_changedactionarray $contact, string $old, string $by (owner, chatbot, link …)A contact's status changed
qcld_wpbot_marketing/contact_unsubscribedactionarray $contact, $sourceA contact unsubscribed
qcld_wpbot_marketing/contact_deletedactionarray $contactA contact was deleted
qcld_wpbot_marketing/list_addedactionint $contact_id, int $list_id, string $originA contact joined a list or tag
qcld_wpbot_marketing/list_removedactionint $contact_id, int $list_idA contact left a list or tag
qcld_wpbot_marketing/chatbot_leadactionint $contact_id, array $lead, array $resultA chatbot lead became a contact
qcld_wpbot_marketing/form_submittedactionint $contact_id, int[] $groups, string $page, string $form, array $extra (phone, SMS consent)Someone used a sign-up form ($form is '' for [wpbot_subscribe])
qcld_wpbot_marketing/subscribe_responsefilterarray $response, $result, $formThe answer a sign-up form shows

Sending

HookTypeParametersWhat it is for
qcld_wpbot_marketing/sendfilternull, array $built (to, subject, html, headers), array $context (message_id, campaign_id, journey_id, kind)Send the email through your own provider: return true, array( 'id' => … ) or a WP_Error. null lets wp_mail() send
qcld_wpbot_marketing/may_sendfilterbool $allowed, array $contact, array $contextStop one email to one contact
qcld_wpbot_marketing/email_htmlfilterstring $html, array $contact, array $emailThe email's HTML before sending
qcld_wpbot_marketing/email_sentactionint $message_id, int $contact_id, array $rowAn email was sent
qcld_wpbot_marketing/email_engagementactionint $message_id, int $contact_id, string $type (open or click), array $data, array $messageAn email was opened or a link clicked

Journeys

HookTypeParametersWhat it is for
qcld_wpbot_marketing/journey_triggersfilterstring[] $triggersJourney triggers: subscribed, list_added, tag_added, chatbot_lead, form_submitted
qcld_wpbot_marketing/journey_actionsfilterstring[] $actionsSteps a journey can take

Example: copy new subscribers to another system

add_action( 'qcld_wpbot_marketing/contact_created', function ( $contact, $source ) {
	error_log( 'New WPBot contact from ' . $source );
}, 10, 2 );

Site Insight

Prefix qcin/; the Pro module adds qcin/pro/. Recordings and heatmaps stay on your own server.

HookTypeWhat it is for
qcin/should_trackfilterFinal decision whether to add the tracker to a request
qcin/tracker_configfilterSettings sent to the browser
qcin/default_mask_selectorsfilterAreas hidden in recordings by default (WooCommerce account, order and address pages)
qcin/allowed_query_paramsfilterQuery parameters kept in stored addresses
qcin/allowed_originsfilterExtra hosts the recording endpoint accepts
qcin/is_botfilterBot detection
qcin/countryfilterCountry code when no CDN header gives one
qcin/privacy_policy_textfilterSuggested privacy policy text
qcin/capabilityfilterCapability per context: view (screens) and settings
qcin/signal_recordedactionA frustration signal was stored (signal, session id, page view id)
qcin/session_finalizedactionIdle sessions were closed (session ids)
qcin/ai_summary_createdactionAn AI visit summary was stored
qcin/report_sectionsfilterExtra sections in the email report (totals only)
qcin/report_emailfilterThe report email just before it is sent
qcin/report_sentactionA report was sent
qcin/raw_click_daysfilterDays raw clicks are kept (1–90, default 7)

Hide parts of a page from recordings

Add the class qcin-mask to mask an element's text, or qcin-block to leave the element out of recordings entirely; qcin-unmask shows text inside a masked area. Every form input is already masked in the browser before anything is sent.

Browser API

After the tracker has loaded, window.qcInsights offers:

CallWhat it does
qcInsights.event( name, data )Record your own event in the visit
qcInsights.tag( key, value )Tag the visit, for example a plan or an A/B variant
qcInsights.on( name, fn )Listen to tracker events
qcInsights.getContext()Read the current visit context
qcInsights.stop()Stop tracking on this page

Asset cache

The asset cache serves smaller copies of the chatbot's own scripts and styles (WPBot Pro → ChatBot → Performance).

Hook / function / constantTypeWhat it is for
wpbot_asset_cache()functionThe module: is_active(), clear(), rebuild(), get_status()
wpbot_asset_cache_handlesfilterAdd or remove script and style handles the cache may process (['script' => [], 'style' => []])
wpbot_asset_cache_skipfilter( $skip, $handle, $type ): leave one file untouched
wpbot_asset_cache_dirfilter( ['path' => …, 'url' => …], $package ): move the cache folder
wpbot_asset_cache_minifiedfilter( $code, $handle, $type ): adjust a file before it is written
wpbot_asset_cache_clearedaction( $deleted ): the cache was cleared
qcld_wpbot_ao_detected_pluginsfilterCaching plugins WPBot detected (slug => name)
WPBOT_ASSET_CACHE_DISABLEconstantSet to true in wp-config.php to force the asset cache off

See Caching, optimisation plugins and CDNs (WP Rocket, LiteSpeed and more).

Availability

  • AI Marketing core hooks: every edition, including WPBot Free. qcld_wpbot_marketing_pro/ hooks: Master only.
  • Site Insight core hooks and the browser API: every edition, including WPBot Free. qcin/pro/ hooks: Professional and Master.
  • Asset cache: every edition, including WPBot Free. The "Load chat engine" and "Save colours and bot settings as files" options come with every WPBot Pro edition.

Got more questions?

Contact our ChatBot Support Heroes. They’ll provide you with all the information you need.

Contact us

Customer support is very responsive and professional. The script is awesome and with many features, including A.I. from Dialogflow. High quality.

Newpolaris

If have a 7 Stars won’t hesitate to rate that chatbot as a 7stars+++ Very helpful prompt team support Cannot find enough words express my happiness for purchasing that CHATBot Good Luck for you and your items

Ahsmartsolutions

© 2002- 2026 QuantumCloud

Black Friday! Use coupon code monster for a discount during checkout!

DISCOUNT!

X
Let's chat if you need any help finding the right product or need support.
FAQSend Us Email