'', 'api_key' => '', 'domain' => '', 'language' => 'en', 'supported_languages' => 'en,fr,de,es', 'server_url' => 'https://evie.askeveai.com', 'specialist_id' => '1' // Added specialist_id parameter ); // Merge provided attributes with defaults $atts = shortcode_atts($defaults, $atts, 'eveai_chat'); // Sanitize inputs $tenant_id = sanitize_text_field($atts['tenant_id']); $api_key = sanitize_text_field($atts['api_key']); $domain = esc_url_raw($atts['domain']); $language = sanitize_text_field($atts['language']); $supported_languages = sanitize_text_field($atts['supported_languages']); $server_url = esc_url_raw($atts['server_url']); $specialist_id = sanitize_text_field($atts['specialist_id']); // Sanitize specialist_id // Generate a unique ID for this instance of the chat widget $chat_id = 'chat-container-' . uniqid(); $output = "
"; $output .= ""; return $output; } add_shortcode('eveai_chat', 'eveai_chat_shortcode');