Triggered when a lead accepts your connection request
This event is triggered when a lead accepts your LinkedIn connection request. This is a key milestone indicating the lead is now a 1st-degree connection and can receive direct messages.
app.post('/webhooks/sendpilot', async (req, res) => { const event = req.body; if (event.eventType === 'connection.accepted') { const { leadId, campaignId, linkedinUrl, acceptedAt } = event.data; // Update CRM await crm.updateLead(leadId, { status: 'connected', connectionAcceptedAt: acceptedAt }); // Notify sales team await slack.postMessage({ channel: '#new-connections', text: `🤝 New connection accepted!\n` + `Profile: ${linkedinUrl}\n` + `Campaign: ${campaignId}` }); // The lead is now a 1st-degree connection - follow-up messages // will be sent automatically by the campaign sequence console.log(`Connection accepted by ${linkedinUrl}`); } res.status(200).send('OK');});
When a connection is accepted, the lead becomes a 1st-degree connection. The campaign will automatically proceed to send follow-up messages according to the sequence.