1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "reviews": [
10 {
11 "reviewerName": "John D.",
12 "rating": 5,
13 "text": "Amazing service! The team was professional and got the job done quickly. Highly recommend!",
14 "date": "2024-12-15",
15 },
16 {
17 "reviewerName": "Sarah M.",
18 "rating": 2,
19 "text": "Waited too long for service. The work was okay but communication could be better.",
20 "date": "2024-12-14",
21 },
22 ],
23 "businessName": "Acme Plumbing",
24 "ownerName": "Mike",
25 "customTemplates": [],
26}
27
28
29run = client.actor("alizarin_refrigerator-owner/review-response-generator").call(run_input=run_input)
30
31
32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34 print(item)
35
36