Leanpub Header

Skip to main content

AI AGENTS & AUTOMATION

A Practical Project Guide to Building Intelligent AI Agents and Automated Workflows

AI AGENTS & AUTOMATION
This book is 100% completeLast updated on 2026-11-07

Build practical AI agents and automate real-world digital workflows through five hands-on projects. Learn to create research, email, social media, news digest, and code review agents using modern AI tools and step-by-step implementation guidance.

Minimum price

$12.99

$19.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
About

About

About the Book

About the Book

AI Agents & Automation: A Complete Practical Guide is a hands-on guide to understanding, designing, and developing AI-powered agents for real-world tasks. The book brings together five practical projects that demonstrate how modern AI tools can be used to build intelligent workflows and automate everyday digital activities.

Through step-by-step project guidance, readers explore the development of a Personal Research Agent, Email Auto-Responder Agent, Twitter/X Content Agent, Daily News Digest Agent, and Code Review Agent.

Each project introduces practical concepts, implementation approaches, AI tool integration, workflow design, and automation techniques. The book covers tools and platforms such as Claude, ChatGPT, Perplexity, Grok, Claude Code, OpenAI Codex, and GitHub Copilot.

Whether you are exploring AI automation for the first time or looking to expand your practical AI development skills, this book provides a project-oriented learning experience focused on building useful AI-powered solutions.

Teaser Text

Build practical AI agents and automate real-world digital workflows through five hands-on projects. Learn to create research, email, social media, news digest, and code review agents using modern AI tools and step-by-step implementation guidance.

Meta Description

Learn to build five practical AI agents for research, email automation, Twitter/X content, daily news digests, and code review using Claude, ChatGPT, Perplexity, Grok, OpenAI Codex, and GitHub Copilot.

Release Notes

2026 Edition – First Release

This edition brings together five practical AI agent development projects in one comprehensive guide.

Key highlights:

  • Five complete AI agent projects presented in a structured sequence.
  • Personal Research Agent using Claude, Perplexity, and Grok.
  • Email Auto-Responder Agent using Claude Code, ChatGPT, and OpenAI Codex.
  • Twitter/X Content Agent using Grok, Claude, and ChatGPT.
  • Daily News Digest Agent using Perplexity, Grok, and Claude.
  • Code Review Agent using Claude Code, OpenAI Codex, and GitHub Copilot.
  • Practical implementation guidance, workflow design, and automation concepts.
  • Project-oriented learning approach for exploring real-world AI applications.

This release is designed as a consolidated learning resource for readers interested in practical AI agents and automation workflows.

Author Notes

Anshuman Kumar Mishra is a computer science professional, educator, and technical author with an M.Tech in Computer Science from BIT Mesra, Ranchi. His interests include Artificial Intelligence, Generative AI, Agentic AI, software development, emerging technologies, and technology-driven education.

Through his technical writing, he aims to make complex concepts easier to understand by presenting them through structured explanations and practical project-based learning.

His books are intended to help students, educators, developers, and technology enthusiasts explore emerging technologies and apply their knowledge to practical challenges.

Bundle

Bundles that include this book

Author

About the Author

Anshuman Mishra

Anshuman Kumar Mishra, M.Tech (Computer Science) Assistant Professor, Doranda College, Ranchi University

Prolific Author of 50+ Books on AI, Machine Learning & Computer Science | 20+ Years Experience

Anshuman Kumar Mishra is a dedicated educator, researcher, and highly prolific author with over 20 years of experience in Computer Science and Information Technology. Holding an M.Tech in Computer Science from BIT Mesra, he brings a rare combination of academic depth and practical teaching expertise.

Currently serving as Assistant Professor at Doranda College under Ranchi University, he has mentored thousands of students, helping them build strong foundations in programming, data science, and artificial intelligence. His student-centric teaching style emphasizes conceptual clarity, hands-on practice, and real-world application.

Anshuman is a prolific author with more than 50 books published across a wide spectrum of computer science and emerging technology domains. From foundational programming languages to advanced topics in Artificial Intelligence, Machine Learning, Reinforcement Learning, Decision Theory, and Computer Vision — his books are widely appreciated by students, educators, and professionals for their clear explanations, strong theoretical foundation, and practical approach.

