Skip to content

wizardwithcodehazard/clairis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧿 Clairis

Your Agentic AI Form Companion

image

Turn any form into a natural, inclusive conversation β€” instantly.
100% local β€’ Serverless β€’ Privacy-first β€’ Multimodal

GitHub stars License: MIT Chrome Extension n8n


🌟 The Future of Form Filling

Clairis is a standalone, serverless AI agent that lives in your browser and transforms rigid digital forms into empathetic, multilingual conversations.

No backend. No data leaks. Just pure, local intelligence powered by Google Gemini and orchestrated by n8n.


πŸš€ Core Superpowers

Feature Magic Behind It
🧠 Agentic Decision Engine n8n runs locally β€” full control over AI logic, validation, and JSON output
πŸ–ΌοΈ Client-Side Vision Upload ID, screenshot, or doc β†’ instant OCR via direct Gemini API call
πŸ—£οΈ Human-Like Guidance Returns formData + followUpQuestion with empathy & clarity
🌍 Multilingual & Tone-Adaptive Hindi, Tamil, Bengali, etc. β€” tone shifts from formal to friendly on demand
🎀 Voice Input Speak your profile β€” Web Speech API fills it hands-free
πŸ’Ύ Local Profile Vault Save/load unlimited profiles with chrome.storage.local β€” no database, no cloud

πŸ—οΈ Architecture: Clean. Local. Secure.

graph LR
    A[Browser Extension<br/>popup.js] -->|1. Input + CV| B(Gemini API<br/>Direct Call)
    A -->|2. Webhook POST| C[n8n Local Server]
    C -->|3. AI Prompt + Context| D(Gemini Chat Model)
    D -->|4. JSON Response| C
    C -->|5. formData + followUp| A
    A -->|6. Auto-fill + UX| E[Target Web Form]
Loading

All AI runs locally or via direct API calls. No middleman. No data stored.


πŸ”¬ Technical Brilliance

1. Instant Vision Pipeline (No n8n File Bugs!)

fetch('https://generativelanguage.googleapis.com/v1/models/gemini-pro-vision:generateContent?key=' + API_KEY, {
  method: 'POST',
  body: JSON.stringify({
    contents: [{ role: 'user', parts: [
      { text: "Extract all visible text precisely." },
      { inline_data: { mime_type: "image/jpeg", data: base64Image }}
    ]}]
  })
})

β†’ Text appears in Profile Data in <1s


2. The Conversational JSON Contract

{
  "formData": {
    "full_name": "Priya Sharma",
    "role": "",
    "experience": "5"
  },
  "followUpQuestion": "Hi Priya! I filled your name and experience.\n\nThe role field is blank β€” based on your resume, would you like me to suggest:\nβ€’ *Senior ML Engineer*\nβ€’ *AI Research Lead*\n\nJust say the word! 😊"
}
  • "" = safely skipped
  • Multi-line, warm, actionable suggestions
  • Feels like a real assistant

βš™οΈ Setup in 3 Minutes

Prerequisites

# You need:
- Google Gemini API Key
- Chrome (or Chromium browser)
- Node.js

Step 1: Launch n8n (Your Local Brain)

npx n8n

β†’ Opens at http://localhost:5678


Step 2: Import the Clairis Workflow

  1. In n8n: Create New Workflow
  2. Add nodes:
    Webhook β†’ Google Gemini Chat Model β†’ Respond to Webhook
  3. Paste the System Prompt from popup.js (look for SYSTEM_PROMPT)
  4. Activate Webhook β†’ Copy URL β†’ Paste into popup.js

Step 3: Load the Extension

  1. Open popup.js
    const GEMINI_API_KEY = "your-key-here";
    const N8N_WEBHOOK_URL = "http://localhost:5678/webhook/xxxx";
  2. Go to chrome://extensions/
    β†’ Enable Developer Mode
    β†’ Load unpacked β†’ Select the clairis-extension/ folder

Done. Open any form. Click the Clairis icon. Speak, upload, or type.


πŸ“Έ See It in Action

n8n Workflow

n8n Workflow

Clairis Extension

Conversational Magic Vision Extraction

πŸ”₯ Why Clairis Stands Out

Old Way Clairis
Forms = frustration Forms = dialogue
English only 10+ Indian languages
Blind to images Reads IDs, docs, screenshots
Cloud-dependent 100% local, private, offline-ready
Generic output Empathetic, contextual, human

🎯 Quick Demo Flow

  1. Click Clairis icon on any form
  2. Speak: β€œI’m a data scientist with 4 years at Flipkart”
  3. Upload ID β†’ auto-extracts name, DOB, address
  4. AI fills form + asks: β€œShould I list your role as β€˜Senior Data Scientist’?”
  5. Say β€œYes” β†’ done.

πŸ› οΈ Project Structure

clairis/
β”œβ”€β”€ manifest.json
β”œβ”€β”€ popup.html
β”œβ”€β”€ popup.js          # Core logic 
β”œβ”€β”€ icons
└── README.md

🌱 Contributing

We welcome forks, issues, and PRs!

git clone https://github.com/wizardwithcodehazard/clairis.git
# Make your magic
git commit -m "Add Telugu support"
git push

πŸ“„ License

MIT License β€” Free to use, modify, and ship.


Clairis doesn’t just fill forms.

It understands people.

Made with precision β€’ Runs with empathy

About

This repo contains my ai agent extension development project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors