1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "businessName": "TechCorp Inc",
10 "businessDescription": "TechCorp Inc is a leading technology company specializing in innovative software solutions for small and medium businesses since 2010.",
11 "pressReleaseCategory": "product launch",
12 "subjectPressRelease": "Launch of our new AI-powered project management software that helps teams increase productivity by 40%",
13 "keyFeatures": "AI-powered task automation, Real-time collaboration, Advanced analytics dashboard, 40% productivity increase, Integration with 50+ popular tools",
14 "people": "John Smith, CEO of TechCorp Inc",
15 "businessUrl": "https://www.techcorpexampleinc.com/",
16 "location": "San Francisco, CA",
17 "date": "January 15, 2025",
18 "tone": "professional",
19 "language": "English",
20}
21
22
23run = client.actor("onescales/press-release-ai-writer").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30