Guides

Grok Build for product managers

View as Markdown

PMs use Grok Build to prototype features, validate concepts with working code, and ship small changes directly. When you can build a working version of what you are describing, conversations with stakeholders and engineers become more concrete.

Beyond prototyping, Grok Build lets you answer technical questions by querying the codebase directly, generate specs grounded in what is possible, automate recurring tasks like keeping FAQ docs up to date, and connect to the tools you already use (Jira, Notion, Figma) so everything flows into one workspace.

Building prototypes

Describe what you want to build. The agent builds it, you see it in the integrated browser, and you refine with follow-up prompts. Each iteration takes seconds.

Agent example: Prototype a settings page
Create a settings page for notification preferences. Users should be able to toggle email, push, and in-app notifications separately for different event types.
See the agent's response
Searched codebase existing component library
Read src/components/ui/index.ts
Thought for 2s
Found the design system. I'll use the existing Card, Switch, and form components to build the notification preferences UI.
CreatedNotifications.tsx+78
import { Card, Switch, Select } from '@/components/ui';

const notificationTypes = [
  { id: 'comments', label: 'Comments on your posts' },
  { id: 'mentions', label: 'Mentions in discussions' },
  { id: 'updates', label: 'Product updates' },
];

export function NotificationSettings() {
Ran npm run dev
Browsed localhost:3000/settings/notifications
Built the notification preferences page:
Channels (toggles for each)
•Email notifications
•Push notifications
•In-app notifications
Event Types (individual toggles)
•Comments, mentions, updates, weekly digest
Each event type can be toggled per channel. Settings save automatically. Want me to add a "mute all" option or email frequency controls?
Agent example: Prototype an onboarding flow
Build a prototype of a new onboarding flow with three steps: account setup, team invitation, and first project creation. Make it interactive and use our existing component library.
See the agent's response
Searched codebase existing component library and onboarding patterns
Read src/components/ui/Stepper.tsx
Thought for 2s
Found a Stepper component for multi-step flows. I'll use it with Card for each step's content, and the existing form components for inputs.
CreatedOnboarding.tsx+125
import { Stepper, Card, Input, Button } from '@/components/ui';

const steps = ['Account', 'Team', 'Project'];

export function Onboarding() {
  const [currentStep, setCurrentStep] = useState(0);

  return (
    <div className="min-h-screen bg-muted flex items-center justify-center">
      <Card className="w-full max-w-lg p-8">
        <Stepper steps={steps} current={currentStep} />
        {currentStep === 0 && <AccountSetup />}
        {currentStep === 1 && <TeamInvite />}
        {currentStep === 2 && <FirstProject />}
      </Card>
    </div>
  );
}
Browsed localhost:3000/onboarding
Built the onboarding flow:
Step 1: Account Setup
•Name, email, password fields
•Profile photo upload (optional)
Step 2: Team Invitation
•Email input with "Add more" button
•Skip option for solo users
Step 3: First Project
•Project name input
•Template selection (Blank, Marketing, Engineering)
Navigation: Back/Continue buttons, stepper shows progress. All using your existing component library.

This works well for features that have been discussed but never prioritized, concepts you want to test with users before committing resources, and demos for stakeholder buy-in. A working prototype clarifies requirements in ways that specs and mocks cannot.

Plan Mode helps structure the path from idea to working code. Press Cmd+Shift+P (or Ctrl+Shift+P) to start planning, or Grok Build will suggest it automatically for complex tasks.

A workflow that works well:

  1. Start in Plan Mode with your requirements
  2. Answer clarifying questions as Grok Build researches your codebase
  3. Review and edit the structured plan
  4. Build from the plan, iterating as you see results
  5. Hand off the plan plus prototype to engineering
Plan mode example: Plan and prototype
I want to add a notification preferences page where users can toggle email, push, and in-app notifications for different event types. Plan the implementation, then build a prototype.
See the agent's response
Searched codebase notification system architecture
Read src/services/NotificationService.ts
Read src/models/UserPreferences.ts
Found your existing NotificationService and UserPreferences model. A few questions to scope this:
A) Notification channels - Which should users control?
•a) Email only
•b) Email + in-app
•c) Email + in-app + push (mobile)
Default: Email + in-app
B) Granularity - How fine-grained should settings be?
•a) Global on/off toggle
•b) Per-category (marketing, transactional, product updates)
•c) Per-notification type (15+ individual toggles)
Default: Per-category
C) Default state for new users?
•a) All notifications on
•b) Essential only (transactional)
•c) All off, opt-in required
Default: Essential only

