Shata Solutions
← Back to marketplace
Developers

AI Code Review

GPT analyzes PR diffs for bugs, security issues, and style with inline suggestions.

Automation overview

What this automation does

This automation starts when gitHub `pull_request` opened or synchronize webhook. It webhooks pull_request and openai pull_request, then severity tagged, blocks merge label `ai-review-failed` if critical found until human dismiss. AI handles generation and decision logic in the middle of the flow.

Trigger
GitHub `pull_request` opened or synchronize webhook
Main actions
Webhooks pull_request → OpenAI pull_request
Final outcome
severity tagged, blocks merge label `ai-review-failed` if critical found until h…
Execution time
30–90 seconds
Apps used
3 integrations
AI-powered
Yes
Difficulty
Beginner
AIBeginner
Workflow diagram

End-to-end scenario flow

Read-only visualization of how data moves from trigger to final result.

Trigger
GitHub
Webhook received
Step 1
Webhooks
Pull_request
AI
OpenAI
Pull_request
Result
OpenAI
Workflow complete
Step-by-step

How each step runs

  1. 1
    GitHubTrigger
    Webhook received

    GitHub `pull_request` opened or synchronize webhook

  2. 2
    Webhooks
    Pull_request

    GitHub pull_request webhook sends unified diff to GPT-4o with repo coding guidelines from `.cursor/rules` or CONTRIBUTING.md, posts review comments on suspiciou

  3. 3
    OpenAI
    Pull_request

    GitHub pull_request webhook sends unified diff to GPT-4o with repo coding guidelines from `.cursor/rules` or CONTRIBUTING.md, posts review comments on suspiciou

  4. 4
    OpenAI
    Workflow complete

    severity tagged, blocks merge label `ai-review-failed` if critical found until human dismiss.

Apps used

Connected applications

GitHub

Pull_request

Webhooks

Pull_request

OpenAI

Pull_request

Summary

Automation summary

Trigger
GitHub `pull_request` opened or synchronize webhook
Inputs
GitHub `pull_request` opened or synchronize webhook, Business Name, Notification Email, Timezone
Outputs
severity tagged, blocks merge label `ai-review-failed` if critical found until human dismiss., Webhooks pull_request, OpenAI pull_request
Business goal
Automate ai code review end-to-end with accurate app routing.
Execution frequency
Real-time on event
Estimated runtime
30–90 seconds
Error handling
Failed steps retry up to 3 times with exponential backoff; persistent failures notify your configured channel and log to the run history.
Dependencies
GitHub, Webhooks, OpenAI, AI provider API
Benefits

Why use this automation?

Save ~5 hours/week

Remove repetitive steps from AI Code Review so your team focuses on high-value work.

Reduce manual work

Connected apps sync data automatically instead of copy-paste between dashboards.

Prevent human errors

Standardized logic runs the same way every time, with retries on failure.

Faster response times

Events trigger immediate actions instead of waiting for someone to check a queue.

Requirements

What you need to get started

Required apps

  • GitHub
  • Webhooks
  • OpenAI

Required accounts

  • Active GitHub workspace with API access
  • Active Webhooks workspace with API access
  • Active OpenAI workspace with API access
  • Shata Automation workspace (free tier supported)

Required API keys

  • OpenAI or compatible AI provider API key
  • OAuth tokens for each connected integration

Permissions

  • Read access on trigger sources (forms, sheets, webhooks, or CRM objects)
  • Write access on destination apps (email, chat, CRM, or storage)
  • Permission to send prompts to your AI provider

Estimated setup time

  • 1 hour including app authorization and test run
  • Difficulty: Beginner

Automation runtime

Activate this template

PartialSome steps run in preview until their integrations go live.

Connect required apps via OAuth or API keys. Credentials are encrypted server-side. Dev test runs mock external actions when connections are missing.

Draft
0%
Activation readiness

Est. setup time: ~6 min

Required connections

  • GitHub(required)
    Missing
  • webhooks(required)
    Previewwebhooks: workflow actions run in preview
    Missing
  • Missing connection: GitHub
  • Missing connection: webhooks
Manage all connections →View all installations →

Workflow summary

Trigger
GitHub `pull_request` opened or synchronize webhook
Steps
4 nodes
Required apps
2
Optional apps
1

Trigger

Webhook trigger

Activate this workflow to provision the trigger endpoint.

Run history

No runs yet. Install the template and run a test, or activate to receive webhook/schedule runs.

AIFreeBeginnerPartial1 hour setup4.16.4k installs · 49 reviews
Customize for My Business
Analytics

Template performance

15.4k
Views
6.4k
Installs
79
Favorites
4.1
Avg rating
41.9%
Conversion
1 min
Setup time
95%
Success rate
108
Trending score
Most used integrations
GitHubWebhooksOpenAI

GitHub pull_request webhook sends unified diff to GPT-4o with repo coding guidelines from `.cursor/rules` or CONTRIBUTING.md, posts review comments on suspicious lines—null dereference, SQL injection, missing error handle—severity tagged, blocks merge label `ai-review-failed` if critical found until human dismiss.

Some steps run in preview until their integrations go live.

Required apps
GitHubLiveWebhooksPreview
Optional apps
OpenAILive
All integrations
GitHubWebhooksOpenAI
Workflow preview

How AI Code Review runs

1
Trigger
Load coding standards
2
Process
AI decision layer
3
Action
github
4
Notify
Alert & log
GithubWebhooksOpenai
Setup steps

Get started in 5 steps

  1. 1
    Connect GitHub AI review

    GitHub App, fetch diff, load CONTRIBUTING guidelines, OpenAI, review comments API.

  2. 2
    Load coding standards

    Repo CONTRIBUTING and eslint config summary in prompt context.

  3. 3
    Severity classification

    Critical high medium low; critical blocks merge label.

  4. 4
    Inline comments

    Line-level comments on diff hunks not generic PR comment only.

  5. 5
    Calibrate on repo

    First week human tracks false positive rate; tune prompt.

Variables

Configurable settings

VariableTypeDefaultRequired
Business NametextYour BusinessYes
Notification EmailemailYes
TimezoneselectYes
Brand VoiceselectProfessionalNo
GitHub RepositorytextNo
AI prompt

System prompt template

You are a senior code reviewer. Analyze diffs for bugs, security vulnerabilities, and style violations per repo guidelines. Comment only on changed lines with severity. No nitpicks unless repeated pattern.
FAQ

Frequently asked questions

Secrets in diff?

Secret pattern scan runs before sending to LLM; abort if found.

Large diffs?

Skip or chunk review if >500 lines changed.

False positives?

Human dismiss adds pattern to ignore list file.

Private repos?

Enterprise OpenAI no-retention endpoint recommended.

Get started

Customize AI Code Review for your business

Our team can adapt this template to your exact workflow, apps, and brand requirements.