n8n

Workflows n8n

Le socle expose un webhook entrant pour creer une tache et un endpoint sortant pour preparer une demande de validation WhatsApp.

Resolution mailbox : supabaseMailbox id : non resolueCreation auto : nonAucune boite active n'a encore ete resolue pour ce webhook.

Webhook entrant

{
  "payload": {
    "organizationId": "org_adminbtp_001",
    "projectId": "project_001",
    "title": "Relancer les pieces manquantes",
    "description": "Document manquant detecte sur la situation mensuelle.",
    "sourceEmail": "client@adminbtp.yt",
    "mailboxAddress": "client@adminbtp.yt",
    "senderEmail": "conducteur@groupement-tce.fr",
    "senderName": "Conducteur TCE",
    "subject": "Relancer les pieces manquantes",
    "bodyText": "Document manquant detecte sur la situation mensuelle.",
    "externalMessageId": "msg_inbound_001",
    "classification": "payment_followup",
    "persistEmail": true,
    "autoCreateMailbox": true,
    "mailboxDisplayName": "Boite client AdminBTP",
    "mailboxProvider": "internal"
  },
  "task": {
    "id": "task_org_adminbtp_001_relancer_les_pieces_manquantes",
    "organizationId": "org_adminbtp_001",
    "projectId": "project_001",
    "title": "Relancer les pieces manquantes",
    "description": "Document manquant detecte sur la situation mensuelle.\nSource email : client@adminbtp.yt",
    "source": "n8n",
    "status": "open"
  }
}

Validation sortante

{
  "signatureRequestId": "signature_request_001",
  "destination": "+262690000000",
  "body": "Validation requise pour le compte rendu chantier.",
  "channel": "whatsapp"
}