b2b-sales-run
Research companies and generate personalized sales outreach using AI-powered B2B sales strategies.
Instructions
Run the B2B Sales agent — researches a company and generates personalized sales outreach.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyName | Yes | Target company name | |
| companyWebsite | Yes | Target company website URL | |
| strategy | No | Sales strategy or approach |
Implementation Reference
- src/tools/agents.ts:41-62 (handler)The "b2b-sales-run" tool registration and handler implementation. It uses the `client.agents.run` method to invoke the "b2b-sales" agent logic.
server.tool( "b2b-sales-run", "Run the B2B Sales agent — researches a company and generates personalized sales outreach.", { companyName: z.string().describe("Target company name"), companyWebsite: z.string().describe("Target company website URL"), strategy: z.string().optional().describe("Sales strategy or approach"), }, async (params) => { try { const result = await client.agents.run("b2b-sales", { companyName: params.companyName, companyWebsite: params.companyWebsite, strategy: params.strategy, }); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, );