IntegrationsModule 04
Email & notifications
What one submit sets off
Validation passed
Name and email checked before anything else runs.
Database row created
insert into messages (name, email, body) — saved first, so nothing is lost.
Emails sent
Confirmation to the submitter, notification to the team inbox.
Team channel pinged
Webhook posted to #new-leads so a human sees it within seconds.
Confirmation shown
Success state rendered and the form cleared to prevent double submits.
Reaching the human after the save: a confirmation to the submitter, a notification to you.
What makes this work
01
From
Who it is from and why it arrived
02
One action
A single obvious next step
03
Fire after save
A failed email never loses the lead
Related concepts