Skip to content

anshwysmcbel2710/anis-personal-ai-factory-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿท๏ธ Project Title

ANIS โ€“ Personal AI Factory Controller


๐Ÿงพ Executive Summary

ANIS (Autonomous Neural Intelligence Supervisor) is an enterprise-grade Personal AI Factory Controller designed to orchestrate complex data ingestion, transformation, analysis, and reporting workflows through a single, intent-driven interface. The system combines Custom GPT Actions, n8n workflow orchestration, Google Workspace automation, and a serverless OCR microservice to deliver a fully automated, auditable, scalable, and production-ready AI data pipeline.

ANIS is intentionally engineered as a control plane, not a monolithic processor. It delegates execution to specialized agents (Ingest, Clean, Analyze, Report) while enforcing strict contracts, schemas, logging, and observability across the entire data lifecycle.


๐Ÿ“‘ Table of Contents

  1. ๐Ÿงฉ Project Overview
  2. ๐Ÿง  System Philosophy & Design Principles
  3. ๐ŸŽฏ Objectives & Goals
  4. โœ… Acceptance Criteria
  5. ๐Ÿ’ป Prerequisites
  6. โš™๏ธ Installation & Setup
  7. ๐Ÿ”— API Documentation
  8. ๐Ÿค– Custom GPT Configuration
  9. ๐Ÿ–ฅ๏ธ UI / Frontend Architecture
  10. ๐Ÿ”ข Status Codes
  11. ๐Ÿš€ Features
  12. ๐Ÿงฑ Tech Stack & Architecture
  13. ๐Ÿ› ๏ธ Workflow & Implementation
  14. ๐Ÿง  Agent Responsibilities
  15. ๐Ÿ—„๏ธ Data Lake Design
  16. ๐Ÿงช Testing & Validation
  17. ๐Ÿ” Validation Summary
  18. ๐Ÿงฐ Verification Tools
  19. ๐Ÿงฏ Troubleshooting
  20. ๐Ÿ”’ Security & Secrets
  21. โ˜๏ธ Deployment
  22. โšก Quick-Start Cheat Sheet
  23. ๐Ÿงพ Usage Notes
  24. ๐Ÿง  Performance & Optimization
  25. ๐ŸŒŸ Enhancements
  26. ๐Ÿงฉ Maintenance & Future Work
  27. ๐Ÿ† Key Achievements
  28. ๐Ÿงฎ High-Level Architecture
  29. ๐Ÿ—‚๏ธ Folder Structure
  30. ๐Ÿงญ How to Demonstrate Live
  31. ๐Ÿ’ก Summary, Closure & Compliance

๐Ÿงฉ Project Overview

ANIS provides a unified command interface that allows users (human or system) to trigger complex automation pipelines using a single structured JSON command. The platform abstracts away workflow complexity while preserving transparency, traceability, and governance.

Core capabilities include:

  • Automated Gmail attachment ingestion
  • RAW โ†’ CLEAN โ†’ GOLD data lake transitions
  • OCR-based PDF text extraction
  • Structured normalization of CSV, XLS, JSON, TXT
  • AI-driven analysis and KPI generation
  • Daily scheduled execution via cron

๐Ÿง  System Philosophy & Design Principles

  • Single Responsibility Agents โ€“ Each agent performs exactly one domain function
  • Contract-First Design โ€“ All interactions validated via schemas
  • Auditability by Default โ€“ Every action logged
  • Stateless Execution โ€“ Workflows remain restart-safe
  • Enterprise Observability โ€“ Logs, metrics, and artifacts persisted

๐ŸŽฏ Objectives & Goals

  • Establish a centralized AI automation control plane driven by structured intent
  • Enable deterministic, schema-driven execution across ingestion, cleaning, analysis, and reporting
  • Decouple AI reasoning (GPT) from execution logic (n8n workflows)
  • Provide audit-ready data pipelines with full traceability
  • Support both interactive (on-demand) and scheduled automation

โœ… Acceptance Criteria

AreaAcceptance Requirement
APIAll requests validated via OpenAPI and JSON schemas
AgentsEach agent executes independently with clear responsibility
DataRAW โ†’ CLEAN โ†’ GOLD data lifecycle enforced
LoggingEvery execution logged with timestamp and status
SecurityNo secrets committed to repository
SchedulingCron workflows execute without manual intervention

