Loading ROIzilla...
Loading ROIzilla...
Programmatic lead capture, event subscriptions, custom provider adapters, and agent tool execution.
import { ROIzilla } from "@roizilla/sdk";
const client = new ROIzilla({ apiKey: process.env.ROIZILLA_API_KEY });
// Capture lead from custom API endpoint
const lead = await client.leads.create({
workspaceId: "ws_summit_electrical",
contact: {
name: "John Smith",
phone: "+12035550192",
email: "john@example.com"
},
serviceIntent: "Emergency Electrical Panel Tripping",
source: {
channel: "google_ads",
gclid: "Cj0KCQiA..."
}
});
console.log("Triggered Speed-to-Lead Workflow:", lead.workflowRunId);Manage contacts, leads, appointments, estimates, and invoices programmatically.
Subscribe to events like lead.created, call.missed, appointment.booked, and invoice.paid.
Expose internal company endpoints as callable tool contracts for ROIzilla agents.
Start with one customer journey, connect the tools you already use, and turn the operating gaps between them into visible workflows.
Begin with lead response, customer conversations, scheduling, revenue operations, or a complete workspace plan.