1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "agent",
10 "schemaVersion": "1.0",
11 "operation": "prepare",
12 "language": "ko",
13 "project": {
14 "name": "Personal Reading Queue",
15 "brief": "A single-person browser app saves book title and author, marks a book read or unread, filters by reading status, and deletes a book after explicit confirmation. All data stays in localStorage on this browser. No login, server, payments or external fetch. Validate required nonempty title and show recoverable storage errors.",
16 "mustHave": [
17 "save book with title and author",
18 "mark book read or unread",
19 "filter books by reading status",
20 "confirm before deleting a book",
21 "persist books in localStorage",
22 ],
23 "goals": ["organize a personal reading queue"],
24 "contextType": "greenfield",
25 "targetUsers": ["individual"],
26 "mustNotHave": [
27 "authentication",
28 "payments",
29 "server",
30 "external paid API",
31 ],
32 },
33 "capabilityPolicy": [
34 {
35 "capabilityId": "LOCAL_STORAGE",
36 "disposition": "REQUIRED",
37 "evidenceRefs": ["SRC-PROJECT-BRIEF"],
38 },
39 {
40 "capabilityId": "AUTHENTICATION",
41 "disposition": "FORBIDDEN",
42 "evidenceRefs": ["SRC-PROJECT-BRIEF"],
43 },
44 {
45 "capabilityId": "PAYMENT",
46 "disposition": "FORBIDDEN",
47 "evidenceRefs": ["SRC-PROJECT-BRIEF"],
48 },
49 {
50 "capabilityId": "SERVER",
51 "disposition": "FORBIDDEN",
52 "evidenceRefs": ["SRC-PROJECT-BRIEF"],
53 },
54 {
55 "capabilityId": "EXTERNAL_API",
56 "disposition": "FORBIDDEN",
57 "evidenceRefs": ["SRC-PROJECT-BRIEF"],
58 },
59 {
60 "capabilityId": "EXTERNAL_FETCH",
61 "disposition": "FORBIDDEN",
62 "evidenceRefs": ["SRC-PROJECT-BRIEF"],
63 },
64 ],
65 "stack": {
66 "frontend": "react-typescript",
67 "styling": "css-variables",
68 "backend": "none",
69 "database": "none",
70 "preserveExisting": False,
71 },
72 "privacy": {
73 "allowExternalLlmProcessing": False,
74 "allowPublicWebsiteFetch": False,
75 "sourceRightsConfirmed": True,
76 },
77}
78
79
80run = client.actor("bread-kim/ai-development-blueprint-generator").call(run_input=run_input)
81
82
83print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
84for item in client.dataset(run.default_dataset_id).iterate_items():
85 print(item)
86
87