Skip to content

Commit 57c2df4

Browse files
Improve prompt
1 parent 25f1949 commit 57c2df4

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/components/QuickStartPromptButton.jsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,45 @@ import React, { useEffect, useRef, useState } from 'react';
22

33
import styles from './QuickStartPromptButton.module.css';
44

5-
const PROMPT = `Go step by step to create an Apify Actor:
5+
const PROMPT = `Follow this step-by-step workflow::
66
77
**Step 1: Verify Prerequisites**
8-
Ask the user for permission to prompt in the terminal:
8+
9+
First, verify the user's environment by running these commands:
10+
911
\`\`\`bash
10-
node --version # (should be 16 or higher)
12+
node --version # Requires Node.js 16 or higher
1113
npm --version
12-
apify --version # (to check if Apify CLI is installed)
14+
apify --version # Check if Apify CLI is already installed
1315
\`\`\`
1416
15-
**Step 2: Install Apify CLI (if needed)**
17+
If any prerequisites are missing, guide the user through installation before proceeding.
18+
19+
**Step 2: Install/Update Apify CLI**
1620
\`\`\`bash
1721
npm install -g apify-cli
1822
\`\`\`
1923
2024
**Step 3: Create a New Actor**
25+
26+
Explain that this will prompt for actor name and template selection.
27+
2128
\`\`\`bash
2229
apify create
2330
\`\`\`
24-
Show the user a message about https://apify.com/templates where it is possible to find all the templates.
31+
32+
Direct users to explore templates at https://apify.com/templates.
2533
2634
**Step 4: Navigate to the Actor Directory**
35+
2736
\`\`\`bash
28-
cd <new-directory> # your actor directory
37+
cd [actor-name] # Use the actual name they chose in step 3
2938
\`\`\`
3039
3140
**Step 5: Run the Actor Locally**
41+
42+
Explain that this will run the actor locally.
43+
3244
\`\`\`bash
3345
apify run
3446
\`\`\`

0 commit comments

Comments
 (0)