Files
html/api/wevia-v72-intents-include.php
2026-04-18 02:45:01 +02:00

34 lines
1.6 KiB
PHP

<?php
// V72 — Commercial intents V2 (simplifiés)
if (!isset($msg) || !isset($intents)) return;
// SDR outreach
if (preg_match('/\b(outreach|sdr|linkedin.?message|daily.?outreach|cold.?outreach|messages?.?linkedin|contact.*prospects?)\b/iu', $msg)) {
$intents[] = ['id'=>'v72_outreach_daily', 'cmd'=>'bash /var/www/html/api/v72-sdr-outreach.sh 2>&1 | tail -5 && echo "URL: https://weval-consulting.com/downloads/weval-sdr-outreach-$(date +%Y%m%d).md"'];
}
// Pitch page
if (preg_match('/\b(pitch|landing|hero.?page|one.?screen|page.?commercial|sell.?page)\b/iu', $msg)) {
$intents[] = ['id'=>'v72_pitch_status', 'cmd'=>'bash /var/www/html/api/v72-pitch-check.sh'];
}
// Board pack
if (preg_match('/\b(board.?pack|board|slides?|pdf.?pack|pack.?ceo|presentation|deck)\b/iu', $msg)) {
$intents[] = ['id'=>'v72_board_pack', 'cmd'=>'bash /var/www/html/api/v72-board-check.sh'];
}
// Pipeline status
if (preg_match('/\b(pipeline|opportunities?|opps?|pipeline.?commercial|deals|pipe.?status)\b/iu', $msg)) {
$intents[] = ['id'=>'v72_pipeline_status', 'cmd'=>'bash /var/www/html/api/v72-pipeline-status.sh'];
}
// Stop build / Start sell
if (preg_match('/\b(stop.?build|start.?sell|sell.?mode|mode.?commercial|mode.?sell|priorit[eé].?commerciale?|passe.?en.?sell|bascule.?sell)\b/iu', $msg)) {
$intents[] = ['id'=>'v72_stop_build_reminder', 'cmd'=>'bash /var/www/html/api/v72-stop-build.sh'];
}
// Sales Hub (new nav module)
if (preg_match('/\b(sales.?hub|hub.?sales|hub.?commercial|sell.?hub|commercial.?center)\b/iu', $msg)) {
$intents[] = ['id'=>'v72_sales_hub_status', 'cmd'=>'bash /var/www/html/api/v72-sales-hub.sh'];
}