This module is the core orchestration hub of the SLR Magic ecosystem. Built as a Google Apps Script linked to Google Sheets, it serves as both the central database and the primary user interface for researchers. It manages the entire Systematic Literature Review pipeline—from defining inclusion/exclusion criteria to generating prompts, firing concurrent requests to the LLM backend proxy, and organizing the extracted data into structured formats.
- Automated Environment Setup: Instantly generates the necessary worksheet structures.
- Provider Agnostic: Supports natively connecting to Google Gemini or routing traffic through the custom
llm-proxyto local Ollama or vLLM endpoints. - Parallel Processing: Batches LLM requests to dramatically speed up screening of thousands of papers.
- Multi-Agent Architecture: Utilizes specialized prompts (The Gatekeeper, The Scientist, The Miner) for abstract screening, full-text reading, and forensic data extraction.
- Visualization: Generates built-in charts (Sankey, Pie, Bar) directly in the spreadsheet from collected data.
- Node.js: Needed to run
clasplocally. Install from nodejs.org. - Clasp (Command Line Apps Script Projects): Install globally via npm:
npm install -g @google/clasp
- Google Account: Ensure the Apps Script API is enabled at script.google.com/home/usersettings.
This project uses clasp to push local code to Google's servers.
-
Login to Google:
clasp login
(This opens a browser window for authorization).
-
Create or Clone the Project:
- Option A (Fresh Setup - Recommended): Create a new bound Google Sheet project:
clasp create --type sheets --title "SLR Magic Master Project" - Option B (Existing Project):
clasp clone <your-script-id>
- Option A (Fresh Setup - Recommended): Create a new bound Google Sheet project:
-
Deploy Code: Push the local files from the
app-script/directory to the Google cloud:clasp push
-
Open the Sheet:
clasp open
- In the newly opened Google Sheet, select the SLR Magic > Configuration menu.
- Select your LLM API Provider (e.g., Gemini, or proxy via Ollama/vLLM).
- If using the custom proxy, enter the endpoint URL running the
llm-proxybackend (e.g.,http://<your-ip>:8899). - Set up the specific Prompts (Abstract Screening, Gatekeeper, Scientist, Miner) relevant to your specific research questions.
- Set the PDF_REPO URL indicating where full-text PDFs are stored.
- Initialization: Click SLR Magic > Initialize Environment to generate all necessary tabs (
01_abstract_screening,03_fulltext_screening, etc.). - Abstract Screening: Import your raw CSV (from Scopus/WoS), then click SLR Magic > Start AI Title-Abstract Screening.
- Full-Text Screening: Import PDFs via utilities, then click SLR Magic > Start AI Full-Text Screening.
- Data Sync: After screening, use SLR Magic > Process Data Collection to compile all structured JSON into the final collection tab.














