Skip to main content

Overview

AI services provide powerful tools for generating content, extracting structured data, and conducting deep research using state-of-the-art language models.

Choosing the Right Tool

Use: Scrape + Generate ObjectPerfect for gathering structured sales intelligence from a prospect’s website. For example:
  • “Who are the decision makers on their team page?”
  • “What products/services does this company offer?”
  • “Extract company size and location from their about page”
const website = ctx.thisRow.get("Website");
const scraped = await services.scrape.website({ url: `${website}/about` });
const data = await services.ai.generateObject({
  prompt: `Extract company info and decision makers: ${scraped.markdown}`,
  schema: z.object({ 
    employee_count: z.string().optional(), 
    decision_makers: z.array(z.object({ name: z.string(), title: z.string() }))
  })
});
Use: Generate Text with Web SearchBest for prospect research that requires searching across multiple sources. For example:
  • “What are the latest funding rounds in the fintech space?”
  • “What challenges is the healthcare industry facing?”
  • “What are recent news about [Company Name]?”
const company = ctx.thisRow.get("Company");
const result = await services.ai.generateText({
  prompt: `What are the latest news, funding, and developments for ${company}?`,
  model: "claude-sonnet-4-5-20250929",
  enableWebSearch: true
});
Use: Generate ResearchFor intensive research on high-value prospects or market analysis. For example:
  • “Comprehensive account research on [Enterprise Prospect]”
  • “Due diligence report on [Company] for enterprise deal”
  • “Complete industry analysis of [Target Market]“
const company = ctx.thisRow.get("Company");
const result = await services.ai.generateResearch({
  query: `Comprehensive research on ${company}: financials, leadership, products, pain points, and buying signals`
});

Available Services

Supported Models

Text Generation

  • gpt-5-mini - Fast and cost-effective
  • claude-sonnet-4-5-20250929 - High quality, balanced performance

Object Generation

  • gpt-5-mini - Fast structured output
  • gemini-2.0-flash - Google’s fast model
  • gemini-2.5-pro - Google’s most capable model
  • claude-sonnet-4-5-20250929 - Anthropic’s latest model

Common Use Cases

Extract Lead Data from Text

// Extract structured lead information from unstructured text
const rawData = ctx.thisRow.get("Raw Contact Info");

const result = await services.ai.generateObject({
   prompt: `Extract contact information from: ${rawData}`,
   schema: z.object({
      name: z.string(),
      email: z.string(),
      phone: z.string().optional(),
      company: z.string().optional(),
      title: z.string().optional(),
   }),
});

ctx.thisRow.set({
   Name: result.object.name,
   Email: result.object.email,
   Company: result.object.company,
});

Generate Personalized Outreach

// Generate personalized cold email for each prospect
const name = ctx.thisRow.get("Name");
const company = ctx.thisRow.get("Company");
const title = ctx.thisRow.get("Title");
const painPoint = ctx.thisRow.get("Pain Point");

const result = await services.ai.generateText({
   prompt: `Write a personalized cold email to ${name}, ${title} at ${company}. 
   Address their challenge: ${painPoint}. 
   Our solution: AI-powered sales enrichment. Keep under 100 words.`,
   model: "gpt-5-mini",
});

return result.text;

Deep Account Research

// Comprehensive research for enterprise deal
const company = ctx.thisRow.get("Company");

const result = await services.ai.generateResearch({
   query: `Research ${company}: recent news, financials, leadership team, 
   products, market position, and potential pain points for sales outreach`,
});

ctx.thisRow.set({
   "Account Intelligence": result.content,
   "Research Cost": result.cost,
});