๐Ÿ’ป Prerequisites

  • Node.js โ‰ฅ 18
  • n8n โ‰ฅ 1.x (self-hosted or cloud)
  • Google Workspace (Gmail, Drive, Sheets)
  • OpenAI API access
  • Vercel account for OCR microservice

โš™๏ธ Installation & Setup

  1. Clone the repository
  2. Create environment variables from .env.example
  3. Install serverless dependencies
  4. Import n8n workflows (agents, interactive, scheduled)
  5. Configure Google OAuth credentials
  6. Deploy OCR service on Vercel

๐Ÿ”— API Documentation

Endpoint:

POST /webhook/anis

Core Request Fields:

FieldDescription
agentTarget agent (ingest | clean | analyze | report)
sourceOptional data source parameters
optionsExecution controls
returnExpected response format

All requests and responses are validated against versioned schemas to ensure backward compatibility and contract safety.


๐Ÿง  Custom GPT Configuration

ComponentPurpose
action-schema.yamlDefines allowed commands and payload structure
instructions.mdConstrains GPT behavior and output format
description.mdSystem-level role definition
conversation-starters.mdGuided user interaction examples

GPT operates strictly as an intent interpreter. It does not execute logic directly and cannot bypass schemas or workflows.


๐Ÿ–ฅ๏ธ UI / Frontend: Pages, Components, State Flow

This project intentionally avoids a traditional UI layer. Instead, it uses:

  • Custom GPT as the conversational interface
  • n8n as the visual execution canvas
  • Google Sheets as operational dashboards

State Flow:

User Intent โ†’ GPT โ†’ Webhook โ†’ Workflow State โ†’ Logs / Files

Styling, visualization, and reporting are delegated to Google Workspace and GPT responses.


๐Ÿ”ข Status Codes

CodeMeaning
200Success
400Invalid payload
401Unauthorized
500Execution failure

๐Ÿš€ Features

ANIS (Autonomous Neural Intelligence Supervisor) is a production-grade AI Factory Control Plane that unifies LLM intent, workflow orchestration, and enterprise data engineering into a single deterministic, auditable, and scalable platform. Unlike typical AI automations, ANIS enforces strict governance, contract-first execution, and end-to-end data lineage.

1. Core Capability Domains

DomainCapabilityEnterprise-Grade Implementation
AI Governance Schema-Locked GPT Control GPT is sandboxed by OpenAPI + JSON Schema. It cannot generate arbitrary commands or bypass workflows.
Orchestration Agent-Based Execution Fabric Each business function is isolated into independently deployable Ingest, Clean, Analyze, and Report agents.
Data Engineering RAW โ†’ CLEAN โ†’ GOLD Data Lake Immutable RAW inputs, reproducible CLEAN data, and versioned GOLD analytics.
Observability Enterprise Event Ledger Every API call, transformation, KPI, and file write is logged into Google Sheets with timestamps.
Unstructured Data OCR & Document Intelligence Serverless OCR extracts text from PDFs and images and feeds it into the CLEAN pipeline.
Automation Cron-Driven Autonomy Fully automated daily execution via scheduled workflows.

2. Feature Execution Flow

User / System
      โ†“
Custom GPT (Intent โ†’ Structured JSON)
      โ†“
OpenAPI Schema Validation
      โ†“
n8n Control Plane
      โ†“
Ingest โ†’ Clean โ†’ Analyze โ†’ Report
      โ†“
Enterprise Data Lake + KPI Ledger

๐Ÿงฑ Tech Stack & Architecture

1. Technology Layers

LayerTechnologyRole
AI InterfaceCustom GPT + OpenAPIIntent parsing, schema-validated command generation
Orchestrationn8nWorkflow execution engine and control plane
Data LakeGoogle DriveRAW / CLEAN / GOLD storage
Metadata & LogsGoogle SheetsCatalogs, KPIs, audit trails
OCRVercel ServerlessPDF & image text extraction
ContractsJSON Schema + YAMLValidation and deterministic execution

2. Control Plane Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ User / API   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Custom GPT           โ”‚
โ”‚ (Intent Interpreter) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ OpenAPI + JSON Schemaโ”‚
โ”‚ (Contract Layer)     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ n8n Orchestration    โ”‚
โ”‚ (Execution Fabric)  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Ingest | Clean | Analyze |  โ”‚
โ”‚ Report (Stateless Agents)   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Google Drive (RAW/CLEAN/GOLD)โ”‚
โ”‚ Google Sheets (Logs/KPIs)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Workflow & Implementation

