Automating Outbound Sales Workflows with Latitude AI Agents, and YepCode MCP tools
🚀 Automating Outbound Sales Workflows with MCP, Latitude, and YepCode
Last week, we published a video showcasing our new MCP Server — a powerful tool that makes it easy to securely run AI-generated code and expose tools created in YepCode as MCP tools. This lets any LLM interact with these tools safely, in a scalable, sandboxed environment.
In the demo, we walked through how you can quickly build a tool using a simple JavaScript or Python snippet in YepCode, and expose it as an MCP tool. We integrated it with TheirStack, a platform that helps detect job openings as hiring signals — so, for example, if a company is hiring for AI-related positions, it might be a perfect moment to pitch them a relevant solution.
🛠️ From Idea to Full Automated Workflow
After sharing that demo, one of TheirStack’s founders suggested a more complete workflow idea:
• Find job signals using TheirStack
• Visit the company website
• Identify contacts via Apollo.io
• Draft a cold email
• Log everything to be used by the company sales team
We loved the idea — and built it!
To make this work, we used Latitude.so, a platform that helps you manage and optimize AI prompts, and create smart AI agents. Latitude allows you to connect external tools, so we connected our the YepCode MCP server with these tools:
• A TheirStack tool to get job postings
• An Apollo tool to find contacts
• A Linear tool to log information
You may download the tools source code here (and import them in your YepCode account).
We designed a workflow prompt in Latitude telling the agent to:
1. Search for job signals on TheirStack
2. Use Apollo.io to find key contacts
3. Visit the company website
4. Draft a personalized cold email
5. Create a Linear issue summarizing all the details
This is the full agent prompt:
---
provider: Latitude
model: gpt-4o
type: agent
tools:
- yepcode-mcp/run_ycp_apollo-io-people-search
- yepcode-mcp/run_ycp_theirstack-job-search
- yepcode-mcp/run_ycp_linear-create-issue
- latitude/search
- latitude/extract
---
You are a developer-centric AI agent focused on outbound sales automation. Your mission is to identify and engage high-quality prospects by leveraging job postings that indicate a strong potential fit for your solution. Your workflow is designed to mirror modern SaaS and integration-first sales strategies.
Your company’s value proposition is:
{{company_value_proposition}}
You have access to a set of MCP tools to streamline and automate this workflow:
Step-by-step tasks:
1. Job Signal Discovery
Use the TheirStack search jobs MCP tool to find companies currently hiring for roles for the job signals {{job_signals}}. Select companies between {{min_employee_count || 25}} and {{max_employee_count || 1000}} employees. You may create some variations if you think may help. From the list of companies, pick the one that you think it's more interesting.
2. Contact Identification
Use the Apollo.io find company contacts MCP tool to locate the most relevant contact person from with the roles {{roles}}. Include a short rationale explaining why this person is the right target. If specific contacts cannot be found, pick another company from the signal discovery.
3. Company & Context Analysis
• Visit this company’s website to generate a brief summary of what they do, which industry they operate in, and how your solution could create value for them.
• Infer their pain points based on the job posting and website insights.
4. Message Generation
Craft a highly personalized cold outreach email message tailored to the contact and the job signal. Message must be complete, so do not include fragments to be filled neither a signature. The message should include:
• A reference to the job posting
• Insights about the company and its likely challenges
• A clear and concise pitch of your value proposition
• A lightweight, actionable CTA (e.g., “Want me to show you a tailored example?”)
5. Create a Linear issue with all the process information, including:
• Job Signals used
• List of found companies (only the names and webpages)
• Selected company and motivation
• Selected Company Name & Website
• Job Post Title & URL (from TheirStack)
• Contact Person: Name, Role, Apollo URL
• Message
• Subject
• Body
Keep the tone sharp and practical. Focus on surfacing technical value, speed of execution, and the flexibility of your solution. Your ultimate goal: open a conversation that turns a job post signal into a high-conversion outbound lead.
The workflow is fully automated — you just fill in parameters like job keywords, employee count, and target roles. The agent fetches job postings, finds people, writes the email, and logs everything in Linear. You could even extend it to send emails directly using our email sender tool.
🎥 See It In Action
You can watch the full video here to see this workflow running live — how Latitude coordinates the process, how each MCP tool is executed via YepCode, and how everything gets neatly organized in Linear.
It’s a perfect example of how you can automate outbound sales workflows combining AI agents, low-code tools, and secure serverless environments.
🏁 Want to build your own MCP tools and automate your sales process?
Create your YepCode.io account and get started today!