'https://127.0.0.1/api/wevia-exec.php?m=' . urlencode($_wm), CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_HTTPHEADER => ['Host: weval-consulting.com'], CURLOPT_TIMEOUT => 25 ]); $r = curl_exec($ch); curl_close($ch); $d = json_decode($r, true); if ($d && isset($d['response'])) { header('Content-Type: application/json'); die(json_encode([ 'success' => true, 'response' => $d['response'], 'provider' => 'wevia-exec', 'action' => 'executed', 'functions_loaded' => 12 ])); } } // NOT an action — pass through to chatbot (it will re-read from global)