His extensive body of work reflects his deep commitment to making complex subjects accessible and meaningful for learners at all levels. He is particularly recognized for creating well-structured learning paths that help readers progress from beginner to advanced levels with confidence.

Driven by the mission to democratize quality technical education, Anshuman continues to write and update books that bridge the gap between academic theory and industry practice.

When not teaching or writing, he actively follows and explores new developments in AI, Quantum Machine Learning, and Ethical Intelligence systems.

Contents

Table of Contents

TABLE OF CONTENTS AI AGENTS & AUTOMATION — PROJECT-WISE CONTENTS AND TOPIC PAGE REFERENCES PROJECT 1: PERSONAL RESEARCH AGENT TOPIC 001: Research Agent Fundamentals 17 TOPIC 002: Use Cases and Operational Boundaries 18 TOPIC 003: Research Questions and Scope Design 20 TOPIC 004: Research Brief and Acceptance Criteria 21 TOPIC 005: Research Workflow and Stage Gates 22 TOPIC 006: Research Ethics and Responsible Use 24 TOPIC 007: Research Project Planning 25 TOPIC 008: Audience Analysis and Report Purpose 26 TOPIC 009: Research Depth and Time Budgeting 27 TOPIC 010: Research Success Metrics 29 TOPIC 011: Source Quality and Evidence Principles 30 TOPIC 012: Primary, Secondary and Tertiary Sources 31 TOPIC 013: Authority, Relevance and Credibility 33 TOPIC 014: Source Independence and Corroboration 34 TOPIC 015: Publication Date and Recency Checks 35 TOPIC 016: Search Strategy and Query Design 37 TOPIC 017: Keyword Expansion and Synonyms 38 TOPIC 018: Boolean and Advanced Search Patterns 39 TOPIC 019: Search by Publisher and Domain 40 TOPIC 020: Search Log and Query Reproducibility 42 TOPIC 021: Perplexity Discovery Workflow 43 TOPIC 022: Perplexity Follow-Up Questions 44 TOPIC 023: Perplexity Source Inspection 46 TOPIC 024: Search Result Deduplication 47 TOPIC 025: Building a Candidate Source Collection 48 TOPIC 026: Claude Research Workspace Setup 50 TOPIC 027: Organising Research Notes with Claude 51 TOPIC 028: Evidence-Based Summarisation 52 TOPIC 029: Theme Extraction and Clustering 53 TOPIC 030: Claim Extraction from Documents 55 TOPIC 031: Grok for Alternative Perspectives 56 TOPIC 032: Counterargument and Red-Team Analysis 57 TOPIC 033: Assumption Identification 59 TOPIC 034: Competing Hypotheses 60 TOPIC 035: Avoiding Confirmation Bias 61 TOPIC 036: Cross-Tool Research Orchestration 62 TOPIC 037: Research Handoff Packet Design 64 TOPIC 038: Task Allocation Across AI Tools 65 TOPIC 039: Context Consistency and Version Control 66 TOPIC 040: Human Review and Approval Gates 67 TOPIC 041: Source Register Data Model 69 TOPIC 042: Evidence Ledger Data Model 70 TOPIC 043: Claim-to-Source Traceability 71 TOPIC 044: Quotation and Passage Verification 72 TOPIC 045: Citation Metadata and Bibliography 74 TOPIC 046: Handling Conflicting Sources 75 TOPIC 047: Resolving Differences in Definitions 76 TOPIC 048: Comparing Research Methods 77 TOPIC 049: Assessing Sample and Measurement Limits 79 TOPIC 050: Reporting Unresolved Disagreement 80 TOPIC 051: Bias, Incentives and Missing Voices 81 TOPIC 052: Geographic and Language Coverage 83 TOPIC 053: Funding and Conflict-of-Interest Review 84 TOPIC 054: Detecting Unsupported Generalisations 85 TOPIC 055: Balanced Evidence Representation 87 TOPIC 056: Research Data Extraction 88 TOPIC 057: Working with PDF and Web Documents 89 TOPIC 058: Table and Statistical Data Extraction 90 TOPIC 059: Date, Unit and Entity Normalisation 91 TOPIC 060: Data Cleaning and Validation 93 TOPIC 061: Research Agent Prompt Architecture 94 TOPIC 062: System Instructions and Task Prompts 95 TOPIC 063: Structured Prompt Templates 97 TOPIC 064: Few-Shot Examples and Output Guidance 98 TOPIC 065: Prompt Injection and Untrusted Sources 99 TOPIC 066: Research Note and Evidence Schemas 100 TOPIC 067: JSON Output Design 102 TOPIC 068: Pydantic Data Validation 103 TOPIC 069: Source and Claim Identifier Strategy 104 TOPIC 070: Error Handling and Retry Policies 105 TOPIC 071: Python Project Environment Setup 107 TOPIC 072: Research Agent Folder Structure 108 TOPIC 073: Configuration and Environment Variables 109 TOPIC 074: Building a Search Provider Interface 111 TOPIC 075: Creating a Source Register in Python 112 TOPIC 076: Fetching and Parsing Research Content 113 TOPIC 077: HTML Text Extraction and Cleaning 114 TOPIC 078: PDF Text Extraction Workflow 116 TOPIC 079: Chunking Long Documents 117 TOPIC 080: Metadata and Content Storage 118 TOPIC 081: Relevance Scoring and Source Ranking 119 TOPIC 082: Semantic Search and Embedding Concepts 121 TOPIC 083: Evidence Retrieval and Context Selection 122 TOPIC 084: Duplicate and Near-Duplicate Detection 123 TOPIC 085: Retrieval Quality Evaluation 125 TOPIC 086: Research Synthesis and Report Generation 126 TOPIC 087: Executive Summary Generation 127 TOPIC 088: Findings, Evidence and Limitations Sections 128 TOPIC 089: Comparative Analysis and Decision Tables 130 TOPIC 090: Research Report Citation Validation 131 TOPIC 091: Automated Quality Checks and Test Cases 132 TOPIC 092: Evaluation Metrics for Research Outputs 133 TOPIC 093: Regression Testing Prompt Changes 135 TOPIC 094: Research Agent Security and Privacy 136 TOPIC 095: Capstone: Build, Run and Audit the Complete Agent 137 TOPIC 096: Research Reproducibility and Audit Trail 139 TOPIC 097: Research Report Formatting and Export 140 TOPIC 098: Limitations, Responsible Interpretation and Sign-Off 141 TOPIC 099: Maintenance, Monitoring and Workflow Improvement 142 TOPIC 100: Project Handover and Reusable Research Templates 144 PROJECT 2: EMAIL AUTO-RESPONDER AGENT TOPIC 001: Project Scope, Use Cases and Constraints 149 TOPIC 002: Functional and Non-Functional Requirements 150 TOPIC 003: User Stories and Acceptance Criteria 151 TOPIC 004: End-to-End Email Processing Lifecycle 151 TOPIC 005: High-Level System Architecture 152 TOPIC 006: Technology Stack and Development Environment 153 TOPIC 007: Repository Structure and Coding Standards 154 TOPIC 008: Configuration Management and Environment Variables 155 TOPIC 009: Dependency Management and Virtual Environments 156 TOPIC 010: Local Development Setup and First Run 157 TOPIC 011: Email Provider Concepts and API Selection 158 TOPIC 012: OAuth 2.0 Authentication Overview 159 TOPIC 013: Mailbox Permission Scopes and Least Privilege 160 TOPIC 014: Access Tokens, Refresh Tokens and Revocation 161 TOPIC 015: Webhook, Polling and Event Intake Strategies 162 TOPIC 016: Email Message Data Model 163 TOPIC 017: Parsing Headers, Recipients and Timestamps 164 TOPIC 018: Plain-Text and HTML Body Extraction 165 TOPIC 019: Thread and Reply-Chain Reconstruction 166 TOPIC 020: Attachment Metadata and Safe Handling 167 TOPIC 021: Message Normalisation Pipeline 169 TOPIC 022: Duplicate Event Detection and Idempotency 169 TOPIC 023: Email Intent Taxonomy 170 TOPIC 024: Intent Classification with Structured AI Output 171 TOPIC 025: Urgency and Priority Classification 172 TOPIC 026: Sensitive Message Detection and Escalation 173 TOPIC 027: Sender Context and Relationship Rules 174 TOPIC 028: Approved Knowledge Base Design 175 TOPIC 029: Knowledge Retrieval and Relevance Ranking 176 TOPIC 030: Handling Missing or Conflicting Context 177 TOPIC 031: Prompt Engineering Fundamentals 178 TOPIC 032: System Prompt and Instruction Hierarchy 179 TOPIC 033: Classification Prompt Template 180 TOPIC 034: Draft Generation Prompt Template 181 TOPIC 035: Tone, Style and Brand Voice Controls 182 TOPIC 036: Context Window and Token Budget Management 183 TOPIC 037: Structured Output with Pydantic 184 TOPIC 038: Model Adapter and Provider Abstraction 185 TOPIC 039: Fallback Behaviour and Model Errors 186 TOPIC 040: Prompt Injection and Untrusted Email Content 187 TOPIC 041: Backend Application Architecture with FastAPI 188 TOPIC 042: Pydantic Request and Response Schemas 189 TOPIC 043: Email Intake REST Endpoint 190 TOPIC 044: Classification REST Endpoint 191 TOPIC 045: Draft Generation REST Endpoint 192 TOPIC 046: Draft Review and Approval Endpoints 192 TOPIC 047: Database Schema and SQLite Setup 193 TOPIC 048: SQLAlchemy Models and Repository Layer 194 TOPIC 049: Draft Status and Workflow State Machine 195 TOPIC 050: Audit Event Model and Logging 196 TOPIC 051: Email Service Layer Implementation 197 TOPIC 052: Classification Service Implementation 198 TOPIC 053: Context Retrieval Service Implementation 199 TOPIC 054: Draft Generation Service Implementation 200 TOPIC 055: Output Validation and Policy Guardrails 201 TOPIC 056: Human Review Dashboard Requirements 202 TOPIC 057: Frontend Layout and Message Queue 203 TOPIC 058: Displaying Original Email and AI Analysis 204 TOPIC 059: Draft Editor and Change Tracking 205 TOPIC 060: Approval, Rejection and Escalation UI 206 TOPIC 061: Safe Send Design: Draft-Only First Release 207 TOPIC 062: Recipient and Subject Verification 208 TOPIC 063: Approval Bound to Exact Draft Version 209 TOPIC 064: Provider Send Adapter Interface 210 TOPIC 065: Send Failure and Duplicate-Send Prevention 211 TOPIC 066: Unit Testing the Parser and Normaliser 212 TOPIC 067: Testing Intent Classification 213 TOPIC 068: Testing Draft Quality and Grounding 214 TOPIC 069: API Integration Testing 215 TOPIC 070: End-to-End Workflow Testing 216 TOPIC 071: Synthetic Email Dataset Creation 217 TOPIC 072: Evaluation Metrics and Quality Rubric 218 TOPIC 073: Regression Testing Across Prompt Versions 219 TOPIC 074: Security Threat Modelling 220 TOPIC 075: Privacy, Retention and Data Minimisation 221 TOPIC 076: Secrets Management and Secure Logging 222 TOPIC 077: Rate Limiting and Abuse Prevention 223 TOPIC 078: Attachment Security and File Validation 224 TOPIC 079: Role-Based Access Control 225 TOPIC 080: Auditability and Compliance Considerations 226 TOPIC 081: Observability, Metrics and Operational Alerts 227 TOPIC 082: Error Handling, Retries and Dead-Letter Queue 228 TOPIC 083: Performance and Cost Management 229 TOPIC 084: Deployment with Docker 230 TOPIC 085: Production Configuration and Rollback 231 TOPIC 086: Backup, Restore and Data Deletion 232 TOPIC 087: User Acceptance Testing and Pilot Launch 233 TOPIC 088: Operational Runbook and Incident Response 234 TOPIC 089: Maintenance, Model Updates and Prompt Versioning 235 TOPIC 090: Capstone: Complete Email Auto-Responder Agent 236 TOPIC 091: Final Output Formats, API Contracts and Project Handover 237 PROJECT 3: TWITTER/X CONTENT AGENT TOPIC 001: Twitter/X Content Agent: Project Overview and Objectives 243 TOPIC 002: Use Cases, Audience and Operating Boundaries 244 TOPIC 003: Functional Requirements and User Stories 246 TOPIC 004: Non-Functional Requirements and Quality Attributes 247 TOPIC 005: End-to-End Content Automation Workflow 249 TOPIC 006: System Architecture and Component Responsibilities 250 TOPIC 007: Technology Stack and Development Environment 252 TOPIC 008: Python Environment and Dependency Management 253 TOPIC 009: Project Repository Structure and Coding Standards 255 TOPIC 010: Configuration, Secrets and Environment Variables 256 TOPIC 011: X Platform Concepts: Posts, Replies, Threads and Media 258 TOPIC 012: X Developer Access and API Capability Review 259 TOPIC 013: Authentication Concepts and Secure Credential Handling 261 TOPIC 014: API Rate Limits, Quotas and Usage Planning 262 TOPIC 015: Platform Rules, Automation Policies and Responsible Use 264 TOPIC 016: Content Strategy and Editorial Objectives 265 TOPIC 017: Audience Personas and Topic Pillars 267 TOPIC 018: Brand Voice, Tone and Style Guide 268 TOPIC 019: Content Calendar and Publishing Cadence 270 TOPIC 020: Campaign Goals and Success Metrics 271 TOPIC 021: Content Idea Discovery and Topic Research 273 TOPIC 022: Trend Research and Relevance Assessment 274 TOPIC 023: Keyword, Hashtag and Topic Selection 276 TOPIC 024: Source Verification and Fact Checking 277 TOPIC 025: Content Brief and Post Objectives 278 TOPIC 026: Prompt Engineering for Social Content 280 TOPIC 027: System Prompt and Editorial Guardrails 281 TOPIC 028: Prompt Templates for Post Generation 283 TOPIC 029: Prompt Templates for Threads and Series 284 TOPIC 030: Prompt Templates for Replies and Engagement 285 TOPIC 031: Claude: Content Planning and Editorial Structure 287 TOPIC 032: Claude: Draft Generation and Refinement 288 TOPIC 033: Claude: Tone Consistency and Brand Voice Review 290 TOPIC 034: ChatGPT: Ideation and Multiple Draft Variants 291 TOPIC 035: ChatGPT: Editing, Clarity and Audience Adaptation 292 TOPIC 036: Grok: Trend Exploration and Alternative Angles 294 TOPIC 037: Grok: Counterpoints and Conversation Context 295 TOPIC 038: Cross-Tool Workflow: Grok, Claude and ChatGPT 296 TOPIC 039: Content Handoff Packet and Version Control 298 TOPIC 040: Human Review and Approval Workflow 299 TOPIC 041: Content Data Model and Pydantic Schemas 301 TOPIC 042: Post, Thread and Campaign Data Structures 302 TOPIC 043: Editorial Status and Approval State Machine 303 TOPIC 044: Content Metadata, Tags and Source References 305 TOPIC 045: Post Length, Character Counting and Validation 306 TOPIC 046: Links, Mentions, Hashtags and Media Metadata 308 TOPIC 047: Content Quality Scoring and Editorial Checklist 309 TOPIC 048: Duplicate Detection and Similarity Checks 310 TOPIC 049: Sensitive Topics, Claims and Escalation Rules 312 TOPIC 050: Accessibility, Readability and Inclusive Language 313 TOPIC 051: Python Application Architecture 315 TOPIC 052: Building the Content Generation Service 316 TOPIC 053: Building the Prompt Template Manager 317 TOPIC 054: Building the Content Validation Service 319 TOPIC 055: Building the Editorial Review Service 320 TOPIC 056: Building the Content Calendar Service 321 TOPIC 057: Building the Scheduling Queue 323 TOPIC 058: Building the X API Adapter Interface 324 TOPIC 059: Mock X Adapter for Local Development 325 TOPIC 060: Posting Adapter Design and Explicit Approval 327 TOPIC 061: FastAPI Application and REST Endpoints 328 TOPIC 062: Request and Response Schemas 329 TOPIC 063: Create Content and Generate Variants Endpoints 331 TOPIC 064: Review, Approve and Reject Endpoints 332 TOPIC 065: Calendar and Scheduling Endpoints 333 TOPIC 066: Content Repository and SQLite Database 335 TOPIC 067: Campaign, Post and Schedule Database Models 336 TOPIC 068: Audit Log and Change History 337 TOPIC 069: Retry, Timeout and API Error Handling 339 TOPIC 070: Idempotency and Duplicate-Publishing Prevention 340 TOPIC 071: Scheduling Concepts: Time Zones and UTC 342 TOPIC 072: Scheduling Ideas and Editorial Recommendations 343 TOPIC 073: Calendar Conflict Detection and Queue Management 344 TOPIC 074: Draft Reminders and Approval Deadlines 346 TOPIC 075: Publishing Readiness and Preflight Validation 347 TOPIC 076: Safe Publishing: Human Confirmation Before Posting 348 TOPIC 077: Post-Publish Verification and Record Keeping 350 TOPIC 078: Replies and Engagement: Human-Supervised Workflow 351 TOPIC 079: Community Management and Escalation 353 TOPIC 080: Analytics Requirements and Metric Definitions 354 TOPIC 081: Post Performance Data Model 355 TOPIC 082: Engagement Metrics and Interpretation 357 TOPIC 083: Content Experiments and A/B Test Planning 358 TOPIC 084: Feedback Loop and Content Improvement 360 TOPIC 085: Unit Testing Prompts, Validators and Services 361 TOPIC 086: API Integration Testing with Mock Responses 363 TOPIC 087: End-to-End Workflow Testing 364 TOPIC 088: Evaluation Rubric for Generated Content 365 TOPIC 089: Regression Testing Across Prompt Versions 367 TOPIC 090: Security Threat Modelling and Prompt Injection 368 TOPIC 091: Privacy, Data Minimisation and Secure Logging 370 TOPIC 092: Access Control and Team Roles 371 TOPIC 093: Deployment with Docker and Environment Separation 373 TOPIC 094: Production Monitoring, Alerts and Operational Runbook 374 TOPIC 095: Backup, Recovery and Data Retention 375 TOPIC 096: Cost, Token and API Usage Management 377 TOPIC 097: Capstone: Build the Complete Twitter/X Content Agent 378 TOPIC 098: Final Output Formats, API Contracts and Project Handover 380 TOPIC 099: Content Governance and Editorial Risk Review 381 TOPIC 100: Content Performance Reporting and Export 382 PROJECT 4: DAILY NEWS DIGEST AGENT Topic 01: Define the Daily News Digest Agent 388 Topic 02: Identify the Target Audience and Reading Needs 388 Topic 03: Select News Topics and Categories 388 Topic 04: Define Geographic and Language Scope 389 Topic 05: Set the Daily Delivery Window 389 Topic 06: Create a News Relevance Rubric 389 Topic 07: Define Editorial Boundaries 389 Topic 08: Map the End-to-End Workflow 390 Topic 09: Choose the AI Tool Roles 390 Topic 10: Design the System Architecture 390 Topic 11: Create the Project Repository 391 Topic 12: Configure Environment Variables 391 Topic 13: Select Search and News Sources 391 Topic 14: Use Perplexity for Topic Discovery 391 Topic 15: Use Grok for Additional Perspectives 392 Topic 16: Use Claude for Editorial Synthesis 392 Topic 17: Define Search Query Templates 392 Topic 18: Build Topic-Specific Search Terms 392 Topic 19: Handle Search Date Filters 393 Topic 20: Collect Search Results in a Standard Format 393 Topic 21: Retrieve Article Metadata 393 Topic 22: Extract Article Text Responsibly 394 Topic 23: Respect Robots, Terms, and Copyright 394 Topic 24: Build an RSS Collection Option 394 Topic 25: Combine Search and RSS Results 394 Topic 26: Create a Source Registry 395 Topic 27: Assess Source Credibility 395 Topic 28: Identify Primary Sources 395 Topic 29: Cross-Check Important Claims 395 Topic 30: Detect Conflicting Reports 396 Topic 31: Track Corrections and Updates 396 Topic 32: Separate Fact from Analysis 396 Topic 33: Identify Sponsored and Press-Release Content 397 Topic 34: Detect Duplicate Articles 397 Topic 35: Cluster Articles into Story Groups 397 Topic 36: Rank Stories by Importance 397 Topic 37: Measure Novelty and Change 398 Topic 38: Filter Low-Value Results 398 Topic 39: Handle Breaking News Carefully 398 Topic 40: Create an Article Evidence Record 398 Topic 41: Design the Story Summary Template 399 Topic 42: Write a Strong Summarisation Prompt 399 Topic 43: Require Source-Linked Claims 399 Topic 44: Prevent Hallucinated Details 399 Topic 45: Preserve Uncertainty and Attribution 400 Topic 46: Summarise Multiple Perspectives 400 Topic 47: Generate a One-Line Headline 400 Topic 48: Write the 'Why It Matters' Section 401 Topic 49: Add Background Context 401 Topic 50: Create Executive Summaries 401 Topic 51: Generate Topic-Wise Sections 401 Topic 52: Prepare a Top Five News List 402 Topic 53: Create a 'What Changed Since Yesterday' Section 402 Topic 54: Build a 'What to Watch Next' Section 402 Topic 55: Handle Numbers, Dates, and Units 402 Topic 56: Handle Quotes and Attributed Statements 403 Topic 57: Create a Citation and Link Policy 403 Topic 58: Build the Digest JSON Schema 403 Topic 59: Validate Model Output 403 Topic 60: Create a Markdown Digest Renderer 404 Topic 61: Create an HTML Email Renderer 404 Topic 62: Create a Plain-Text Version 404 Topic 63: Design a Mobile-Friendly Digest 404 Topic 64: Add Accessibility Features 405 Topic 65: Personalise Digest Length 405 Topic 66: Support Reader Topic Preferences 405 Topic 67: Create a Daily Scheduler 406 Topic 68: Build the Main Orchestration Function 406 Topic 69: Add Retry and Backoff Logic 406 Topic 70: Handle API Rate Limits 406 Topic 71: Cache Search and Article Results 407 Topic 72: Store Article and Digest History 407 Topic 73: Design the Database Schema 407 Topic 74: Track Story Lifecycle Status 407 Topic 75: Add Human Editorial Review 408 Topic 76: Create an Editorial Dashboard 408 Topic 77: Add Manual Story Inclusion and Exclusion 408 Topic 78: Create a Story Correction Workflow 408 Topic 79: Send the Digest by Email 409 Topic 80: Publish the Digest to a Web Page 409 Topic 81: Deliver the Digest through Telegram or Slack 409 Topic 82: Manage Subscribers and Preferences 409 Topic 83: Prevent Duplicate Deliveries 410 Topic 84: Monitor Delivery Success 410 Topic 85: Handle No-News Days 410 Topic 86: Handle Provider Outages 410 Topic 87: Create a Fallback Manual Workflow 411 Topic 88: Deploy the Agent to a Server 411 Topic 89: Containerise the Application 411 Topic 90: Configure Continuous Integration 411 Topic 91: Manage Production Configuration 412 Topic 92: Create a Runbook for Operators 412 Topic 93: Plan Backup and Recovery 412 Topic 94: Version the Digest and Its Evidence 412 Topic 95: Create a Daily Quality Checklist 413 Topic 96: Design the Final Daily Digest Layout 413 Topic 97: Build a Complete Capstone Pipeline 413 Topic 98: Run a Seven-Day Pilot 413 Topic 99: Prepare the Production Launch 414 Topic 100: Plan Future Enhancements 414 PROJECT 5: CODE REVIEW AGENT Topic 01: Define the Code Review Agent 418 Topic 02: Identify Users and Review Personas 418 Topic 03: Define Supported Programming Languages 418 Topic 04: Define Review Objectives 419 Topic 05: Set Human-in-the-Loop Boundaries 419 Topic 06: Map the Pull-Request Lifecycle 419 Topic 07: Design the End-to-End Architecture 419 Topic 08: Assign Roles to Claude Code, Codex, and Copilot 420 Topic 09: Choose the Review Execution Model 420 Topic 10: Create the Project Repository 420 Topic 11: Configure Development Environment 420 Topic 12: Manage Secrets and API Credentials 421 Topic 13: Configure GitHub App or Token Permissions 421 Topic 14: Subscribe to Pull-Request Webhook Events 421 Topic 15: Verify Webhook Signatures 421 Topic 16: Handle Duplicate Webhook Delivery 422 Topic 17: Fetch Pull-Request Metadata 422 Topic 18: Retrieve the Changed-File List 422 Topic 19: Download and Parse Unified Diffs 422 Topic 20: Handle Renames and File Moves 423 Topic 21: Build a Review Context Package 423 Topic 22: Retrieve Repository Instructions 423 Topic 23: Understand Build and Dependency Configuration 423 Topic 24: Inspect Related Tests 424 Topic 25: Prioritise Changed Code 424 Topic 26: Apply File Exclusion Rules 424 Topic 27: Enforce PR Size Limits 424 Topic 28: Detect Secrets in Changes 425 Topic 29: Run Formatting and Lint Checks 425 Topic 30: Run Static Type Checks 425 Topic 31: Run Static Application Security Testing 425 Topic 32: Check Dependency Vulnerabilities 426 Topic 33: Review Authentication and Authorisation Changes 426 Topic 34: Review Input Validation and Injection Risks 426 Topic 35: Review Sensitive Data Handling 426 Topic 36: Review Cryptographic Usage 427 Topic 37: Review Error Handling 427 Topic 38: Review Concurrency and Race Conditions 427 Topic 39: Review Database Queries and Transactions 427 Topic 40: Review API Contract Changes 428 Topic 41: Review Backward Compatibility 428 Topic 42: Review Performance Implications 428 Topic 43: Review Resource Management 429 Topic 44: Review Configuration and Feature Flags 429 Topic 45: Review Database Migrations 429 Topic 46: Review Test Coverage Gaps 429 Topic 47: Review Unit Test Quality 430 Topic 48: Review Integration and End-to-End Tests 430 Topic 49: Review Flaky Test Risks 430 Topic 50: Design the AI Review Prompt 430 Topic 51: Create a Structured Finding Schema 431 Topic 52: Set Severity Levels 431 Topic 53: Set Confidence Levels 431 Topic 54: Require Evidence for Every Finding 431 Topic 55: Generate Minimal Suggested Fixes 432 Topic 56: Avoid Style-Only Noise 432 Topic 57: Detect Duplicate Findings 432 Topic 58: Compare Independent Model Reviews 432 Topic 59: Use Claude Code for Repository-Aware Investigation 433 Topic 60: Use OpenAI Codex for Independent Analysis 433 Topic 61: Use GitHub Copilot in the Developer Workflow 433 Topic 62: Create a Model Adapter Layer 433 Topic 63: Control Context Window and Token Budget 434 Topic 64: Protect Against Prompt Injection in Code 434 Topic 65: Prevent Unsafe Tool Execution 434 Topic 66: Validate AI Output Before Publishing 434 Topic 67: Map Findings to GitHub Diff Lines 435 Topic 68: Post Review Comments Safely 435 Topic 69: Create a Consolidated Review Summary 435 Topic 70: Choose Inline vs Summary Comments 435 Topic 71: Avoid Review Spam on Every Push 436 Topic 72: Handle Stale Findings After New Commits 436 Topic 73: Support Draft and Ready-for-Review PRs 436 Topic 74: Handle Forked and External Contributions 436 Topic 75: Respect Repository and Branch Policies 437 Topic 76: Add a Manual Review Command 437 Topic 77: Build a Review Dashboard 437 Topic 78: Track Finding Lifecycle 437 Topic 79: Measure Precision and False Positives 438 Topic 80: Measure Recall and Missed Issues 438 Topic 81: Evaluate Finding Actionability 438 Topic 82: Build Unit Tests for Diff Processing 438 Topic 83: Build Tests for Finding Validation 439 Topic 84: Build GitHub Integration Tests 439 Topic 85: Build End-to-End Review Tests 439 Topic 86: Create a Human Evaluation Dataset 439 Topic 87: Version Prompts and Review Policies 440 Topic 88: Manage Model and API Rate Limits 440 Topic 89: Control Review Latency 440 Topic 90: Estimate and Control Operating Costs 440 Topic 91: Add Structured Logs and Tracing 441 Topic 92: Handle Provider Outages and Fallbacks 441 Topic 93: Create a Manual Fallback Process 441 Topic 94: Deploy with GitHub Actions 441 Topic 95: Deploy as an External Webhook Service 442 Topic 96: Isolate Test and Build Execution 442 Topic 97: Build the Complete Capstone Workflow 442 Topic 98: Run a Pilot Across Representative PRs 443 Topic 99: Prepare Production Launch and Governance 443 Topic 100: Plan Future Enhancements 443

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub