// Step 1: Find target companies
const companies = await canvas.companies.find({
industries: ["SaaS", "Fintech"],
employeeCountMin: 50,
employeeCountMax: 500,
countries: ["United States"],
limit: 50,
});
// Step 2: Find decision makers
const people = await canvas.people.search({
companies,
titles: ["CTO", "VP Engineering", "Head of Engineering"],
maxPerCompany: 2,
});
// Step 3: Get contact info
const contacts = await canvas.contacts.enrich({ people });
// Step 4: Personalize each contact
for (const contact of contacts) {
contact.ice_breaker = await canvas.ai.research({
prompt: "Write a 1-sentence personalized opener referencing their company or role.",
data: contact,
});
}
return contacts;