Skip to content
  • LocationSan Pedro, Laguna, Philippines
  • Office hoursMon–Fri, 8:00 AM – 5:00 PM PHT (UTC+8)

For developers: hooks

Sysgage AI ChatVersion 1.1.0Updated November 27, 2026

Filters: sglc_show_widget, sglc_should_index, sglc_index_post_types, sglc_post_sections, sglc_product_facts, sglc_content_is_restricted, sglc_skip_field_pattern, sglc_stopwords, sglc_smalltalk, sglc_wants_human, sglc_pre_answer, sglc_system_prompt, sglc_offtopic_patterns, sglc_abuse_words, sglc_visitor_blocked, sglc_client_ip, sglc_model_prices, sglc_anthropic_request, sglc_openai_request, sglc_agent_payload, sglc_ai_ready, sglc_uses_builder.

Also sglc_upload_mimes (allowed file types: extension pattern to MIME type).

Actions: sglc_conversation_started, sglc_message_added, sglc_handoff_requested, sglc_contact_message, sglc_spam_blocked, sglc_chat_rated (conversation, rating 1 or -1, comment), sglc_settings_saved.

Example: answer a question your own way before anything else runs.

add_filter( 'sglc_pre_answer', function ( $answer, $question ) {
	if ( false !== stripos( $question, 'order status' ) ) {
		return 'You can check your order at <a href="/my-account/orders/">My account → Orders</a>.';
	}
	return $answer;
}, 10, 2 );