Bookings Due For A Nudge Or A Close
li_booking_duePeople who AGREED to a call and have not booked, whose check date has arrived — the list the booked-call routine works from. DB-backed and instant.
Each row: name, firstName/lastName, company, companyDomain, headline, accountId/accountLabel, campaignName, bookingLinkSentAt (null = the link has not gone out yet — send it rather than a nudge), agreedDayText, agreedDate, nudgeCount of maxNudges, and nextAction: nudge while nudges remain, else close. Plus thread — the last messages of the stored conversation on that account, oldest first — so the nudge can refer to what they said.
DROPPED and counted in excluded: anyone who wrote after the link or their agreement (they are owed an answer: li_replies_to_answer lists them flagged bookingPending), anyone on a do-not-contact list, anyone on a paused account, and anyone whose verdict was changed by hand. Someone only sent the link, who never agreed, is never here.
Nothing here sends anything. Send a nudge with li_send_reply(bookingNudge: true) and a close with li_send_reply(bookingClose: true) — both re-check every rule and refuse in words.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most rows to return (default 50, max 200); more are flagged | |
| sessionId | No | Limit to one account by id (li_list_accounts). Omit to cover every account you can see. | |
| sessionLabel | No | Scope to one account label | |
| sessionLabels | No | Several accounts in ONE call, by label. Leaving every selector off already spans all your accounts. | |
| threadMessages | No | How many recent messages of each thread to attach (default 8; 0 = none) |