api:
POST to /api/leads:
{
"name": "Customer Name",
"phone": "+1234567890",
"email": "customer@email.com",
"location": "City, State",
"workType": "Type of work",
"conversationSummary": "AI summary",
"approveMessage": "Pre-crafted approval",
"declineMessage": "Pre-crafted decline",
"rating": 4,
"ratingReason": "Good fit - in our service area with matching work type"
}Sent to CHATBOT_WEBHOOK_URL environment variable:
{
"leadId": "lead-123456789",
"action": "approve" | "decline",
"message": "The edited message content",
"phone": "+1234567890"
}Set the CHATBOT_WEBHOOK_URL environment variable to configure where responses are sent.
to run:
- pnpm install
- pnpm dev