Actions8
Upsert Lead
AI-generatedSummary
Create or update a lead via POST to /api/integrations/lead_upsert.php
Inputs
- id — Lead ID; included in payload if greater than 0
- manychatId — ManyChat ID; included if provided
- nome — Lead name; included if provided
- telefone — Lead phone; included if provided
- origemId — Origin ID; included if provided
- fluxoId — Flow ID; included if provided
- responsavelId — Responsible party ID; included if greater than 0
- responsavelNome — Responsible party name; included if provided
- motivo — Reason/motive; included if provided
- numero_origem — Origin number; included if provided
Output shape
API response JSON from the lead upsert endpoint, returned as n8n main item data paired with item index
Payload is built by
buildLeadPayload(i, true): identifiers (id > 0, manychatId) and optional fields (nome, telefone, origemId, fluxoId, responsavelId > 0, responsavelNome, motivo, numero_origem) are included only when they have a truthy/falsy value per the source implementation.