$title, 'prompt' => $prompt, 'interactive' => isset($interactive[$i]) ? intval($interactive[$i]) : 0, 'email' => isset($email[$i]) ? intval($email[$i]) : 1, 'email_addresses' => isset($email_addresses[$i]) ? sanitize_textarea_field( wp_unslash( $email_addresses[$i] ) ) : '', ); } } } update_option( 'wpbot_ai_forms', $ai_forms ); if ( isset( $_POST['qcld_ai_default_email'] ) ) { $raw_emails = wp_unslash( $_POST['qcld_ai_default_email'] ); // Sanitize each email individually, preserving comma-separated list $emails = array_map( 'sanitize_email', array_map( 'trim', explode( ',', $raw_emails ) ) ); $emails = array_filter( $emails ); // remove any invalid entries update_option( 'qcld_ai_default_email', implode( ', ', $emails ) ); } update_option( 'enable_ai_interactive_form', '1' ); echo '

' . esc_html__( 'Settings saved.', 'chatbot' ) . '

'; } $saved_forms = get_option( 'wpbot_ai_forms', array() ); // One-time migration: Ensure all existing forms have email enabled by default. $migrated = false; if ( is_array( $saved_forms ) ) { foreach ( $saved_forms as &$f ) { if ( ! isset( $f['email_migrated'] ) ) { $f['email'] = 1; $f['email_migrated'] = 1; $migrated = true; } } if ( $migrated ) { update_option( 'wpbot_ai_forms', $saved_forms ); } } if ( ! is_array( $saved_forms ) ) { $saved_forms = array(); } ?>

Blank Prompt

Start from scratch and build your own custom AI action.

Web Agency Quote

Software, agency, and freelance service inquiries.

Real Estate Inquiry

Qualifying buyers and renters for property showings.

Priority Support

Bug triage and diagnostic data gathering for helpdesks.

SaaS Demo Booking

Lead qualification and sales routing for software platforms.

E-Commerce Wholesale

B2B wholesale pricing and custom merchandise for WooCommerce.

Legal Case Intake

Pre-screening legal leads for practice area viability and deadlines.

Healthcare Booking

Clinic patient scheduling, primary symptoms, and insurance check.

Event Planning

Event venue, banquet, and catering inquiries.

Auto Dealership

Test-drive bookings and vehicle trade-in estimates.

Education Admissions

Online course and bootcamp enrollment qualification.

Senior PHP Programmer Assessment

Screening candidates for a Senior PHP Developer position.