I hope this email finds you well. I wanted to reach out about our security services that might be of interest to YMU Talent Agency.
Our company provides security personnel for events. We have many satisfied customers and would like to schedule a call to discuss how we can help you.
Let me know when you’re available.
Regards, Sales Rep
Response rate: 1.2%
✅ After
Subject: Quick security solution for YMU’s talent events
Hi John,
I noticed YMU’s been expanding its roster of A-list talent lately – congrats on that growth. Having worked event security for talent agencies before, I know how challenging it can be coordinating reliable security teams, especially on short notice.
We’ve built something I think you’ll find interesting – an on-demand security platform that’s already being used by several major talent agencies.
Best, Ilya
Response rate: 9.5%
This cookbook shows you how to build an AI-powered system that:
Researches prospects in real-time using up-to-date web data
Crafts personalized emails based on prospect-specific insights
Self-evaluates and improves its output before sending
Scales to thousands of prospects at a fraction of the usual cost
Create template in prompt.new with Claude 3.7 Sonnet
Add core partials:
Let’s create reusable components that define our SDR’s core instructions and persona. These are added as Prompt Partials - reusable blocks that can be inserted in any template.
Core Agent Instructions Partial
You are the ultimate sales representative from Umbrella Corporation. Your job is to:
Understand the company and target person
Write research queries to learn more about them
Use research findings to write the ultimate opener email
Send to evaluator for improvements
Write final email based on feedback
SDR Persona Partial
Your name is Ilya:
You acutely understand the exact requirements your target person and their company has
You write short, to the point emails that feel like a friend sending a text to you
At the same time, you understand the importance of coming across as a thorough professional
You have yourself been on both ends - when you needed private security and when you yourself were a private security professional
We’ll insert both partials into the template’s system role like this:
Add product offering:
Next, we’ll add a section that will receive your company’s offering details from a variable:
We’ll send this variable’s content at runtime.
Add Prospect Information Section:
Now let’s add a section that will receive the prospect information variables:
We’ll send these values at runtime as well.
Create Agent-Specific Sections with Conditional Logic:
This is where the magic happens! We’ll add three “conditional sections” that only appear when a specific mode is activated:A. Research Query Generation Mode:
Here, we’ll explain how the research query should be generated.
At this stage, we can send a request to the researcher get the research output back.B. Email Drafting Mode (add this section next):Once we have the research output, we can create the first email, and add the following to a new user role in the prompt template:
We’ll take this email and send it to the evaluator, which will send back a JSON with two keys: “score” and “comment”.C. Email Refinement Mode (add this final section):With the Evaluator’s output, we’ll now create the final email.
The Power of Conditional VariablesThis approach with {{#variable_name}} syntax lets you use a single template for three different purposes. When you set requirement_gathering_mode to “TRUE”, only that section appears. When you set it to empty and instead set research_mode to “TRUE”, the email drafting section appears instead. This keeps your templates DRY (Don’t Repeat Yourself).
Create a new prompt template with Perplexity Sonar Pro as the model
Add researcher instructions:
Add these system instructions that define the researcher’s role:
Researcher instructions
You are a world-class researcher who, when given key info about a company, its industry, and the target person, helps your handler write the ultimate sales email by gathering the critical insights about them from the internet.In scenarios where you do not find much info about the company in question, you also try to extrapolate the key information about this company that helps with writing the ultimate opener email.
Your completed template should look like this:
Researcher output
YMU Group is a global talent management agency founded in 1984 and based in London[1]. It offers full-service talent management, including representation for entertainers, athletes, musicians, and literary figures[1]. The company works with high-profile clients like Simon Cowell, Graham Norton, Claudia Winkleman, Nicole Scherzinger, Stacey Solomon, and Ant and Dec[7].In 2023, YMU reported a pre-tax loss of £32 million on revenue of £42.4 million[7]. The company was sold in March 2024 for £60 million to Permira Credit[7].YMU appears to focus on talent representation and career management rather than event organization. The search results don’t mention John Wick or provide details about specific events, security practices, or budgets.For writing a sales email, you might focus on YMU’s role as a major talent agency representing top celebrities. Their need for security services likely relates to protecting high-profile clients rather than large-scale event management. You could highlight how your security offerings could benefit their roster of celebrity talent in various professional and personal settings.Without more specific information, it’s best to keep the email fairly general, focusing on your company’s experience protecting high-profile individuals and how that aligns with YMU’s client base. You might also mention your ability to provide flexible, on-demand security staffing to meet the changing needs of busy entertainment professionals.
Create a template with OpenAI o3-mini as the model
Add evaluator instructions:
Add these system instructions that define the evaluator’s role:
Evaluator instructions
You are the critical part of an AI SDR agent that helps write opening sales email to a given prospect at a given company. Your key job is look at everything provided to you: The SDR’s job to be done, the SDR’s persona, the company and the target person in question, the research output, and send back a JSON with two keys: “score” and “comment”.The actual JSON object will be: {"score":<integer out of 10>, "comment":"<qualitative feedback about the email given to you>"}Based on your feedback, the agent will rework the email and then send it to the prospect.
Your completed template should look like this:
Evaluator is like an AI sales manager reviewing drafts before they go out - ensuring consistent quality at scale.
Evaluator output
{"score": 7, "comment": "The research summary does a good job of contextualizing YMU as a leading talent agency with high-profile clients, emphasizing the need for security services tailored to the protection of celebrities. It provides a solid foundation for a targeted email by suggesting a focus on flexible, on-demand security staffing. However, the information is somewhat generic, lacking specifics that could create a more compelling and personalized pitch. The email would benefit from slightly more emphasis on addressing potential security challenges or pain points unique to managing high-profile talent, even if inferred, to make the value proposition sharper."}
from portkey_ai import Portkey# Initialize with tracingclient = Portkey( api_key="PORTKEY_API_KEY", trace_id="ultimate-ai-sdr-run-1")# Company offeringour_offering = """Umbrella Corp offers 'Uber for personal protection'. Using our app, you can get highly vetted, arms-bearing ex-veterans who can accompany you to any place that's supported for any amount of hours or days..."""# Target informationcompany_name = "YMU Talent Agency"company_industry = "Elite Talent Management"target_person_name = "John Wick"target_person_designation = "Event Organizer"
Research Queries:1. What are the typical event sizes and types that YMU Talent Agency organizes?2. Have there been any security incidents at YMU's past events?3. What is John Wick's specific role and experience in event organization at YMU?4. Does YMU currently work with any security providers?5. What are the most significant upcoming events that YMU is organizing?...
3
Conduct Research
# Send queries to researcherresearcher = client.with_options(span_name="researcher").prompts.completions.create( prompt_id="your-researcher-template-id", variables={"requirement_gathering_output": gatherer}).choices[0].message.content
Example Output
Research Summary for YMU Talent Agency:1. Company Profile: - YMU is one of the world's leading talent management companies - Represents high-profile clients including Simon Cowell, Nicole Scherzinger ...2. Security Considerations: - Growing concern about celebrity stalking incidents in the industry - Multiple high-profile clients have experienced security threats ...
Subject: Quick security chat - from one protection expert to anotherHi John,As someone who's been on both sides of event security, I know the stress of finding reliable protection for high-profile talent. Especially given YMU's roster including Simon Cowell and Nicole Scherzinger.We've built an 'Uber for security' that top agencies use - you get instant access to vetted, armed ex-veterans through an app....
{ "score": 7, "comment": "The email does a good job establishing rapport by acknowledging John's background in event security and mentioning specific clients. However, it could be improved by directly addressing the specific pain point mentioned in the research - 'finding reliable security staff on short notice.'"}
Subject: Quick security solution for YMU's talent eventsHi John,I noticed YMU's been expanding its roster of A-list talent lately – congrats on that growth. Having worked event security for talent agencies before, I know how challenging it can be coordinating reliable security teams, especially on short notice.We've built something I think you'll find interesting – an on-demand security platform that's already being used by several major talent agencies. Think of it like having an elite security team in your pocket, available within hours....
✅ Set up Portkey account and API credentials
✅ Create prompt templates for all three agents
✅ Define your company offering and SDR persona
✅ Configure basic prospect information
✅ Implement the five-step workflow
✅ Set up tracing and monitoring
✅ Create a system for batching multiple prospects
This AI SDR system isn’t just an incremental improvement—it’s a fundamental reimagining of how sales development works. By combining specialized AI agents in an orchestrated workflow, you can achieve personalization at scale that was previously impossible.The result? More meetings, stronger relationships, and ultimately more closed deals—all while freeing your team to focus on high-value activities.
Portkey is now PRISMA AIRS AI Gateway. See it in action.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Portkey (Prisma AIRS AI Gateway) Docs","description":"Comprehensive documentation for AI Gateway, Guardrails, Observability, and Governance features.","colors":{"primary":"#0891B2","light":"#0891B2","dark":"#0891B2"},"logo":{"light":"https://mintcdn.com/portkey-docs/tHk-hgNjLbEj4dhh/images/portkey-PANW-company-logo-positive.png?fit=max\u0026auto=format\u0026n=tHk-hgNjLbEj4dhh\u0026q=85\u0026s=c5fb09014ff79616583b1d3bffe27450","dark":"https://mintcdn.com/portkey-docs/tHk-hgNjLbEj4dhh/images/portkey-PANW-company-logo-negative.png?fit=max\u0026auto=format\u0026n=tHk-hgNjLbEj4dhh\u0026q=85\u0026s=6025ca49ef544522f58ff471b7f75f8f"},"favicon":"https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/favicon.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=cbaa1bfc49bb6e3fd6cf499a5da313a3","api":{"openapi":"https://raw.githubusercontent.com/Portkey-AI/openapi/refs/heads/master/openapi.yaml","examples":{"prefill":true},"url":"full"},"navbar":{"links":[{"href":"https://portkey.ai/models","label":"Models"},{"href":"https://support.portkey.ai/forms/customer-portal-ticket-form","label":"Support"},{"href":"https://www.paloaltonetworks.in/ai-security/ai-gateway?utm_source=portkey\u0026utm_medium=referral\u0026utm_campaign=prisma_airs\u0026utm_content=docs_nav#contact","label":"Contact Us"}],"primary":{"type":"button","label":"Sign in","href":"https://stratacloudmanager.paloaltonetworks.com/"}},"footer":{"socials":{"x":"https://twitter.com/PortkeyAI","linkedin":"https://www.linkedin.com/company/portkey-ai","github":"https://git.new/portkey"},"links":[{"header":"For LLMs","items":[{"label":"llms.txt","href":"https://portkey.ai/docs/llms.txt"},{"label":"llms-full.txt","href":"https://portkey.ai/docs/llms-full.txt"}]},{"header":"Products","items":[{"label":"Observability","href":"https://portkey.ai/features/observability"},{"label":"AI Gateway","href":"https://portkey.ai/features/ai-gateway"},{"label":"Guardrails","href":"https://portkey.ai/features/guardrails"},{"label":"Prompt Management","href":"https://portkey.ai/features/prompt-management"},{"label":"Agents","href":"https://portkey.ai/features/agents"},{"label":"MCP Gateway","href":"https://portkey.ai/docs/product/mcp-gateway"},{"label":"Security","href":"https://portkey.ai/features/security-and-compliance"},{"label":"Auto-Instrumentation","href":"https://portkey.ai/features/auto-instrumentation"}]},{"header":"Resources","items":[{"label":"API Status","href":"https://status.portkey.ai/"},{"label":"Helm Charts","href":"https://github.com/portkey-ai/helm"},{"label":"AI Grants Finder","href":"https://grantsfinder.portkey.ai/"},{"label":"Events Calendar","href":"https://lu.ma/portkey"},{"label":"Blog","href":"https://portkey.ai/blog"},{"label":"Error Library","href":"https://portkey.ai/error-library"},{"label":"Models \u0026 Pricing","href":"https://portkey.ai/models"}]},{"header":"Company","items":[{"label":"Pricing","href":"https://portkey.ai/pricing"},{"label":"Compliances","href":"https://trust.portkey.ai/"},{"label":"Privacy Policy","href":"https://portkey.ai/privacy-policy"},{"label":"Terms of Service","href":"https://portkey.ai/terms"},{"label":"DPA","href":"https://portkey.ai/dpa"},{"label":"Cookie Policy","href":"https://portkey.ai/cookie-policy"}]}]},"seo":{"metatags":{"og:type":"website","og:site_name":"Portkey AI Gateway Docs"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"integrations":{"ga4":{"measurementId":"G-JJMXYE4DRL"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"toc"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"portkey-docs","hasAudioNarration":false,"actualSubdomain":"portkey-docs","customDomains":["docs.portkey.ai","portkey.ai"],"gitSource":{"type":"github","owner":"portkey-ai","repo":"docs-core","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae19432b02c0cf4583c440a","collectionId":"1d374efc-74be-4e28-8b61-089d6b6940ad","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae19432b02c0cf4583c440a"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae19432b02c0cf4583c440a","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Integrations","count":697},{"language":"default","tag":"Product","count":382},{"language":"default","tag":"Docs","count":320},{"language":"default","tag":"LLM Integrations","count":307},{"language":"default","tag":"More","count":176},{"language":"default","tag":"Admin APIs","count":172},{"language":"default","tag":"Guardrails","count":101},{"language":"default","tag":"AI Gateway","count":99},{"language":"default","tag":"Admin API","count":95},{"language":"default","tag":"Documentation","count":91}],"searchSettings":{"isFiltersEnabled":true,"showContentSnippets":true}},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@portkey.ai","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#banner{background:linear-gradient(90deg,#0d1b2e 0,#1a1040 40%,#2d0f22 100%);border-bottom:1px solid rgba(255,255,255,.08)}#banner a{color:#f0f0f0;text-decoration:none;font-weight:600;border-bottom:1px solid rgba(240,240,240,.5);padding-bottom:1px;transition:border-color .2s ease}#banner a:hover{border-bottom-color:#fff}"}],"page":{"pagePath":"guides/prompts/ultimate-ai-sdr","slug":"/guides/prompts/ultimate-ai-sdr","pageMetadata":{"title":"Ultimate AI SDR","description":"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds","href":"/guides/prompts/ultimate-ai-sdr"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,code:`code`,em:`em`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CodeBlock,Frame,Heading,Mermaid,OptimizedImage,Step,Steps,Tab,Table,Tabs,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=87461d4d444cfa329c8de0138a5c042d`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1260`,height:`1260`,\"data-path\":`images/guides/prompts/ultimate-ai-sdr-2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?w=280\u0026fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=45030dfe08b6bd28070ee11c9d938bc4 280w, https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?w=560\u0026fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=3083dd966d75f7374e05524d9f6819b3 560w, https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?w=840\u0026fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=78ca654cc5ad751838e82c813dd7ee7b 840w, https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=47e5dec4ed114c12ab9b9a23e7907188 1100w, https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=a79a96eac80a6f773d2c325176fadd1f 1650w, https://mintcdn.com/portkey-docs/T0lFtdapIPX8YtCI/images/guides/prompts/ultimate-ai-sdr-2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=T0lFtdapIPX8YtCI\u0026q=85\u0026s=af745d7978b5edf04c2742407e3058d9 2500w`})}),`\n`,_jsx(Heading,{level:`3`,id:`the-problem-generic-sales-outreach-doesn’t-work`,children:`The Problem: Generic Sales Outreach Doesn’t Work`}),`\n`,_jsxs(`div`,{className:`mint-grid mint-grid-cols-2 mint-gap-4 mint-mb-8`,children:[_jsxs(`div`,{className:`mint-border mint-rounded-md mint-p-4 mint-bg-red-50`,children:[_jsx(`div`,{className:`mint-text-lg mint-font-bold mint-mb-2 mint-text-red-700`,children:`❌ Before`}),_jsxs(`div`,{className:`mint-text-sm mint-text-gray-800`,children:[_jsx(`p`,{children:`Dear John,`}),_jsx(`p`,{children:`I hope this email finds you well. I wanted to reach out about our security services that might be of interest to YMU Talent Agency.`}),_jsx(`p`,{children:`Our company provides security personnel for events. We have many satisfied customers and would like to schedule a call to discuss how we can help you.`}),_jsx(`p`,{children:`Let me know when you’re available.`}),_jsxs(`p`,{children:[`Regards,`,_jsx(`br`,{}),`Sales Rep`]})]}),_jsx(`div`,{className:`mint-mt-2 mint-text-red-700 mint-text-xs`,children:`Response rate: 1.2%`})]}),_jsxs(`div`,{className:`mint-border mint-rounded-md mint-p-4 mint-bg-green-50`,children:[_jsx(`div`,{className:`mint-text-lg mint-font-bold mint-mb-2 mint-text-green-700`,children:`✅ After`}),_jsxs(`div`,{className:`mint-text-sm mint-text-gray-800`,children:[_jsx(`p`,{children:`Subject: Quick security solution for YMU’s talent events`}),_jsx(`p`,{children:`Hi John,`}),_jsx(`p`,{children:`I noticed YMU’s been expanding its roster of A-list talent lately – congrats on that growth. Having worked event security for talent agencies before, I know how challenging it can be coordinating reliable security teams, especially on short notice.`}),_jsx(`p`,{children:`We’ve built something I think you’ll find interesting – an on-demand security platform that’s already being used by several major talent agencies.`}),_jsxs(`p`,{children:[`Best,`,_jsx(`br`,{}),`Ilya`]})]}),_jsx(`div`,{className:`mint-mt-2 mint-text-green-700 mint-text-xs`,children:`Response rate: 9.5%`})]})]}),`\n`,_jsx(_components.p,{children:`This cookbook shows you how to build an AI-powered system that:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Researches prospects in real-time`}),` using up-to-date web data`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Crafts personalized emails`}),` based on prospect-specific insights`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Self-evaluates and improves`}),` its output before sending`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scales to thousands of prospects`}),` at a fraction of the usual cost`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`multi-agent-architecture`,children:`Multi-Agent Architecture`}),`\n`,_jsx(Mermaid,{chart:`graph LR\n classDef main fill:#e1f5fe,stroke:#01579b,stroke-width:2px\n classDef research fill:#f3e5f5,stroke:#4a148c,stroke-width:2px\n classDef eval fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px\n classDef io fill:#fff3e0,stroke:#e65100,stroke-width:2px\n\n A[Input]:::io\n B[Claude 3.7\u003cbr/>Orchestrator]:::main\n C[Perplexity\u003cbr/>Sonar Pro]:::research\n D[OpenAI\u003cbr/>o3-mini]:::eval\n E[Output]:::io\n\n A --> B\n B --> C\n C --> B\n B --> D\n D -->|Approved| E\n D -->|Revise| B\n\n style A font-size:14px\n style B font-size:14px\n style C font-size:14px\n style D font-size:14px\n style E font-size:14px`}),`\n`,_jsx(_components.p,{children:`Our system combines three specialized AI models:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Orchestrator (Claude 3.7)`}),`: Generates research queries, drafts emails, and refines based on feedback`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Researcher (Perplexity)`}),`: Gathers real-time web information about prospects and companies`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Evaluator (OpenAI)`}),`: Reviews email quality, providing scores and improvement suggestions`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This architecture delivers superior results because:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Each model handles tasks it excels at`}),`\n`,_jsx(_components.li,{children:`The system includes built-in quality control`}),`\n`,_jsx(_components.li,{children:`Cost efficiency through right-sized models and targeted research`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-the-prompt-templates`,children:`Creating the Prompt Templates`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Orchestrator Template`,id:`orchestrator-template`,\"data-child-heading-ids\":`[\"what-you%E2%80%99ll-create\",\"variables-you%E2%80%99ll-need\",\"step-by-step-setup\",\"complete-template-overview\"]`,children:[_jsx(Heading,{level:`3`,id:`what-you’ll-create`,children:`What You’ll Create`}),_jsx(_components.p,{children:`The Orchestrator template handles three different roles depending on which “mode” is activated:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Research Query Generator`}),`: Creates targeted questions for the researcher`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Email Drafter`}),`: Uses research findings to write personalized outreach`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Email Refiner`}),`: Incorporates evaluator feedback to improve the email`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`variables-you’ll-need`,children:`Variables You’ll Need`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Purpose`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`our_offering`})}),_jsx(_components.td,{children:`Your product/service description`}),_jsx(_components.td,{children:`”Umbrella Corp offers ‘Uber for personal protection’…”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`company_name`})}),_jsx(_components.td,{children:`Prospect’s company`}),_jsx(_components.td,{children:`”YMU Talent Agency”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`company_industry`})}),_jsx(_components.td,{children:`Industry sector`}),_jsx(_components.td,{children:`”Elite Talent Management”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`target_person_name`})}),_jsx(_components.td,{children:`Contact name`}),_jsx(_components.td,{children:`”John Wick”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`target_person_designation`})}),_jsx(_components.td,{children:`Contact’s role`}),_jsx(_components.td,{children:`”Event Organizer”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requirement_gathering_mode`})}),_jsx(_components.td,{children:`Activates research query mode`}),_jsx(_components.td,{children:`”TRUE” or \"\" (empty)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`research_mode`})}),_jsx(_components.td,{children:`Activates email drafting mode`}),_jsx(_components.td,{children:`”TRUE” or \"\" (empty)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`evaluator_mode`})}),_jsx(_components.td,{children:`Activates email refinement mode`}),_jsx(_components.td,{children:`”TRUE” or \"\" (empty)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`researcher_output`})}),_jsx(_components.td,{children:`Data from the researcher`}),_jsx(_components.td,{children:`(JSON response from research)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`evaluator_output`})}),_jsx(_components.td,{children:`Feedback from evaluator`}),_jsx(_components.td,{children:`(JSON with score and comments)`})]})]})]}),_jsx(Heading,{level:`3`,id:`step-by-step-setup`,children:`Step-by-Step Setup`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Create template`}),` in `,_jsx(_components.a,{href:`https://prompt.new/`,children:`prompt.new`}),` with `,_jsx(_components.strong,{children:`Claude 3.7 Sonnet`})]}),`\n`]}),_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,className:`mint-w-full mint-aspect-video`,src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/new-prompt.mp4?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=9f8fdba0eb1fabdc009bd015a95b04da`,\"data-path\":`guides/prompts/ultimate-ai-sdr/new-prompt.mp4`}),_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add core partials`}),`:`]}),`\n`]}),_jsxs(_components.p,{children:[`Let’s create reusable components that define our SDR’s core instructions and persona. These are added as `,_jsx(_components.strong,{children:`Prompt Partials`}),` - reusable blocks that can be inserted in any template.`]}),_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Core Agent Instructions Partial`,id:`core-agent-instructions-partial`,children:[_jsx(_components.p,{children:`You are the ultimate sales representative from Umbrella Corporation. Your job is to:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Understand the company and target person`}),`\n`,_jsx(_components.li,{children:`Write research queries to learn more about them`}),`\n`,_jsx(_components.li,{children:`Use research findings to write the ultimate opener email`}),`\n`,_jsx(_components.li,{children:`Send to evaluator for improvements`}),`\n`,_jsx(_components.li,{children:`Write final email based on feedback`}),`\n`]})]}),_jsxs(Accordion,{title:`SDR Persona Partial`,id:`sdr-persona-partial`,children:[_jsx(_components.p,{children:`Your name is Ilya:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`You acutely understand the exact requirements your target person and their company has`}),`\n`,_jsx(_components.li,{children:`You write short, to the point emails that feel like a friend sending a text to you`}),`\n`,_jsx(_components.li,{children:`At the same time, you understand the importance of coming across as a thorough professional`}),`\n`,_jsx(_components.li,{children:`You have yourself been on both ends - when you needed private security and when you yourself were a private security professional`}),`\n`]})]})]}),_jsx(_components.p,{children:`We’ll insert both partials into the template’s system role like this:`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=53e4a2c1b47fa34129691e8bbc5f3ad5`,\"data-og-width\":`1204`,width:`1204`,\"data-og-height\":`404`,height:`404`,\"data-path\":`guides/prompts/ultimate-ai-sdr/main-agent-system.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=e9ea0f1178896e109d5f7a7896d39ffd 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=ad7cdd14ddf0904612e6196e23fcf3ae 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=9ad7eb2c4966b0b3e35c924966c38036 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=172c1a7ef85e5fb66a966bd752c28ffa 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=63bd12497ec8212d131e4befcbf63dc5 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/main-agent-system.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=ad3a22aeddeaf3e096cad8f850bd5151 2500w`})}),_jsxs(_components.ol,{start:`3`,children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add product offering`}),`:`]}),`\n`]}),_jsx(_components.p,{children:`Next, we’ll add a section that will receive your company’s offering details from a variable:`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=fe8648cdea5e3945765031442890ad8c`,\"data-og-width\":`1204`,width:`1204`,\"data-og-height\":`252`,height:`252`,\"data-path\":`guides/prompts/ultimate-ai-sdr/our-offerings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=589a5640e07587c2733421da3ef4f9e6 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=eb8d1d28a4c4a36ce3e09736754535fa 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=ed23150f9a42737021157188bd0d1577 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=feb9c33b2f42ea5938fa5bedabadf4d1 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=4c7b28e2e181b763423e688fcd3f3a41 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/our-offerings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=47b574239b163aa8e525e82aa1c56f5e 2500w`})}),_jsx(_components.p,{children:`We’ll send this variable’s content at runtime.`}),_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add Prospect Information Section`}),`:`]}),`\n`]}),_jsx(_components.p,{children:`Now let’s add a section that will receive the prospect information variables:`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=e713de82066823daf7f63743b1d4b2fa`,\"data-og-width\":`1204`,width:`1204`,\"data-og-height\":`536`,height:`536`,\"data-path\":`guides/prompts/ultimate-ai-sdr/variables.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=b96391323fa0224bfc56555f1ef9135e 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=d15dfe864bdfc8a4dff728dd270db77f 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=2fdb5f85fc02ebfd8d9865fec105185f 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=3fdda328d12433ff2771f5175a14f9cb 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=c635e593c18e31960a2af26fd585b39b 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/variables.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=699674a8afce18baafa9683d3e1a6a14 2500w`})}),_jsx(_components.p,{children:`We’ll send these values at runtime as well.`}),_jsxs(_components.ol,{start:`5`,children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Create Agent-Specific Sections with Conditional Logic`}),`:`]}),`\n`]}),_jsx(_components.p,{children:`This is where the magic happens! We’ll add three “conditional sections” that only appear when a specific mode is activated:`}),_jsxs(_components.p,{children:[_jsx(_components.em,{children:`A. Research Query Generation Mode:`}),`\nHere, we’ll explain how the research query should be generated.`]}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=84e477149e6b5aaf4d7b555f1798f8a7`,\"data-og-width\":`1204`,width:`1204`,\"data-og-height\":`354`,height:`354`,\"data-path\":`guides/prompts/ultimate-ai-sdr/requirement-gathering.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=a5c09a553751bb9c40998b282c97407b 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=993436c0ac81be84e44f869515fc7ab5 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=62e009ed01308a5248b6cde1d958d844 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=e22c44947ca523e796ac01379b5c2be3 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=cc3d6d65e999ff0f77692b84c6083954 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/requirement-gathering.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=c13e9b949ad67709e18df7042872d599 2500w`})}),_jsx(_components.p,{children:`At this stage, we can send a request to the researcher get the research output back.`}),_jsx(_components.p,{children:_jsx(_components.em,{children:`B. Email Drafting Mode (add this section next):`})}),_jsx(_components.p,{children:`Once we have the research output, we can create the first email, and add the following to a new user role in the prompt template:`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=e1999f6306988dd241a0d7e3b8a9f887`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`686`,height:`686`,\"data-path\":`guides/prompts/ultimate-ai-sdr/researcher-main-agent.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=7820aaf9d9ea3aa6a5930000ecaa77bf 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=ca67518cf25a409ad9a5c793eedc4791 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=ce951fc55c4625b46419fcd92d4998fb 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=17ca4c79ea05e4d48f18261456dd157c 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=4b59f71f9be8e99042abb6e2abe2404a 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher-main-agent.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=701dade2ed55af9a91826f32c071a71e 2500w`})}),_jsx(_components.p,{children:`We’ll take this email and send it to the evaluator, which will send back a JSON with two keys: “score” and “comment”.`}),_jsx(_components.p,{children:_jsx(_components.em,{children:`C. Email Refinement Mode (add this final section):`})}),_jsx(_components.p,{children:`With the Evaluator’s output, we’ll now create the final email.`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=a7595ec3db24ce2fd431509e6558d9b3`,\"data-og-width\":`1202`,width:`1202`,\"data-og-height\":`682`,height:`682`,\"data-path\":`guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=c57df484817f016f3b2cc6a82ffa42d2 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=1f80b96241bd4f0ceb6dc83a0ec88d0e 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=61dbce347cff7f032bba39855b566d11 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=7f34f626e45ddda3f6a769600b9f5817 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=9692e36886a4a9b1a6a59a2ecc563e41 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator-main-agent.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=aae5e857c0206ee91d781de829206092 2500w`})}),_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`The Power of Conditional Variables`})}),_jsxs(_components.p,{children:[`This approach with `,_jsx(_components.code,{children:`{{#variable_name}}`}),` syntax lets you use a single template for three different purposes. When you set `,_jsx(_components.code,{children:`requirement_gathering_mode`}),` to “TRUE”, only that section appears. When you set it to empty and instead set `,_jsx(_components.code,{children:`research_mode`}),` to “TRUE”, the email drafting section appears instead. This keeps your templates DRY (Don’t Repeat Yourself).`]})]}),_jsx(Heading,{level:`3`,id:`complete-template-overview`,children:`Complete Template Overview`}),_jsx(_components.p,{children:`When finished, your template should have:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Core instruction and persona partials at the top`}),`\n`,_jsx(_components.li,{children:`Company offering section`}),`\n`,_jsx(_components.li,{children:`Prospect information section`}),`\n`,_jsx(_components.li,{children:`Three conditional sections for different modes`}),`\n`]}),_jsx(_components.p,{children:`This single template will now handle all three stages of the orchestrator’s job, activated by different variables in your code.`})]}),_jsxs(Tab,{title:`Researcher Template`,id:`researcher-template`,\"data-child-heading-ids\":`[\"what-you%E2%80%99ll-create-2\",\"variables\",\"setup-steps\"]`,children:[_jsx(Heading,{level:`3`,id:`what-you’ll-create-2`,children:`What You’ll Create`}),_jsx(_components.p,{children:`The Researcher template powers the real-time web research capabilities of your AI SDR system.`}),_jsx(Heading,{level:`3`,id:`variables`,children:`Variables`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Inputt`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Source/Destination`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requirement_gathering_output`})}),_jsx(_components.td,{children:`Research queries`}),_jsx(_components.td,{children:`Received from Orchestrator`})]})})]}),_jsx(Heading,{level:`3`,id:`setup-steps`,children:`Setup Steps`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a new prompt template with `,_jsx(_components.strong,{children:`Perplexity Sonar Pro`}),` as the model`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add researcher instructions:`}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Add these system instructions that define the researcher’s role:`}),_jsxs(Accordion,{title:`Researcher instructions`,id:`researcher-instructions`,children:[_jsx(_components.p,{children:`You are a world-class researcher who, when given key info about a company, its industry, and the target person, helps your handler write the ultimate sales email by gathering the critical insights about them from the internet.`}),_jsx(_components.p,{children:`In scenarios where you do not find much info about the company in question, you also try to extrapolate the key information about this company that helps with writing the ultimate opener email.`})]}),_jsx(_components.p,{children:`Your completed template should look like this:`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=f2b6915faf83d95980a5f2c81d503dda`,alt:`Researcher template configuration`,\"data-og-width\":`1222`,width:`1222`,\"data-og-height\":`594`,height:`594`,\"data-path\":`guides/prompts/ultimate-ai-sdr/researcher.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=c8e3e92ac10b59c6d1eb2f467c781773 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=6893be999a5793a6e0cfa201162c82c1 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=0d9b50a9c8cdcb06eb51169bd60cd850 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=ebdca3eac2372ea869d98973185259ff 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=79cc2aa397f5c3fbe3b6e847b06b4eac 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/researcher.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=2c8c6a41be270c2f7451a1deaec78ea8 2500w`})}),_jsxs(Accordion,{title:`Researcher output`,id:`researcher-output`,children:[_jsx(_components.p,{children:`YMU Group is a global talent management agency founded in 1984 and based in London[1]. It offers full-service talent management, including representation for entertainers, athletes, musicians, and literary figures[1]. The company works with high-profile clients like Simon Cowell, Graham Norton, Claudia Winkleman, Nicole Scherzinger, Stacey Solomon, and Ant and Dec[7].`}),_jsx(_components.p,{children:`In 2023, YMU reported a pre-tax loss of £32 million on revenue of £42.4 million[7]. The company was sold in March 2024 for £60 million to Permira Credit[7].`}),_jsx(_components.p,{children:`YMU appears to focus on talent representation and career management rather than event organization. The search results don’t mention John Wick or provide details about specific events, security practices, or budgets.`}),_jsx(_components.p,{children:`For writing a sales email, you might focus on YMU’s role as a major talent agency representing top celebrities. Their need for security services likely relates to protecting high-profile clients rather than large-scale event management. You could highlight how your security offerings could benefit their roster of celebrity talent in various professional and personal settings.`}),_jsx(_components.p,{children:`Without more specific information, it’s best to keep the email fairly general, focusing on your company’s experience protecting high-profile individuals and how that aligns with YMU’s client base. You might also mention your ability to provide flexible, on-demand security staffing to meet the changing needs of busy entertainment professionals.`})]})]}),_jsxs(Tab,{title:`Evaluator Template`,id:`evaluator-template`,\"data-child-heading-ids\":`[\"what-you%E2%80%99ll-create-3\",\"variables-2\",\"setup-steps-2\"]`,children:[_jsx(Heading,{level:`3`,id:`what-you’ll-create-3`,children:`What You’ll Create`}),_jsx(_components.p,{children:`The Evaluator template provides quality control for your AI SDR system.`}),_jsx(Heading,{level:`3`,id:`variables-2`,children:`Variables`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Source/Destination`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`work_history`})}),_jsx(_components.td,{children:`Research queries + findings + email draft`}),_jsx(_components.td,{children:`Received from previous steps`})]})})]}),_jsx(Heading,{level:`3`,id:`setup-steps-2`,children:`Setup Steps`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a template with `,_jsx(_components.strong,{children:`OpenAI o3-mini`}),` as the model`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add evaluator instructions:`}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Add these system instructions that define the evaluator’s role:`}),_jsxs(Accordion,{title:`Evaluator instructions`,id:`evaluator-instructions`,children:[_jsx(_components.p,{children:`You are the critical part of an AI SDR agent that helps write opening sales email to a given prospect at a given company. Your key job is look at everything provided to you: The SDR’s job to be done, the SDR’s persona, the company and the target person in question, the research output, and send back a JSON with two keys: “score” and “comment”.`}),_jsxs(_components.p,{children:[`The actual JSON object will be: `,_jsx(_components.code,{children:`{\"score\":\u003cinteger out of 10>, \"comment\":\"\u003cqualitative feedback about the email given to you>\"}`})]}),_jsx(_components.p,{children:`Based on your feedback, the agent will rework the email and then send it to the prospect.`})]}),_jsx(_components.p,{children:`Your completed template should look like this:`}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=a71780b5421a34cc831747382039b967`,\"data-og-width\":`1204`,width:`1204`,\"data-og-height\":`530`,height:`530`,\"data-path\":`guides/prompts/ultimate-ai-sdr/evaluator.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?w=280\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=3d3267159365bc063dd628bc2b526cb0 280w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?w=560\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=63a298be94414e577bc61e6d676c6647 560w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?w=840\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=2966bf9b3b23379a39a8ebe97f09dffd 840w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=bf1e7abde824fe35cb0a818db08d0756 1100w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=b52d90e12feb21ee14dbe1b5e30c03ed 1650w, https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/evaluator.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=43184190fb1407c969eab0e140aed499 2500w`})}),_jsx(_components.p,{children:`Evaluator is like an AI sales manager reviewing drafts before they go out - ensuring consistent quality at scale.`}),_jsx(Accordion,{title:`Evaluator output`,id:`evaluator-output`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"comment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The research summary does a good job of contextualizing YMU as a leading talent agency with high-profile clients, emphasizing the need for security services tailored to the protection of celebrities. It provides a solid foundation for a targeted email by suggesting a focus on flexible, on-demand security staffing. However, the information is somewhat generic, lacking specifics that could create a more compelling and personalized pitch. The email would benefit from slightly more emphasis on addressing potential security challenges or pain points unique to managing high-profile talent, even if inferred, to make the value proposition sharper.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`implementing-the-workflow`,children:`Implementing the Workflow`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Setup`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` portkey_ai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Portkey`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Initialize with tracing`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Portkey(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PORTKEY_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` trace_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ultimate-ai-sdr-run-1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Company offering`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`our_offering `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"\"Umbrella Corp offers 'Uber for personal protection'. Using our app, you can get highly vetted, `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`arms-bearing ex-veterans who can accompany you to any place that's supported for any amount of hours or days...\"\"\"`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Target information`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`company_name `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YMU Talent Agency\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`company_industry `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Elite Talent Management\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`target_person_name `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"John Wick\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`target_person_designation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Event Organizer\"`})]}),`\n`]})})})}),_jsxs(Step,{title:`Generate Research Queries`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Activate research query generation mode`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`variables `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"our_offering\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: our_offering,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"company_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: company_name,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"company_industry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: company_industry,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_person_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: target_person_name,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_person_designation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: target_person_designation,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"requirement_gathering_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TRUE\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Activate research query mode`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`gatherer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.with_options(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`span_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gatherer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).prompts.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` prompt_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-orchestrator-template-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` variables`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`variables`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content`})]}),`\n`]})})}),_jsx(Accordion,{title:`Example Output`,id:`example-output`,children:_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Research Queries:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. What are the typical event sizes and types that YMU Talent Agency organizes?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Have there been any security incidents at YMU's past events?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. What is John Wick's specific role and experience in event organization at YMU?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Does YMU currently work with any security providers?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. What are the most significant upcoming events that YMU is organizing?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]}),_jsxs(Step,{title:`Conduct Research`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Send queries to researcher`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`researcher `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.with_options(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`span_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"researcher\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).prompts.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` prompt_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-researcher-template-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` variables`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"requirement_gathering_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: gatherer}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content`})]}),`\n`]})})}),_jsx(Accordion,{title:`Example Output`,id:`example-output-1`,children:_jsx(CodeBlock,{numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Research Summary for YMU Talent Agency:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Company Profile:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - YMU is one of the world's leading talent management companies`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Represents high-profile clients including Simon Cowell, Nicole Scherzinger`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Security Considerations:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Growing concern about celebrity stalking incidents in the industry`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Multiple high-profile clients have experienced security threats`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]}),_jsxs(Step,{title:`Draft Initial Email`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Activate email drafting mode`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`variables `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"our_offering\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: our_offering,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"company_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: company_name,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_person_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: target_person_name,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"researcher_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: researcher,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"requirement_gathering_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Deactivate research mode`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"research_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TRUE\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Activate email drafting mode`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`email_one `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.with_options(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`span_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email-one\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).prompts.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` prompt_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-orchestrator-template-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Same template, different mode`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` variables`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`variables`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content`})]}),`\n`]})})}),_jsx(Accordion,{title:`Example Output`,id:`example-output-2`,children:_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Subject: Quick security chat - from one protection expert to another`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Hi John,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`As someone who's been on both sides of event security, I know the stress of finding reliable protection for high-profile talent. Especially given YMU's roster including Simon Cowell and Nicole Scherzinger.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`We've built an 'Uber for security' that top agencies use - you get instant access to vetted, armed ex-veterans through an app.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]}),_jsxs(Step,{title:`Evaluate Email`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Send to evaluator`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`evaluator `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.with_options(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`span_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evaluator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).prompts.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` prompt_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-evaluator-template-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` variables`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"work_history\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: gatherer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \" \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` researcher, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: email_one}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content`})]}),`\n`]})})}),_jsx(Accordion,{title:`Example Output`,id:`example-output-3`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"comment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The email does a good job establishing rapport by acknowledging John's background in event security and mentioning specific clients. However, it could be improved by directly addressing the specific pain point mentioned in the research - 'finding reliable security staff on short notice.'\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),_jsxs(Step,{title:`Refine Email`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Activate email refinement mode`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`variables `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"our_offering\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: our_offering,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"company_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: company_name,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_person_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: target_person_name,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"researcher_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: researcher,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"evaluator_output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: evaluator,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"requirement_gathering_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"research_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"evaluator_mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TRUE\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Activate refinement mode`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`email_two `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.with_options(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`span_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email-two\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).prompts.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` prompt_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-orchestrator-template-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Same template, third mode`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` variables`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`variables`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content`})]}),`\n`]})})}),_jsx(Accordion,{title:`Final Email`,id:`final-email`,children:_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Subject: Quick security solution for YMU's talent events`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Hi John,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I noticed YMU's been expanding its roster of A-list talent lately – congrats on that growth. Having worked event security for talent agencies before, I know how challenging it can be coordinating reliable security teams, especially on short notice.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`We've built something I think you'll find interesting – an on-demand security platform that's already being used by several major talent agencies. Think of it like having an elite security team in your pocket, available within hours.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`monitoring-and-optimization`,children:`Monitoring and Optimization`}),`\n`,_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,className:`mint-w-full mint-aspect-video`,src:`https://mintcdn.com/portkey-docs/Hf1XgyjG_b79ym4Q/guides/prompts/ultimate-ai-sdr/trace.mp4?fit=max\u0026auto=format\u0026n=Hf1XgyjG_b79ym4Q\u0026q=85\u0026s=b5e524dd8e7874c34c67226ef2522a13`,\"data-path\":`guides/prompts/ultimate-ai-sdr/trace.mp4`}),`\n`,_jsx(_components.p,{children:`Portkey’s trace view provides complete visibility to track performance, cost, latency, and opportunities for improvement.`}),`\n`,_jsx(Heading,{level:`2`,id:`implementation-checklist`,children:`Implementation Checklist`}),`\n`,_jsxs(_components.p,{children:[`✅ Set up Portkey account and API credentials`,_jsx(_components.br,{}),`\n`,`✅ Create prompt templates for all three agents`,_jsx(_components.br,{}),`\n`,`✅ Define your company offering and SDR persona`,_jsx(_components.br,{}),`\n`,`✅ Configure basic prospect information`,_jsx(_components.br,{}),`\n`,`✅ Implement the five-step workflow`,_jsx(_components.br,{}),`\n`,`✅ Set up tracing and monitoring`,_jsx(_components.br,{}),`\n`,`✅ Create a system for batching multiple prospects`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting-\u0026-best-practices`,children:`Troubleshooting \u0026 Best Practices`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Issue`}),_jsx(_components.th,{children:`Solution`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Low research quality`}),_jsx(_components.td,{children:`Make research queries more specific`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Generic emails`}),_jsx(_components.td,{children:`Ensure research findings are prominently featured`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`High token usage`}),_jsx(_components.td,{children:`Remove redundant information from prompts`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`ready-to-transform-your-outreach`,children:`Ready to Transform Your Outreach?`}),`\n`,_jsx(_components.p,{children:`This AI SDR system isn’t just an incremental improvement—it’s a fundamental reimagining of how sales development works. By combining specialized AI agents in an orchestrated workflow, you can achieve personalization at scale that was previously impossible.`}),`\n`,_jsx(_components.p,{children:`The result? More meetings, stronger relationships, and ultimately more closed deals—all while freeing your team to focus on high-value activities.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Card,{title:`Portkey is now PRISMA AIRS AI Gateway. See it in action.`,href:`https://www.paloaltonetworks.in/ai-security/ai-gateway?utm_source=portkey\u0026utm_medium=referral\u0026utm_campaign=prisma_airs\u0026utm_content=docs_nav#contact`,icon:`arrow-up-right-from-square`,children:_jsx(_components.p,{children:`Contact Us`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Ultimate AI SDR","description":"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds","href":"/guides/prompts/ultimate-ai-sdr"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The Problem: Generic Sales Outreach Doesn’t Work","slug":"the-problem-generic-sales-outreach-doesn’t-work","depth":3,"children":[]},{"title":"Multi-Agent Architecture","slug":"multi-agent-architecture","depth":2,"children":[]},{"title":"Creating the Prompt Templates","slug":"creating-the-prompt-templates","depth":2,"children":[{"title":"What You’ll Create","slug":"what-you’ll-create","depth":3,"children":[],"tabId":"orchestrator-template"},{"title":"Variables You’ll Need","slug":"variables-you’ll-need","depth":3,"children":[],"tabId":"orchestrator-template"},{"title":"Step-by-Step Setup","slug":"step-by-step-setup","depth":3,"children":[],"tabId":"orchestrator-template"},{"title":"Complete Template Overview","slug":"complete-template-overview","depth":3,"children":[],"tabId":"orchestrator-template"},{"title":"What You’ll Create","slug":"what-you’ll-create-2","depth":3,"children":[],"tabId":"researcher-template"},{"title":"Variables","slug":"variables","depth":3,"children":[],"tabId":"researcher-template"},{"title":"Setup Steps","slug":"setup-steps","depth":3,"children":[],"tabId":"researcher-template"},{"title":"What You’ll Create","slug":"what-you’ll-create-3","depth":3,"children":[],"tabId":"evaluator-template"},{"title":"Variables","slug":"variables-2","depth":3,"children":[],"tabId":"evaluator-template"},{"title":"Setup Steps","slug":"setup-steps-2","depth":3,"children":[],"tabId":"evaluator-template"}]},{"title":"Implementing the Workflow","slug":"implementing-the-workflow","depth":2,"children":[]},{"title":"Monitoring and Optimization","slug":"monitoring-and-optimization","depth":2,"children":[]},{"title":"Implementation Checklist","slug":"implementation-checklist","depth":2,"children":[]},{"title":"Troubleshooting \u0026 Best Practices","slug":"troubleshooting-\u0026-best-practices","depth":2,"children":[]},{"title":"Ready to Transform Your Outreach?","slug":"ready-to-transform-your-outreach","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-mb-2 {\n margin-bottom: 0.5rem\n}\n.mint-mb-8 {\n margin-bottom: 2rem\n}\n.mint-mt-2 {\n margin-top: 0.5rem\n}\n.mint-grid {\n display: grid\n}\n.mint-aspect-video {\n aspect-ratio: 16 / 9\n}\n.mint-w-full {\n width: 100%\n}\n.mint-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr))\n}\n.mint-gap-4 {\n gap: 1rem\n}\n.mint-rounded-md {\n border-radius: 0.375rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-bg-green-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1))\n}\n.mint-bg-red-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1))\n}\n.mint-p-4 {\n padding: 1rem\n}\n.mint-text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n.mint-font-bold {\n font-weight: 700\n}\n.mint-text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity, 1))\n}\n.mint-text-green-700 {\n --tw-text-opacity: 1;\n color: rgb(21 128 61 / var(--tw-text-opacity, 1))\n}\n.mint-text-red-700 {\n --tw-text-opacity: 1;\n color: rgb(185 28 28 / var(--tw-text-opacity, 1))\n}","subdomain":"portkey-docs","siteName":"Portkey (Prisma AIRS AI Gateway) Docs","title":"Ultimate AI SDR - Portkey (Prisma AIRS AI Gateway) Docs","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[{"_id":"6aa971c30031bd0287c968a0","deploymentId":"67086365a151447bf2fa5021","questionText":"How do I build an AI SDR agent?","status":"active","generatedBy":"contextual","path":"guides/prompts/ultimate-ai-sdr","createdAt":"2026-09-15T16:26:43.470Z","updatedAt":"2026-09-15T16:26:43.470Z","__v":0},{"_id":"6aa971c30031bd0287c968a1","deploymentId":"67086365a151447bf2fa5021","questionText":"What makes outreach personalized?","status":"active","generatedBy":"contextual","path":"guides/prompts/ultimate-ai-sdr","createdAt":"2026-09-15T16:26:43.470Z","updatedAt":"2026-09-15T16:26:43.470Z","__v":0},{"_id":"6aa971c30031bd0287c968a2","deploymentId":"67086365a151447bf2fa5021","questionText":"How fast can emails be drafted?","status":"active","generatedBy":"contextual","path":"guides/prompts/ultimate-ai-sdr","createdAt":"2026-09-15T16:26:43.470Z","updatedAt":"2026-09-15T16:26:43.470Z","__v":0}],"navMaps":{"firstHrefInVersion":{"Latest":{"href":"/guides/prompts/ultimate-ai-sdr","matchLevel":0},"Prisma AIRS":{"href":"/aigw/introduction/welcome","matchLevel":4},"Virtual Keys (Deprecated)":{"href":"/guides/prompts/ultimate-ai-sdr","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-08-10T11:57:33.605Z","gitLastModified":"2026-08-06T05:55:04.000Z","originalFileLocation":"guides/prompts/ultimate-ai-sdr.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds\">\u003cmeta data-mint-head name=\"application-name\" content=\"Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ultimate AI SDR - Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Portkey AI Gateway Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://portkey-docs.mintlify.app/_mintlify/api/og/v2?division=Prompt+Engineering\u0026amp;title=Ultimate+AI+SDR\u0026amp;description=Building+a+sophisticated+AI+SDR+agent+leveraging+internet+search+and+evals+to+draft+personalized+outreach+emails+in+15+seconds\u0026amp;theme=262137c9f2583e48984715e7\u0026amp;signature=9781cc061484141a8ad6d48adeee957761872c864607d035496c2e2b2bf91f9b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ultimate AI SDR - Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://portkey-docs.mintlify.app/_mintlify/api/og/v2?division=Prompt+Engineering\u0026amp;title=Ultimate+AI+SDR\u0026amp;description=Building+a+sophisticated+AI+SDR+agent+leveraging+internet+search+and+evals+to+draft+personalized+outreach+emails+in+15+seconds\u0026amp;theme=262137c9f2583e48984715e7\u0026amp;signature=9781cc061484141a8ad6d48adeee957761872c864607d035496c2e2b2bf91f9b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/portkey-docs/9Whrk-8bCE6hyGSn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Portkey (Prisma AIRS AI Gateway) Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0891B2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guides/prompts/ultimate-ai-sdr.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.portkey.ai/#organization\",\"name\":\"Portkey (Prisma AIRS AI Gateway) Docs\",\"url\":\"https://docs.portkey.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/portkey-docs/tHk-hgNjLbEj4dhh/images/portkey-PANW-company-logo-positive.png?fit=max\u0026auto=format\u0026n=tHk-hgNjLbEj4dhh\u0026q=85\u0026s=c5fb09014ff79616583b1d3bffe27450\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.portkey.ai/docs#website\",\"name\":\"Portkey (Prisma AIRS AI Gateway) Docs\",\"url\":\"https://docs.portkey.ai/docs\",\"publisher\":{\"@id\":\"https://docs.portkey.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr#webpage\",\"url\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr\",\"name\":\"Ultimate AI SDR\",\"description\":\"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds\",\"dateModified\":\"2026-08-06T05:55:04.000Z\",\"isPartOf\":{\"@id\":\"https://docs.portkey.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prompt Engineering\",\"item\":\"https://docs.portkey.ai/docs/guides/prompts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ultimate AI SDR\",\"item\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr#article\",\"headline\":\"Ultimate AI SDR\",\"name\":\"Ultimate AI SDR\",\"description\":\"Building a sophisticated AI SDR agent leveraging internet search and evals to draft personalized outreach emails in 15 seconds\",\"url\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr\",\"mainEntityOfPage\":{\"@id\":\"https://docs.portkey.ai/docs/guides/prompts/ultimate-ai-sdr#webpage\"},\"dateModified\":\"2026-08-06T05:55:04.000Z\",\"publisher\":{\"@id\":\"https://docs.portkey.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.portkey.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Portkey (Prisma AIRS AI Gateway) Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Portkey (Prisma AIRS AI Gateway) Docs","nav":{"global":null,"versions":[{"version":"Latest","tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/introduction/what-is-portkey"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/ecosystem"}]},{"tab":"Gateway APIs","pages":[{"title":"Gateway APIs","href":"/api-reference/inference-api/introduction"}]},{"tab":"Admin APIs","pages":[{"title":"Admin APIs","href":"/api-reference/admin-api/introduction"}]},{"tab":"Cookbooks","groups":[{"group":"Evals","pages":[{"title":"How to Run Structured Output Evals at Scale","href":"/guides/use-cases/run-batch-evals"},{"title":"Building an LLM-as-a-Judge System for AI (Customer Support) Agent","href":"/guides/prompts/llm-as-a-judge"}]},{"group":"Prompt Engineering","pages":[{"title":null,"description":null,"href":"/guides/prompts"},{"title":"Ultimate AI SDR","href":"/guides/prompts/ultimate-ai-sdr"},{"title":"Build a chatbot using Portkey's Prompt Templates","description":"Portkey's prompt templates offer a powerful solution for testing and building chatbots.","href":"/guides/prompts/build-a-chatbot-using-portkeys-prompt-templates"},{"title":"Building an LLM-as-a-Judge System for AI (Customer Support) Agent","href":"/guides/prompts/llm-as-a-judge"},{"title":"Optimizing Prompts for Customer Support using Portkey | LLama Prompt Ops Integration","href":"/guides/prompts/llama-prompts"}]},{"group":"Whitepapers","pages":[{"group":"Optimizing LLM Costs","pages":[{"title":"Executive Summary","href":"/guides/whitepapers/optimizing-llm-costs/executive-summary"},{"title":"1. Introduction","href":"/guides/whitepapers/optimizing-llm-costs/introduction"},{"title":"2. Understanding LLM Cost Drivers","href":"/guides/whitepapers/optimizing-llm-costs/llm-cost-drivers"},{"title":"3. FrugalGPT Techniques for Cost Optimization","href":"/guides/whitepapers/optimizing-llm-costs/frugalgpt-techniques"},{"title":"4. Advanced Strategies for Performance Improvement","href":"/guides/whitepapers/optimizing-llm-costs/advanced-strategies"},{"title":"5. Architectural Considerations","href":"/guides/whitepapers/optimizing-llm-costs/architectural-considerations"},{"title":"6. Operational Best Pracitces","href":"/guides/whitepapers/optimizing-llm-costs/operational-best-practices"},{"title":"7. Cost Effective Development Practices","href":"/guides/whitepapers/optimizing-llm-costs/cost-effective-development"},{"title":"8. User Education and Change Management","href":"/guides/whitepapers/optimizing-llm-costs/user-education"},{"title":"9. Future Trends in LLM Cost Optimization","href":"/guides/whitepapers/optimizing-llm-costs/future-trends"},{"title":"10. Conclusion and Key Takeaways","href":"/guides/whitepapers/optimizing-llm-costs/conclusion-and-key-takeaways"}]}]},{"group":"Getting Started","pages":[{"title":"Overview","href":"/guides/getting-started"},{"title":"A/B Test Prompts and Models","href":"/guides/getting-started/a-b-test-prompts-and-models"},{"title":"Tackling Rate Limiting","href":"/guides/getting-started/tackling-rate-limiting"},{"title":"Function Calling","href":"/guides/getting-started/function-calling"},{"title":"Image Generation","href":"/guides/getting-started/image-generation"},{"title":"Getting Started with AI Gateway","href":"/guides/getting-started/getting-started-with-ai-gateway"},{"title":"Llama 3 on Groq","href":"/guides/getting-started/llama-3-on-groq"},{"title":"Return Repeat Requests from Cache","href":"/guides/getting-started/return-repeat-requests-from-cache"},{"title":"Trigger Automatic Retries on LLM Failures","href":"/guides/getting-started/trigger-automatic-retries-on-llm-failures"},{"title":"101 on Portkey's Gateway Configs","href":"/guides/getting-started/101-on-portkey-s-gateway-configs"}]},{"group":"Integrations","pages":[{"title":"Overview","href":"/guides/integrations"},{"title":"Portkey CLI","href":"/guides/coding-agents/agent-cli"},{"title":"Skills Registry","href":"/guides/coding-agents/skills"},{"title":"Llama 3 on Portkey + Together AI","href":"/guides/integrations/llama-3-on-portkey-+-together-ai"},{"title":"Introduction to GPT-4o","href":"/guides/integrations/introduction-to-gpt-4o"},{"title":"Anyscale","href":"/guides/integrations/anyscale"},{"title":"Mistral","href":"/guides/integrations/mistral"},{"title":"Vercel AI","href":"/guides/integrations/vercel-ai"},{"title":"Deepinfra","href":"/guides/integrations/deepinfra"},{"title":"Groq","href":"/guides/integrations/groq"},{"title":"Langchain","href":"/guides/integrations/langchain"},{"title":"Mixtral 8x22b","href":"/guides/integrations/mixtral-8x22b"},{"title":"Segmind","href":"/guides/integrations/segmind"},{"title":"Sync Open WebUI Feedback → Portkey","href":"/guides/integrations/openwebui-to-portkey"}]},{"group":"Use Cases","pages":[{"title":"Overview","href":"/guides/use-cases"},{"title":"Unified LLM API with Automatic Failover \u0026 Error Handling","href":"/guides/use-cases/enterprise-ready-unified-api"},{"title":"Multi-Tenant LLM Access with Enterprise Control for Customer-Facing Apps","href":"/guides/use-cases/multi-tenant-ai-feature"},{"title":"Enforcing Budget, Token \u0026 Rate Limits: Use Cases","href":"/guides/use-cases/enforcing-limits-and-budgets"},{"title":"Testing Application Resilience with Fallbacks","href":"/guides/use-cases/fallbacks-test"},{"title":"How to use Portkey Guardrails for PII Protection","href":"/guides/use-cases/guardrail-pii-use-case"},{"title":"Creating your own partner guardrails","href":"/guides/use-cases/creating-partner-guardrails"},{"title":"Handle streaming output guardrails for client-side decisions","href":"/guides/use-cases/streaming-output-guardrails"},{"title":"Web Search for Any LLM in LibreChat","href":"/guides/use-cases/librechat-web-search"},{"title":"Few-Shot Prompting","href":"/guides/use-cases/few-shot-prompting"},{"title":"Enforcing JSON Schema with Anyscale \u0026 Together","href":"/guides/use-cases/enforcing-json-schema-with-anyscale-and-together"},{"title":"Detecting Emotions with GPT-4o","href":"/guides/use-cases/emotions-with-gpt-4o"},{"title":"Build an article suggestion app with Supabase pgvector, and Portkey","href":"/guides/use-cases/build-an-article-suggestion-app-with-supabase-pgvector-and-portkey"},{"title":"Setting up resilient Load balancers with failure-mitigating Fallbacks","href":"/guides/use-cases/setting-up-resilient-load-balancers-with-failure-mitigating-fallbacks"},{"title":"Combining Routing Strategies: Conditional, Load Balancing \u0026 Fallbacks","href":"/guides/use-cases/combining-routing-strategies"},{"title":"Run Portkey on Prompts from Langchain Hub","href":"/guides/use-cases/run-portkey-on-prompts-from-langchain-hub"},{"title":"Smart Fallback with Model-Optimized Prompts","href":"/guides/use-cases/smart-fallback-with-model-optimized-prompts"},{"title":"How to use OpenAI SDK with Portkey Prompt Templates","href":"/guides/use-cases/how-to-use-openai-sdk-with-portkey-prompt-templates"},{"title":"Setup OpenAI -> Azure OpenAI Fallback","href":"/guides/use-cases/setup-openai-greater-than-azure-openai-fallback"},{"title":"Fallback from SDXL to Dall-e-3","href":"/guides/use-cases/fallback-from-sdxl-to-dall-e-3"},{"title":"Comparing Top10 LMSYS Models with Portkey","href":"/guides/use-cases/comparing-top10-lmsys-models-with-portkey"},{"title":"Request metadata use cases","href":"/guides/use-cases/metadata-use-cases"},{"title":"Tracking LLM Costs Per User with Portkey","href":"/guides/use-cases/track-costs-using-metadata"},{"title":"Comparing DeepSeek Models Against OpenAI, Anthropic \u0026 More Using Portkey","href":"/guides/use-cases/deepseek-r1"},{"title":"Portkey with OpenAI Computer Use","href":"/guides/use-cases/openai-computer-use"},{"title":"Using Private MCP Servers with Responses API","href":"/guides/use-cases/private-mcp-servers"},{"title":"Converting STDIO to Remote MCP Servers","icon":"globe","href":"/guides/converting-stdio-to-streamable-http"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026/september"}]},{"tab":"Help Center","pages":[{"title":"Help Center","href":"/help-center/you-do-not-have-enough-permissions"}]}]},{"version":"Prisma AIRS","pages":[{"title":"Prisma AIRS","href":"/aigw/introduction/welcome"}]},{"version":"Virtual Keys (Deprecated)","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/virtual_key_old/introduction/what-is-portkey"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/virtual_key_old/integrations/ecosystem"}]},{"tab":"Inference API","pages":[{"title":"Inference API","href":"/api-reference/inference-api/introduction"}]},{"tab":"Admin API","pages":[{"title":"Admin API","href":"/api-reference/admin-api/introduction"}]},{"tab":"Cookbooks","groups":[{"group":"Evals","pages":[{"title":"How to Run Structured Output Evals at Scale","href":"/guides/use-cases/run-batch-evals"},{"title":"Building an LLM-as-a-Judge System for AI (Customer Support) Agent","href":"/guides/prompts/llm-as-a-judge"}]},{"group":"Prompt Engineering","pages":[{"title":null,"description":null,"href":"/guides/prompts"},{"title":"Ultimate AI SDR","href":"/guides/prompts/ultimate-ai-sdr"},{"title":"Build a chatbot using Portkey's Prompt Templates","description":"Portkey's prompt templates offer a powerful solution for testing and building chatbots.","href":"/guides/prompts/build-a-chatbot-using-portkeys-prompt-templates"},{"title":"Building an LLM-as-a-Judge System for AI (Customer Support) Agent","href":"/guides/prompts/llm-as-a-judge"},{"title":"Optimizing Prompts for Customer Support using Portkey | LLama Prompt Ops Integration","href":"/guides/prompts/llama-prompts"}]},{"group":"Whitepapers","pages":[{"group":"Optimizing LLM Costs","pages":[{"title":"Executive Summary","href":"/guides/whitepapers/optimizing-llm-costs/executive-summary"},{"title":"1. Introduction","href":"/guides/whitepapers/optimizing-llm-costs/introduction"},{"title":"2. Understanding LLM Cost Drivers","href":"/guides/whitepapers/optimizing-llm-costs/llm-cost-drivers"},{"title":"3. FrugalGPT Techniques for Cost Optimization","href":"/guides/whitepapers/optimizing-llm-costs/frugalgpt-techniques"},{"title":"4. Advanced Strategies for Performance Improvement","href":"/guides/whitepapers/optimizing-llm-costs/advanced-strategies"},{"title":"5. Architectural Considerations","href":"/guides/whitepapers/optimizing-llm-costs/architectural-considerations"},{"title":"6. Operational Best Pracitces","href":"/guides/whitepapers/optimizing-llm-costs/operational-best-practices"},{"title":"7. Cost Effective Development Practices","href":"/guides/whitepapers/optimizing-llm-costs/cost-effective-development"},{"title":"8. User Education and Change Management","href":"/guides/whitepapers/optimizing-llm-costs/user-education"},{"title":"9. Future Trends in LLM Cost Optimization","href":"/guides/whitepapers/optimizing-llm-costs/future-trends"},{"title":"10. Conclusion and Key Takeaways","href":"/guides/whitepapers/optimizing-llm-costs/conclusion-and-key-takeaways"}]}]},{"group":"Getting Started","pages":[{"title":"Overview","href":"/guides/getting-started"},{"title":"A/B Test Prompts and Models","href":"/guides/getting-started/a-b-test-prompts-and-models"},{"title":"Tackling Rate Limiting","href":"/guides/getting-started/tackling-rate-limiting"},{"title":"Function Calling","href":"/guides/getting-started/function-calling"},{"title":"Image Generation","href":"/guides/getting-started/image-generation"},{"title":"Getting Started with AI Gateway","href":"/guides/getting-started/getting-started-with-ai-gateway"},{"title":"Llama 3 on Groq","href":"/guides/getting-started/llama-3-on-groq"},{"title":"Return Repeat Requests from Cache","href":"/guides/getting-started/return-repeat-requests-from-cache"},{"title":"Trigger Automatic Retries on LLM Failures","href":"/guides/getting-started/trigger-automatic-retries-on-llm-failures"},{"title":"101 on Portkey's Gateway Configs","href":"/guides/getting-started/101-on-portkey-s-gateway-configs"}]},{"group":"Integrations","pages":[{"title":"Overview","href":"/guides/integrations"},{"title":"Arize with Portkey: Multi-LLM Debate with Traces \u0026 Evals","href":"/guides/integrations/arize-portkey"},{"title":"Llama 3 on Portkey + Together AI","href":"/guides/integrations/llama-3-on-portkey-+-together-ai"},{"title":"Introduction to GPT-4o","href":"/guides/integrations/introduction-to-gpt-4o"},{"title":"Anyscale","href":"/guides/integrations/anyscale"},{"title":"Mistral","href":"/guides/integrations/mistral"},{"title":"Vercel AI","href":"/guides/integrations/vercel-ai"},{"title":"Deepinfra","href":"/guides/integrations/deepinfra"},{"title":"Groq","href":"/guides/integrations/groq"},{"title":"Langchain","href":"/guides/integrations/langchain"},{"title":"Mixtral 8x22b","href":"/guides/integrations/mixtral-8x22b"},{"title":"Segmind","href":"/guides/integrations/segmind"}]},{"group":"Use Cases","pages":[{"title":"Overview","href":"/guides/use-cases"},{"title":"Web Search for Any LLM in LibreChat","href":"/guides/use-cases/librechat-web-search"},{"title":"Few-Shot Prompting","href":"/guides/use-cases/few-shot-prompting"},{"title":"Enforcing JSON Schema with Anyscale \u0026 Together","href":"/guides/use-cases/enforcing-json-schema-with-anyscale-and-together"},{"title":"Detecting Emotions with GPT-4o","href":"/guides/use-cases/emotions-with-gpt-4o"},{"title":"Build an article suggestion app with Supabase pgvector, and Portkey","href":"/guides/use-cases/build-an-article-suggestion-app-with-supabase-pgvector-and-portkey"},{"title":"Setting up resilient Load balancers with failure-mitigating Fallbacks","href":"/guides/use-cases/setting-up-resilient-load-balancers-with-failure-mitigating-fallbacks"},{"title":"Combining Routing Strategies: Conditional, Load Balancing \u0026 Fallbacks","href":"/guides/use-cases/combining-routing-strategies"},{"title":"Run Portkey on Prompts from Langchain Hub","href":"/guides/use-cases/run-portkey-on-prompts-from-langchain-hub"},{"title":"Smart Fallback with Model-Optimized Prompts","href":"/guides/use-cases/smart-fallback-with-model-optimized-prompts"},{"title":"How to use OpenAI SDK with Portkey Prompt Templates","href":"/guides/use-cases/how-to-use-openai-sdk-with-portkey-prompt-templates"},{"title":"Setup OpenAI -> Azure OpenAI Fallback","href":"/guides/use-cases/setup-openai-greater-than-azure-openai-fallback"},{"title":"Fallback from SDXL to Dall-e-3","href":"/guides/use-cases/fallback-from-sdxl-to-dall-e-3"},{"title":"Comparing Top10 LMSYS Models with Portkey","href":"/guides/use-cases/comparing-top10-lmsys-models-with-portkey"},{"title":"Request metadata use cases","href":"/guides/use-cases/metadata-use-cases"},{"title":"Tracking LLM Costs Per User with Portkey","href":"/guides/use-cases/track-costs-using-metadata"},{"title":"Enforcing Budget, Token \u0026 Rate Limits: Use Cases","href":"/guides/use-cases/enforcing-limits-and-budgets"},{"title":"Comparing DeepSeek Models Against OpenAI, Anthropic \u0026 More Using Portkey","href":"/guides/use-cases/deepseek-r1"},{"title":"Portkey with OpenAI Computer Use","href":"/guides/use-cases/openai-computer-use"},{"title":"Using Private MCP Servers with Responses API","href":"/guides/use-cases/private-mcp-servers"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2025/may"}]},{"tab":"Help articles","pages":[{"title":"Help articles","href":"/help-center/you-do-not-have-enough-permissions"}]}]}]},"title":"Ultimate AI SDR - Portkey (Prisma AIRS AI Gateway) Docs","buildId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","deploymentId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-Dit-D9cD.js","DynamicMarkdown-B3juXLG8.js","zoom-image-lightbox-D2y4WbiL.js","lightbox-handle-r17bVUz3.js"]}