1. End-to-End Execution Pipeline

User Prompt
   โ†“
GPT โ†’ Intent โ†’ JSON Command
   โ†“
OpenAPI Schema Validation
   โ†“
ANIS Webhook
   โ†“
n8n Control Plane
   โ†“
Agent Pipelines
   โ†“
Data Lake + KPI Ledger

2. Agent Workflow Topology

        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚   Ingest    โ”‚ โ†’ Gmail, APIs, Drive
        โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ†“
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚    Clean    โ”‚ โ†’ Normalize, OCR, validate
        โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ†“
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚   Analyze   โ”‚ โ†’ KPIs, metrics, insights
        โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ†“
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚   Report    โ”‚ โ†’ Summaries, links
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

3. Reliability & Determinism

  • Stateless workflows allow safe retries.
  • Schema validation prevents malformed executions.
  • All data transformations are reproducible.
  • Failures are isolated to individual agents.

๐Ÿง  Agent Responsibilities

AgentPrimary ResponsibilityKey Outputs
Ingest Agent Acquire raw data from external sources (Gmail, Drive, APIs) RAW files, metadata entries
Clean Agent Normalize, validate, and convert raw data into structured formats CLEAN datasets (CSV / JSON)
Analyze Agent Compute KPIs, metrics, and analytical insights GOLD datasets, KPI tables
Report Agent Generate summaries, reports, and shareable outputs Reports, Drive links

Each agent is independently deployable, restart-safe, and stateless, ensuring fault isolation and operational resilience.


๐Ÿ—„๏ธ Data Lake Design

ANIS enforces a strict, enterprise-grade data lake lifecycle to guarantee traceability, reproducibility, and governance.

ZoneDescriptionMutability
RAW Original ingested data (unchanged, immutable) Read-only
CLEAN Normalized, schema-aligned datasets Rebuildable
GOLD Analytics-ready, business-consumable outputs Versioned
RAW โ†’ CLEAN โ†’ GOLD

๐Ÿงช Testing & Validation

IDAreaCommandExpected OutputExplanation
T01IngestPOST /webhook/anisRAW files createdGmail ingestion
T02CleanAgent cleanCLEAN files createdNormalization

๐Ÿ” Validation Summary

  • All inbound requests validated via OpenAPI schemas
  • All transformations validated against structural schemas
  • All outputs verified before persistence
  • No silent failures or implicit transformations

Validation is enforced at every boundary to ensure deterministic behavior across environments.


๐Ÿงฐ Verification Tools

ToolPurpose
PostmanManual API verification
n8n UIWorkflow execution tracing
Google SheetsLog and KPI verification
Drive Audit LogsArtifact validation

๐Ÿงฏ Troubleshooting

IssueLikely CauseResolution
Webhook returns 400 Schema violation Validate request payload
No files generated OAuth permission issue Reauthorize Google credentials
Scheduled job not running Cron workflow disabled Enable workflow in n8n

๐Ÿ”’ Security & Secrets

  • Secrets stored in .env
  • OAuth credentials isolated
  • Webhook endpoints protected

โ˜๏ธ Deployment (Vercel)

  • Serverless OCR deployment
  • Environment isolation
  • Stateless execution model

โšก Quick-Start Cheat Sheet

git clone repo
cp .env.example .env
npm install
n8n start

๐Ÿงพ Usage Notes

  • Designed for non-technical operators
  • All execution controlled via structured intent
  • No manual data manipulation required
  • Safe for repeated execution

๐Ÿง  Performance & Optimization

  • Parallel agent execution where applicable
  • Stateless workflows reduce memory overhead
  • Incremental processing minimizes rework
  • Serverless OCR scales automatically

๐ŸŒŸ Enhancements

  • Multi-tenant support
  • Role-based access control
  • Advanced KPI dashboards
  • Pluggable data sources

๐Ÿงฉ Maintenance & Future Work

  • Schema versioning strategy
  • Automated regression validation
  • Agent marketplace expansion
  • Enterprise monitoring integration

๐Ÿ† Key Achievements

  • Production-grade AI control plane
  • Full auditability and governance
  • Zero hardcoded logic
  • Enterprise-ready automation framework

๐Ÿงฎ High-Level Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Human / System  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Custom GPT Control   โ”‚
โ”‚   (Intent โ†’ JSON)      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ OpenAPI + JSON Schema  โ”‚
โ”‚ (Contract Enforcement)โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     n8n Control Plane  โ”‚
โ”‚  (Workflow Execution) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Ingest โ†’ Clean โ†’ Analyze โ†’      โ”‚
โ”‚ Report (Stateless AI Agents)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Google Drive (RAW/CLEAN/GOLD)   โ”‚
โ”‚ Google Sheets (Logs & KPIs)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

This architecture guarantees governed, deterministic, and auditable AI execution, making ANIS suitable for enterprise analytics, compliance-driven workflows, and production-grade AI operations.


๐Ÿ—‚๏ธ Folder Structure (Tree)

ANIS-PERSONAL-AI-FACTORY-CONTROLLER/
โ”‚
โ”œโ”€โ”€ diagrams/
โ”‚   โ”œโ”€โ”€ high-level-architecture.png
โ”‚   โ”œโ”€โ”€ gpt-execution-flow.png
โ”‚   โ”œโ”€โ”€ scheduled-execution-flow.png
โ”‚   โ””โ”€โ”€ data-lake-layout.png
โ”‚
โ”œโ”€โ”€ gpt/
โ”‚   โ”œโ”€โ”€ action-schema.yaml
โ”‚   โ”œโ”€โ”€ instructions.md
โ”‚   โ”œโ”€โ”€ description.md
โ”‚   โ”œโ”€โ”€ conversation-starters.md
โ”‚   โ””โ”€โ”€ name.md
โ”‚
โ”œโ”€โ”€ schemas/
โ”‚   โ”œโ”€โ”€ webhook-request.schema.json
โ”‚   โ”œโ”€โ”€ webhook-response.schema.json
โ”‚   โ””โ”€โ”€ control-sheet.schema.md
โ”‚
โ”œโ”€โ”€ screenshots/
โ”‚   โ”œโ”€โ”€ google-drive/
โ”‚   โ”œโ”€โ”€ google-sheets/
โ”‚   โ”‚   โ”œโ”€โ”€ data-catalog/
โ”‚   โ”‚   โ”œโ”€โ”€ event-log/
โ”‚   โ”‚   โ””โ”€โ”€ tasks-inbox/
โ”‚   โ”œโ”€โ”€ gpt-controller/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ”œโ”€โ”€ interactive/
โ”‚       โ””โ”€โ”€ scheduled/
โ”‚
โ”œโ”€โ”€ serverless/
โ”‚   โ””โ”€โ”€ ocr-pdf-text-extraction-service/
โ”‚
โ”œโ”€โ”€ workflows/
โ”‚   โ”œโ”€โ”€ agents/
โ”‚   โ”‚   โ”œโ”€โ”€ ingest_agent.json
โ”‚   โ”‚   โ”œโ”€โ”€ clean_agent.json
โ”‚   โ”‚   โ”œโ”€โ”€ analyze_agent.json
โ”‚   โ”‚   โ””โ”€โ”€ report_agent.json
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ interactive/
โ”‚   โ”‚   โ””โ”€โ”€ ANIS_HUB_gpt_webhook.json
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ scheduled/
โ”‚       โ”œโ”€โ”€ ANIS_DAILY_CRON.json
โ”‚       โ”œโ”€โ”€ analyze_agent_sub_workflow.json
โ”‚       โ””โ”€โ”€ report_agent_sub_workflow.json
โ”‚
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .gitignore
โ””โ”€โ”€ README.md

๐Ÿงญ How to Demonstrate Live (Exact Commands)

This section provides a fully explicit, end-to-end live demonstration guide for the ANIS Personal AI Factory Controller. It is intentionally verbose and operationally precise to enable live demos, technical interviews, architecture walkthroughs, and stakeholder reviews without ambiguity.

1. Demonstration Entry Points

  • Primary (Recommended): Custom GPT โ†’ OpenAPI Action โ†’ n8n Webhook
  • Secondary: Direct API/Webhook invocation (Postman / curl)
  • Automated: Scheduled execution via cron workflows

2. GPT Prompt โ†’ Webhook Dispatch Flow

Example GPT Prompt:

Ingest Gmail attachments from the last 7 days, clean and normalize the data,
analyze the results, and generate a report.

Internal Execution Flow:

  1. Custom GPT interprets user intent
  2. Prompt is validated against the OpenAPI action schema
  3. GPT generates a single, schema-compliant JSON command
  4. Command is dispatched to the ANIS webhook
  5. n8n orchestrates agent-based workflows
  6. Outputs are written to Google Drive and Google Sheets
  7. Structured results are returned to GPT

3. Direct Webhook API Demonstration

Endpoint

POST /webhook/anis

Headers

Content-Type: application/json

4. Ingest Agent โ€“ API Call

{
  "agent": "ingest",
  "source": {
    "gmailQuery": "has:attachment",
    "days": 7
  },
  "options": {
    "attachmentsOnly": true,
    "fileTypes": ["pdf", "csv", "xlsx"]
  },
  "return": "summary"
}

Expected Results:

  • Attachments fetched from Gmail
  • Files uploaded to Google Drive (RAW zone)
  • Metadata recorded in DATA_CATALOG
  • Execution logged in EVENT_LOG

5. Clean Agent โ€“ API Call

{
  "agent": "clean",
  "return": "log"
}

Expected Results:

  • RAW files normalized and converted
  • CLEAN datasets generated (CSV / JSON / TXT)
  • Schema-aligned data structures enforced
  • Transformation events logged

6. Analyze Agent โ€“ API Call

{
  "agent": "analyze",
  "return": "kpis"
}

Expected Results:

  • CLEAN datasets analyzed
  • KPIs computed and validated
  • GOLD datasets produced
  • Analysis outputs appended to DATA_CATALOG

7. Report Agent โ€“ API Call

{
  "agent": "report",
  "return": "files"
}

Expected Results:

  • Final reports generated
  • Summaries and KPIs consolidated
  • Reports uploaded to Google Drive
  • Shareable links returned in response

8. Scheduled Execution Demonstration

Enable the ANIS_DAILY_CRON workflow in n8n to demonstrate:

  • Autonomous ingestion
  • Automatic cleaning and normalization
  • Scheduled analysis and reporting
  • Zero manual intervention

9. Where to Observe Outputs

ComponentLocation
RAW FilesGoogle Drive โ†’ RAW
CLEAN DataGoogle Drive โ†’ CLEAN
GOLD OutputsGoogle Drive โ†’ GOLD
Event LogsGoogle Sheets โ†’ EVENT_LOG
KPIsGoogle Sheets โ†’ DATA_CATALOG
ReportsGoogle Drive โ†’ REPORT

๐Ÿ’ก Summary, Closure & Compliance

ANIS represents a mature, enterprise-grade AI automation control plane designed with explicit emphasis on governance, determinism, auditability, and production readiness.

Architectural Maturity

  • Agent-based workflows enforce strict separation of concerns
  • Each agent operates with a single, clearly defined responsibility
  • Schema-driven execution eliminates ambiguity and non-determinism
  • Stateless orchestration enables safe retries and fault tolerance

Schema-Driven & Deterministic Execution

  • All inputs validated against OpenAPI and JSON schemas
  • Controlled data normalization and conversion pipelines
  • Predictable outputs across environments
  • No implicit or hidden execution paths

Auditability & Traceability

  • Every action logged with timestamps and agent identity
  • RAW โ†’ CLEAN โ†’ GOLD data lineage enforced
  • Event logs provide full execution history
  • Outputs are reproducible and reviewable

Security & Secret Management

  • No credentials committed to source control
  • Environment-based secret injection
  • OAuth scopes isolated per service
  • Webhook contracts enforced via schemas

Operational Reliability

  • Supports both interactive and scheduled execution
  • Designed for non-technical operators
  • Failure isolation at agent level
  • Production-safe by default

Final Closure

ANIS is not a prototype or experimental build. It is a well-engineered, enterprise-ready automation system that demonstrates how AI-driven intent, workflow orchestration, and governed data pipelines can be unified into a single, compliant, extensible platform.

The project stands as a reference implementation for modern, schema-driven, agent-based automation systems suitable for real-world production environments.

About

Advanced, modular, and enterprise-grade AI automation control plane combining Custom GPT Actions, n8n orchestration, Google Workspace workflows, and serverless OCR. Implements schema-driven, agent-based ingest, clean, analyze, and report pipelines with data normalization, conversion, audit logging, cron-based scheduling, & enterprise observability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors