Update Lead
Leads
Update Lead
Patch a lead row mid-workflow. The morning-loop fix — record sent_at the instant you fire the email so the next iteration’s filter excludes the row.
PATCH
Update Lead
Body
Pass any subset ofstatus, reply_outcome, replied_at, sent_at, send_variant, scorecard_score, contact_id, features, fields.
Response
The morning-loop pattern
This is the canonical n8n shape for chasing non-responders.- Pull the batch.
GET /v2/leads?list_id=...&sent_before=2d&has_replied=false. - Loop over each row. Draft the follow-up via your prompt of choice.
- Send the email through Smartlead, Lemlist, or Gmail.
- Immediately PATCH the row.
{ "sent_at": "<now>", "status": "sent" }. The next iteration’s filter excludes the row. - Also write an observation against the entity with the upstream
message_idasexternal_id. The async webhook from your sending tool will arrive minutes later and hit the sameexternal_id, so the activity is recorded once.
external_id makes the double-write safe.