◆ CREWAI~5 minPYTHON

CrewAI agent that finds funded prospects

Drop-in tool for CrewAI agents — pair with an email writer to auto-draft outreach.

◆ STEPS
  1. 01Set FUNDED_API_KEY.
  2. 02Run — CrewAI calls our AI search endpoint and returns structured data.
◆ CODE · PYTHON
# pip install crewai requests

from crewai import Agent, Task, Crew
from crewai_tools import tool
import requests, os

@tool("Find funded startups")
def find_funded(query: str) -> str:
    """Natural-language search for recently funded startups."""
    r = requests.post(
        "https://fundedapi.com/v1/search/ai",
        json={"query": query},
        headers={"Authorization": f"Bearer {os.environ['FUNDED_API_KEY']}"},
    )
    return r.json()

researcher = Agent(
    role="Sales prospect researcher",
    goal="Find funded startups matching our ICP",
    backstory="Expert in B2B SaaS targeting",
    tools=[find_funded],
)

task = Task(
    description="Find 10 AI startups that raised Seed in the US last month and are hiring.",
    expected_output="JSON list with name, website, and funding round.",
    agent=researcher,
)

Crew(agents=[researcher], tasks=[task]).kickoff()
◆ PREREQUISITES
  • A FundedAPI key (free). Grab one.
  • Set FUNDED_API_KEY in your environment.
  • Read the API reference if you need other endpoints.
▶ RELATED RECIPES