Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (6)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack
What it does
APK Upload Monitoring and Automated MobSF Analysis with Slack Reporting This workflow monitors a Google Drive folder for newly uploaded APK files, automatically downloads them, triggers a MobSF static analysis scan, processes the output to detect unused or risky libraries and sends a developer-friendly summary directly to Slack. It is ideal for teams who want fast, automated insights into Android app dependencies. ⚡ Quick Start: Rapid Implementation Steps 1. Connect Google Drive and select the APK upload folder. 2. Add your MobSF server URL in both HTTP Request nodes. 3. Add your OpenAI API credentials. 4. Connect Slack and choose your preferred channel. 5. Activate the workflow — you're ready to automate APK analysis. What It Does This workflow automates the complete static analysis process for Android APK files. When an APK is uploaded to a specific Google Drive folder, n8n immediately retrieves the file and sends it to MobSF for scanning. MobSF returns detailed JSON-based findings, including code, library usage and component insights. The workflow then uses a series of JavaScript code nodes to extract relevant package information, compare used vs. detected packages, identify unused dependencies and classify them by risk. These results are transformed into a concise summary using an AI model. Finally, the summary is posted automatically to a Slack channel for fast team visibility. This enables developers to take quick action on dependency cleanup, performance optimizations or security risks without manually reading the full MobSF report. Who’s It For Android developers wanting automated dependency insights QA/security teams needing MobSF scans on every APK upload DevOps engineers maintaining CI/CD pipelines Mobile teams who frequently share build artifacts Organizations wanting fast Slack-based reporting Requirements to Use This Workflow A Google Drive account with access to an APK upload folder A running MobSF instance (Docker supported) OpenAI API credentials Slack workspace with API access n8n installed (self-hosted or cloud) How It Works & How To Set Up 1. Google Drive Trigger Setup Connect your Google Drive credentials. Choose the folder dedicated to APK uploads. Event type: fileCreated (fires whenever a new APK is added). 2. Downloading the APK The workflow uses the Google Drive node to download the uploaded file. No manual configuration required beyond credential setup. 3. Configure MobSF Upload Replace the provided local URL with your MobSF instance URL. Ensure MobSF is reachable (via Docker or local network). Use multipart/form-data to upload the binary file. 4. Trigger MobSF Static Scan The next HTTP Request node triggers a static scan using the returned hash. No further configuration needed. 5. Code Nodes (Package Processing) These three nodes: extract used/detected packages, identify unused libraries, classify them as safe, maybe-required or risky. You can customize logic if needed. 6. AI-Based Summary Generation Connect OpenAI credentials. The node generates a clean, non-markdown summary for Slack. 7. Slack Notification Connect your Slack account. Select any desired channel. Summary is pushed instantly on every APK upload. 8. Activate the Workflow Once all credentials are added, enable the workflow and test by uploading an APK. How To Customize Nodes Google Drive Trigger Modify polling interval (e.g., every 5 minutes). Change folder for different build pipelines. MobSF Request Nodes Replace URL to support remote servers or Kubernetes deployments. Add additional headers if needed. Code Nodes Adjust package detection rules. Add tagging, filtering or extra metadata extraction. OpenAI Summary Node Customize the prompt for different reporting styles (e.g., shorter, more technical). Slack Node Add formatting, mentions or route to multiple channels. Add-Ons (Optional Extensions) Email Notifications – Send the same report to email via Gmail or SMTP. Jira Ticket Auto-Creation – Open issues when risky dependencies are det