How it works?
This site is built with PHP, Bootstrap 5 for responsive design, and native JavaScript for interactions. Dynamic content (reviews, contacts, articles) is managed via the Notion API in real-time, and automations (emails, lead qualification) run on n8n. Discover below how each piece fits together.
The Tech Stack
What you see here is the actual SlapIA project open in VS Code. The file tree on the left shows the code structure: the api/ folder contains backend scripts (contact, live-counter, satisfaction), assets/ holds CSS, images, JavaScript (carousel, matrix, ROI calculator) and translation files (fr.json / en.json). The open file is the French translation file, where each key maps to a text on the site. Everything is structured manually, no heavy framework — pure vanilla PHP and native JavaScript.
Notion as Database (Headless CMS)
Instead of a traditional SQL database, we use Notion as our database in a Headless architecture. The screenshot shows the 'Contact SiteWeb' database in our Notion workspace, with columns: First Name, Last Name, Email, Message, and Creation Date.
How it works:
1. Each contact form submission on the site sends data directly to this Notion database via the API.
2. A PHP script connects to the Notion API to read and write data in real-time.
3. The site caches results for instant display.
This system also handles client reviews, articles, and tracking — everything is centralized in Notion, no code changes needed.
Data is centralized. But who processes it intelligently?
The Autonomous AI Agent (n8n)
Our site features a conversational AI agent built in n8n. When a visitor asks a question via chat, the message is captured by a trigger and sent to an AI Agent powered by Google Gemini Flash.
How it works:
1. The agent has conversational memory (Simple Memory) to keep discussion context.
2. It's connected to 7 HTTP tools that let it query each page of the site in real-time (Home, Training, Companies, Expertise, Contact, How-it-works, Legal).
3. The agent analyzes the question, queries the right pages, and crafts a personalized response based on the site's actual content.
- Chat Trigger & AI Agent
- Google Gemini Flash
- 7 HTTP Tools (site pages)
The AI agent responds. But emails are automated too.
Automated Email Management
Every client interaction triggers an intelligent email flow, fully automated via n8n. From initial contact to the final thank-you, no email is sent manually. The system adapts at each stage of the client journey to send the right message, at the right time, to the right person.
- #1 Web Form — As soon as a prospect fills out the contact form, a notification email is sent to the team + a confirmation email to the client.
- #2 ERP Registration — Upon registration in the Notion ERP, a welcome email is automatically sent if the contact is validated.
- #3 Satisfaction Survey — After training, a review request email is automatically sent to the client.
- #4 Publication & Thank You — When the review is published on the site, a thank-you email is sent to the client with a link to their testimonial.
Every email is sent automatically. And what about client reviews?
Verified Reviews System (Notion ERP)
Total transparency. The reviews displayed on the site come directly from our clients via their personal space on our Notion ERP. No intermediate moderation, just the truth from the field. As soon as a client finishes a training and fills out their satisfaction form, the site is updated.
Verified by Notion
Want to see all this in action? Let's talk.
Get in TouchThe Matrix Secret
This site hides an underground layer... Developers know it: code is everywhere. If you want to see behind the scenes, type the word MATRIX now. Warning, there is no going back.