When you start a plan, Grok Build researches your codebase to find relevant files, reviews existing patterns, and asks clarifying questions. The output is a markdown file with file paths, code references, and a structured list of tasks. You can edit the plan directly, save it to your repository, or build from it immediately.

Plans surface technical considerations early and make scope conversations concrete. The prototype shows exactly what you mean. Together, they give engineers a clear starting point.

For more on Plan Mode, see the Plan Mode documentation or the introductory blog post.

Answering technical questions

You can query the codebase directly and get answers grounded in actual code.

Ask mode example: Understand a feature
How does user authentication work? Walk me through the flow from login to session creation.
See the agent's response
Searched codebase user authentication flow
Read src/auth/AuthProvider.tsx
Read src/services/SessionService.ts
Read src/middleware/authMiddleware.ts
Here's how authentication works:
Login Flow
1.User submits credentials to /api/auth/login
2.Server validates against database (bcrypt comparison)
3.Creates JWT with user ID and role, 7-day expiry
4.Sets HTTP-only cookie + returns user object
Session Management
•JWT stored in HTTP-only cookie (not localStorage)
•Refresh token rotates every 24 hours
•Sessions tracked in Redis for instant revocation
Protected Routes
•authMiddleware checks JWT on every API call
•Frontend AuthProvider redirects if no valid session
Notable: MFA is supported but only enabled for admin roles currently (see line 45 in AuthProvider).
Ask mode example: Trace a user flow
What happens when a user hits the usage limit? What do they see and what gets logged?
See the agent's response
Searched codebase usage limit enforcement
Read src/services/UsageService.ts
Read src/middleware/rateLimiter.ts
Read src/components/UsageLimitModal.tsx
Usage Limit Flow
When limit is checked:
1.Every API call goes through rateLimiter middleware
2.Checks usage_counts table for current period
3.Compares against plan_limits for user's plan
What the user sees:
•UsageLimitModal pops up with:
•Current usage (e.g., "450 / 500 API calls")
•Upgrade CTA for paid plans
•Link to usage dashboard
What gets logged:
•usage_events table records every limit check
•Slack alert to #billing when user hits 90%
•Analytics event: usage_limit_reached
Notable: Free tier has a soft limit - allows 10% overage before hard block (see line 67 in rateLimiter.ts).

Use Ask mode when exploring. It prevents changes while you learn. Press Shift+Tab and select Ask.

The codebase is the source of truth for how things work. See Understanding Unfamiliar Code for more exploration techniques.

Data analysis and reporting

PMs often need quick answers from data: usage patterns, conversion metrics, customer segments. Describe what you want to see.

Agent example: Query usage data
Query our analytics database to show me the top 10 features by usage this month, broken down by user plan type.
See the agent's response
Searched codebase analytics database schema
Read prisma/schema.prisma
Thought for 2s
Found the analytics tables: feature_usage, user_events, and plan_type on users. I'll write a query that joins these to get usage by plan.
Ran npx prisma db execute --stdin
Top 10 Features by Usage This Month
FeatureFreeProEnterpriseTotal
Dashboard12,4508,2303,12023,800
Reports8,9006,5402,89018,330
Exports3,2005,6704,23013,100
API1,1004,5008,90014,500
Integrations8903,2005,6009,690
...............
Insight: Enterprise users heavily favor API and Integrations, while Free users concentrate on Dashboard. Exports usage is highest among Pro users.
Agent example: Build a report
Build a simple report showing weekly active users over the last quarter. Include a chart.
See the agent's response
Searched codebase analytics and charting patterns
Read src/components/charts/LineChart.tsx
Thought for 2s
Found Recharts-based components. I'll query the user_sessions table grouped by week and render with the existing LineChart component.
CreatedWAUReport.tsx+65
import { LineChart } from '@/components/charts';
import { useAnalytics } from '@/hooks/useAnalytics';

export function WAUReport() {
  const { data } = useAnalytics('weekly_active_users', { range: '90d' });

  return (
    <Card>
      <h2>Weekly Active Users</h2>
      <LineChart data={data} xKey="week" yKey="users" />
    </Card>
  );
}
Browsed localhost:3000/reports/wau
Built WAU report for last quarter:
Chart shows:
•Week-over-week trend line
•Current week: 14,230 users (+8% WoW)
•Quarter high: 15,100 (week of Nov 15)
•Quarter low: 11,200 (week of Oct 1)
Additional stats:
•Average: 13,450 WAU
•Growth trend: +2.3% per week
•Retention: 78% return within 7 days
Export buttons for CSV and PNG included.

