WEVIA Stack Q4 #17 · Agile Studio

Architecture commerciale lead-to-revenue · Doctrine D577 a D612 · 500K EUR/an cible

Pipeline lead-to-revenue

1
Landing
/weval-agile-studio.html
Form lead capture
LIVE
2
POST capture
/api/agile-studio-lead.php
Sanitize + validate
LIVE
3
CRM insert
crm.leads
PostgreSQL S95
LIVE
4
Email notif
Postfix mail()
contact@weval-consulting.com
LIVE
5
Stripe Pay
Payment Links
Pilot 4500 / Enterprise 18500
TODO
6
Webhook Stripe
/api/stripe-webhook-leads.php
HMAC verify
LIVE
7
Status update
crm.leads status
new -> converted
LIVE
8
Cockpit
/crm-leads-cockpit.html
MRR/ARR live
LIVE

Composants live

Endpoints LIVE
4
REST/JSON actifs
Pages HTML
2
landing + cockpit
Crons actifs
3
HF + audit + promote
Tables SQL
1
crm.leads (4 indexes)
Doctrines
10
D577 - D612
Intents NL
62+
testables WEVIA chat

Endpoints REST

Live

Lead capture

POST /api/agile-studio-lead.php
Sanitize XSS + email validation + plan whitelist + insert crm.leads + email notif via Postfix
Live

Stripe webhook

POST /api/stripe-webhook-leads.php
HMAC SHA256 verification + UPDATE status (new -> converted/churned) + log /var/log/stripe-webhook.log
Live

Stats CRM

GET /api/crm-leads-stats.php
JSON total + by_plan + by_status + by_source + last_24h + recent_leads + MRR/ARR estimees
Live

HF Trending

GET /wiki/oss-trending-weekly.json
Top 50 modeles HuggingFace trending refresh hebdo dimanche 03h UTC via cron

Crons actifs

ScheduleScriptDoctrine
0 3 * * 0/opt/weval-l99/cron/hf-trending-weekly.shD607
0 */6 * * */opt/weval-l99/cron/intents-audit.shD611
*/5 * * * */opt/weval-l99/cron/auto-promote-pending.shD612

Action restante Yanis (12 minutes total)

5 min

Stripe Payment Links

Stripe Dashboard → Payment Links → Create

1. Pilot 4500 EUR/mo recurring
2. Enterprise 18500 EUR/mo recurring

Copier les URLs vers landing CTA
5 min

Stripe Webhook

Stripe Dashboard → Webhooks → Add endpoint

URL: https://weval-consulting.com/api/stripe-webhook-leads.php
Events: checkout.session.completed, payment_intent.succeeded, customer.subscription.deleted

Copier signing secret
2 min

Add secret to env

/etc/weval/secrets.env

Add line:
STRIPE_WEBHOOK_SECRET=whsec_...

Reload PHP-FPM
WEVIA Stack Q4 #17 · Doctrine D612 · Cockpit live · Landing · Doctrine D611