100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
first commit
Madhu80bf1b6cba2a
diff --git a/ai_agent_tutorials/ai_lead_generation_agent/README.md b/ai_agent_tutorials/ai_lead_generation_agent/README.mdnew file mode 100644index 00000000..e69de29bdiff --git a/ai_agent_tutorials/ai_lead_generation_agent/requirements.txt b/ai_agent_tutorials/ai_lead_generation_agent/requirements.txtnew file mode 100644index 00000000..e69de29bdiff --git a/ai_agent_tutorials/ai_lead_generation_agent/test.py b/ai_agent_tutorials/ai_lead_generation_agent/test.pynew file mode 100644index 00000000..a4e2a6f1--- /dev/null+++ b/ai_agent_tutorials/ai_lead_generation_agent/test.py@@ -0,0 +1,47 @@+import requests++# Define the API endpoint+url = "https://api.firecrawl.dev/v1/search"++# Set your API key in the headers+headers = {+ "Authorization": "Bearer fc-",+ "Content-Type": "application/json"+}++# Define the company name and keywords+company_name = "Rollout AI"+company_description = "voice cloning open source models or api"+keywords = "https://rollout.site"++# Craft the query+query = f" website blogs, forums, and reddit communities URL to {company_description}, where i can find people looking for similar services"+query1 = f" reddit and quora websites where people are looking for {company_description} services"++# Set the payload+payload = {+ "query": query1,+ "limit": 10, # Adjust the limit as needed+ "lang": "en",+ "location": "United States",+ "timeout": 60000,+}++# Send the POST request+response = requests.post(url, json=payload, headers=headers)++# Check if the request was successful+if response.status_code == 200:+ data = response.json()+ if data.get("success"):+ results = data.get("data", [])+ similar_company_urls = [result["url"] for result in results]+ print("Similar Company URLs:")+ for url in similar_company_urls:+ print(url)+ else:+ print("Search request was not successful.")+ print(data.get("warning", "No warning provided."))+else:+ print(f"Failed to retrieve data. Status code: {response.status_code}")+