Grok Build can connect to databases, write queries, and generate visualizations. For PMs comfortable with data but not SQL syntax, this removes friction from self-service analytics.

Connecting your existing tools

Plugins and MCP integrations connect Grok Build to tools you already use. Requirements from Jira, context from Confluence, designs from Figma; all flow into the same workspace.

Agent example: Build from Jira ticket
Pull in the requirements from jira.company.com/browse/P... and build a prototype that addresses the acceptance criteria.
See the agent's response
Jira MCP get_issue PROJ-1234
Thought for 2s
The Jira ticket describes a user profile page with avatar upload, bio, and social links. Acceptance criteria are clear. I'll build against these requirements.
Searched codebase existing profile components
CreatedProfile.tsx+92
export function ProfilePage() {
  const { user, updateUser } = useAuth();

  return (
    <div className="max-w-2xl mx-auto p-8">
      <AvatarUpload />
      <ProfileForm />
      <SocialLinks />
    </div>
  );
}
Browsed localhost:3000/profile
Built the profile page from PROJ-1234:
Avatar upload with drag-and-drop (AC #1)
Bio field with 280 char limit (AC #2)
Social links: Twitter, LinkedIn, GitHub (AC #3)
Save button with loading state (AC #4)
All acceptance criteria met. The avatar uses your existing ImageUpload component.
Agent example: Build from Figma
Reference figma.com/file/xyz789/set... and generate a React component that matches the design.
See the agent's response
Figma MCP get_file settings-redesign
Thought for 2s
The Figma frame shows a new settings layout with tabs instead of sidebar. Colors use the updated brand palette. I'll match the design exactly.
Read src/styles/tokens.css
Searched codebase Tab component
CreatedSettings.tsx+95
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui';

export function Settings() {
  return (
    <div className="max-w-4xl mx-auto p-8">
      <Tabs defaultValue="profile">
        <TabsList>
          <TabsTrigger value="profile">Profile</TabsTrigger>
          <TabsTrigger value="account">Account</TabsTrigger>
          <TabsTrigger value="billing">Billing</TabsTrigger>
        </TabsList>
        <TabsContent value="profile">...</TabsContent>
      </Tabs>
    </div>
  );
}
Browsed localhost:3000/settings
Built the settings page from your Figma design:
•Tabbed layout matching the frame (Profile, Account, Billing)
•Used updated brand colors from tokens.css
•Spacing matches the 8px grid in the design
•Form fields laid out per the mockup
The only deviation: I used your existing Tab component instead of custom tabs to maintain consistency.

Browse the Marketplace for available integrations: Linear, Jira, Notion, Confluence, Figma, Slack, and more.

Automating recurring work

Automations run cloud agents on a schedule or in response to events. PMs can use them to keep documentation current, triage incoming requests, and maintain consistency across repositories.

A common example: set up an automation that runs on a schedule to review your FAQ docs against the latest codebase changes and open a PR when answers need updating.

Other use cases for PMs:

  • Triage Slack bugs. An automation listens for bug reports in a Slack channel, investigates the codebase, and files an issue or opens a fix. Start from the Fix Slack Bugs template.
  • Clean up feature flags. Schedule an automation to find and remove stale feature flags after a rollout. Start from the Clean Up Feature Flags template.
  • Review PRs for security. Trigger an automation on every pull request to scan for vulnerabilities. Start from the Find Vulnerabilities template.

Create a new automation at cursor.com/automations, or browse templates in the Marketplace.

Getting started

You do not need a local development environment to start. Cloud Agents connect to your repositories and run in the background. Combined with the Slack integration, you can ask questions and kick off tasks from Slack without opening the editor.

For PMs who want to go deeper, the full Agents Window provides more control: the integrated browser for seeing changes in real-time, direct file editing, and richer context from having the codebase open.

  1. Start with Cloud Agents. Ask questions about your codebase from Slack. No setup required, connect your repositories and go.

  2. Build a prototype. Pick an idea sitting in your backlog and build a working version. Start small.

  3. Use Plan Mode for specs. Press Shift+Tab to start planning. Let Grok Build research your codebase and generate a structured plan.

  4. Use Ask mode to explore. Understand how features work before writing specs. See Understanding Unfamiliar Code for techniques.

  5. Connect your tools. Browse the Marketplace to connect Jira, Notion, Figma, and other tools.

  6. Set up an automation. Pick a recurring task, like keeping FAQ docs current, and create an automation to handle it on a schedule.


Last updated: November 23, 2026