1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": {
10 "name": "Example Studio",
11 "offer": "A reusable insulated bottle, described by the client for this demonstration.",
12 },
13 "goals": [{
14 "id": "product-use",
15 "description": "Explain how the supplied bottle is used during a workday.",
16 }],
17 "audiences": [{
18 "id": "commuters",
19 "description": "Adults who asked the client for reusable bottle information.",
20 }],
21 "claims": [{
22 "id": "capacity",
23 "text": "The client states a 500 ml capacity.",
24 "approvalEvidence": "client-product-sheet-v2",
25 }],
26 "assets": [{
27 "id": "photo",
28 "description": "Client-owned bottle photograph.",
29 "sourceUrl": "https://example.com/assets/bottle",
30 }],
31 "references": [{
32 "id": "pacing-note",
33 "notes": "Use the supplied reference only to discuss pacing. Keep competitor slogans outside the new copy.",
34 }],
35 "requirements": [
36 {
37 "id": "ownership",
38 "text": "Designer confirms permission for every supplied asset.",
39 },
40 {
41 "id": "capacity-review",
42 "text": "Reviewer checks the capacity statement against the product sheet.",
43 "deliverableIds": ["meta-image"],
44 },
45 ],
46 "deliverables": [{
47 "id": "meta-image",
48 "channel": "Meta",
49 "format": "Client-specified square image. Confirm current placement requirements before production.",
50 "goalIds": ["product-use"],
51 "audienceIds": ["commuters"],
52 "claimIds": ["capacity"],
53 "assetIds": ["photo"],
54 "referenceIds": ["pacing-note"],
55 "acceptanceCriteria": [
56 "The reviewer can identify the bottle and find the supplied capacity statement.",
57 "The designer attaches the asset permission reference.",
58 ],
59 }],
60}
61
62
63run = client.actor("danielmichalek/creative-brief-generator").call(run_input=run_input)
64
65
66print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
67for item in client.dataset(run.default_dataset_id).iterate_items():
68 print(item)
69
70