v1.0 • Lead Management
Learn how to set up your first webhook in just a few minutes.
Set up an HTTP endpoint in your application to receive webhook notifications.
// Example Express.js endpoint
app.post('/webhook/pollybot', (req, res) => {
const payload = req.body;
// Process the webhook data
if (payload.event === 'LEAD_CREATED') {
const lead = payload.data;
// Handle new lead...
}
res.status(200).json({ received: true });
});Add your webhook URL in your chatbot settings.
Verify webhooks are working by creating a test lead.
http://localhost:3000/api/test-webhook