AI features
P4 Code Review includes AI-powered features that help users understand code changes, improve review quality, and reduce the time spent reviewing complex diffs. AI features can be configured using administrator-managed AI vendors or personal AI vendors configured by individual users.
AI features at a glance
Available actions depend on the prompts configured for the selected AI vendor.
| Feature | Description |
Documentation |
|---|---|---|
|
AI for Code analysis |
Generate AI explanations for individual diff blocks and selected code. |
|
|
AI Assistant for comments |
Improve comments, summarize text, fix spelling and grammar, and run custom prompts. |
|
|
AI in checklists |
Use AI-powered checklist validation. |
|
|
API integration |
Access AI features programmatically using the P4 Code Review API. |
AI vendors and models
P4 Code Review supports multiple AI vendors and AI models.
AI features can use both administrator-managed AI vendors and personal AI vendors. If both types are configured, they are available for use in AI-powered workflows. Depending on how your administrator has configured AI, you can:
-
Use administrator-managed AI vendors.
-
Configure your own AI vendors and credentials.
-
Configure multiple AI models.
-
Configure custom AI prompts.
Supported AI vendors include:
To learn more about supported vendors, see the vendor-specific AI integration topics.
Configure AI vendors
AI vendors can be configured in one of two ways:
-
Administrator-managed AI vendors - Administrators can configure AI vendors, models, prompts, and organizational AI settings for all users. To learn more, see AI Configuration (System information).
-
Personal AI vendors - Users can configure their own AI vendors, credentials, models, and prompts in their profile. To learn more, see Manage AI Vendors.
Who can use AI features?
Users can:
-
Configure personal AI vendors.
-
Configure personal AI models.
-
Configure personal AI prompts.
-
Generate AI-assisted code analysis.
-
Improve review comments with AI.
Administrators can:
-
Enable and configure AI features.
-
Configure organization-managed AI vendors.
-
Configure prompts and AI behavior.
-
Control AI availability.
Developers can:
-
Use AI-related API endpoints.
-
Integrate AI into automated workflows.
-
Configure AI-enabled integrations.