get_outreach_template
Generate country-specific outreach templates in Spanish or Portuguese for cold email campaigns, calibrated to local norms in Latin American markets.
Instructions
Country-specific outreach templates in Spanish (or Portuguese for Brazil). Calibrated to local norms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ||
| channel | Yes |
Implementation Reference
- src/main.ts:154-154 (handler)The handler function for the get_outreach_template tool. Looks up OUTREACH_TEMPLATES by country and channel, returns JSON with module, country, channel, and template data. Throws error if not found.
case "get_outreach_template": { const channel = args?.channel as string; const d = OUTREACH_TEMPLATES[country]?.[channel]; if (!d) throw new Error(`No template for ${country}/${channel}`); return { content: [{ type: "text", text: JSON.stringify({ module: "LATAM Outreach Template", country, channel, ...d }, null, 2) }] }; } - src/main.ts:140-140 (schema)Input schema registration for get_outreach_template. Defines required parameters: country (enum from OUTREACH_TEMPLATES keys) and channel (currently only 'cold_email').
{ name: "get_outreach_template", description: "Country-specific outreach templates in Spanish (or Portuguese for Brazil). Calibrated to local norms.", inputSchema: { type: "object", properties: { country: { type: "string", enum: Object.keys(OUTREACH_TEMPLATES) }, channel: { type: "string", enum: ["cold_email"] } }, required: ["country", "channel"] } }, - src/main.ts:140-140 (registration)Tool registration in ListToolsRequestSchema handler. The tool 'get_outreach_template' is registered with its description and input schema.
{ name: "get_outreach_template", description: "Country-specific outreach templates in Spanish (or Portuguese for Brazil). Calibrated to local norms.", inputSchema: { type: "object", properties: { country: { type: "string", enum: Object.keys(OUTREACH_TEMPLATES) }, channel: { type: "string", enum: ["cold_email"] } }, required: ["country", "channel"] } }, - src/main.ts:80-99 (helper)OUTREACH_TEMPLATES data structure containing cold_email templates for 6 LATAM countries (Mexico, Brazil, Colombia, Argentina, Chile, Peru). Each template includes subject, body, and psychology notes.
const OUTREACH_TEMPLATES: Record<string, Record<string, any>> = { mexico: { cold_email: { subject: "[Empresa] + [Resultado] — vale una llamada?", body: "Hola [Name],\n\nHe estado siguiendo a [Company] y me llamó la atención [observación específica].\n\nTrabajamos con empresas como la suya en [outcome]. Aquí hay un caso reciente: [resultado de cliente].\n\n¿Vale la pena una llamada de 15 minutos?\n\nSaludos cordiales,\n[Your name]", psychology: "Spanish opener + Mexican formal. Vale (worth) is a Mexican-friendly word." } }, brazil: { cold_email: { subject: "Vale uma conversa rápida sobre [topic]?", body: "Olá [Name],\n\nEspero que esteja bem. Acompanhei [Company] e fiquei impressionado com [observação].\n\nTrabalhamos com empresas brasileiras em [resultado]. Recente: [client result].\n\nVale 15 minutos para conversar?\n\nUm abraço,\n[Your name]", psychology: "PORTUGUESE not Spanish. 'Um abraço' (a hug) close is warm and Brazilian." } }, colombia: { cold_email: { subject: "[Empresa] — una pregunta rápida", body: "Buenos días [Name],\n\nLe escribo porque he estado siguiendo el crecimiento de [Company]. Trabajamos con empresas colombianas en [outcome].\n\nReferencias recientes: [Cliente X resultado].\n\n¿Estaría dispuesto/a a una llamada de 15 minutos?\n\nQue tenga buen día,\n[Your name]", psychology: "Buenos días opener. 'Que tenga buen día' is polite Colombian closing." } }, argentina: { cold_email: { subject: "Hola [Name] — una consulta", body: "Hola [Name],\n\nVi lo que estás haciendo con [Company] y me interesó [observación]. Trabajamos con empresas argentinas en [outcome] — pricing flexible considerando el contexto local.\n\nReferencia: [cliente local].\n\n¿Te interesaría una llamada de 15 min?\n\nSaludos,\n[Your name]", psychology: "Argentine Spanish 'vos' implied. 'Pricing flexible' acknowledges peso instability." } }, chile: { cold_email: { subject: "Consulta directa para [Company]", body: "Estimado/a [Name],\n\nLe escribo brevemente. Trabajamos con empresas chilenas en [outcome con números]. Cliente reciente: [resultado específico].\n\n¿Una llamada de 15 minutos esta semana?\n\nAtentamente,\n[Your name]", psychology: "Direct + numbers. Chileans appreciate efficiency." } }, peru: { cold_email: { subject: "[Doctor/Ingeniero] [Last name] — propuesta breve", body: "Estimado/a [Doctor/Ingeniero] [Last name],\n\nReciba un cordial saludo. Trabajamos con empresas peruanas en [outcome] y consideramos que podría ser de valor para [Company].\n\nReferencias: [casos relevantes].\n\nQuedo atento/a a su disponibilidad.\n\nCordialmente,\n[Your name]", psychology: "Title-respecting (Doctor/Ingeniero common). Formal Peruvian Lima business style." } } }; - src/main.ts:154-154 (registration)Case branch in CallToolRequestSchema switch that dispatches to the outreach template handler when name is 'get_outreach_template'.
case "get_outreach_template": { const channel = args?.channel as string; const d = OUTREACH_TEMPLATES[country]?.[channel]; if (!d) throw new Error(`No template for ${country}/${channel}`); return { content: [{ type: "text", text: JSON.stringify({ module: "LATAM Outreach Template", country, channel, ...d }, null, 2) }] }; }