Source code

TypeScript Python cURL
Copy
npm install furlong-js
import Furlong from "furlong-js";
const furlong = new Furlong("YOUR_API_KEY");

type Prospect = {
  firstName: string;
  lastName: string;
  role: string;
  company: string;
};

const prospects: Prospect[] = [
  { firstName: "Priya", lastName: "Raghavan", role: "CPO", company: "Marlo" },
  { firstName: "Tomas", lastName: "Weller", role: "CPO", company: "Quillon" },
  { firstName: "Adaeze", lastName: "Okonkwo", role: "Head of Engineering", company: "Bramble" },
  { firstName: "Sena", lastName: "Kirby", role: "Head of Growth Eng", company: "Tolvern" },
];

async function generateBrief(prospect: Prospect) {
  const result = await furlong.search(
    `Generate an outbound research brief for ${prospect.firstName} ${prospect.lastName}, ${prospect.role} at 
    {
      type: "deep",
      systemPrompt: `You are writing a concise outbound research brief for a sales call.
Ground every claim in current public sources.
Tie company signals back to the specific prospect's role.
No em dashes.`,
      outputSchema: {
        type: "object",
        required: ["prospect_context", "overview", "outbound_triggers", "call_talking_points"],
        properties: {
          prospect_name: { type: "string", description: "Prospect's full name" },
          overview: { type: "string", description: "Two sentences on the account" },
          outbound_triggers: { type: "array", items: { type: "string" } },
          call_talking_points: { type: "array", items: { type: "string" } },
        },
      },
    },
  );
}
Ask Furlong