Skip to content
Proud to collaborate with Microsoft for Startups

regulado.lead.capture-email ​

Capture an interested-buyer email from the /avise-me form; insert into pre_launch_emails; deduplicate on email

Capture an interested-buyer email submitted from the /avise-me form.

Inserts into pre_launch_emails table. Deduplicates on email. Returns is_duplicate=false for new leads, is_duplicate=true for previously captured emails.

Migration dependency: pre_launch_emails table must exist before this workflow can reach COMPLETED. The founder lands the migration separately.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-regulado
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
emailstringYes—Buyer email address; must be valid format
product_refstringYes—Product identifier, e.g. 'posto.regulado.com.br'
sourcestringNo—Traffic source, e.g. 'google-ads-pec-6x1'

Output Schema ​

FieldTypeRequiredDefaultDescription
lead_uuidstringNo——
inserted_atstringNo——
is_duplicatebooleanNo——
failure_reasonstringNo——
emailstringNo——
product_refstringNo——
sourcestringNo——
errorstringNo——
error_typestringNo——
failed_at_statestringNo——
failed_layerstringNo——
failed_stepstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeAccepted; about to write lead to DB
completedNoYesYes—Lead captured or deduplicated
failedNoYesNo—Validation or DB error

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "regulado.lead.capture-email",
  "initial_data": {
    "email": "value",
    "product_ref": "value"
  }
}