Skip to main content

Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts

Workflow preview

Workflow preview
100%
Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts preview
Open on n8n.io

1. Workflow Overview

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 sta...

Best for

  • DevOps automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts
Workflow name
Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts

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 detected.
  • Save Reports to Database – Store unused package data for long-term trends.
  • CI/CD Integration – Trigger analysis via GitHub Actions or Jenkins.
  • VirusTotal Scan – Add an extra malware check layer.

Use Case Examples

  1. Automated Dependency Cleanup Quickly identify unused libraries after each build upload.
  2. Security Monitoring for Android Releases Ensure risky system packages aren’t unintentionally included.
  3. Team Collaboration Enhancement Send automated insights to Slack for faster decision-making.
  4. QA Validation Before Deployment Confirm that declared dependencies match actual usage.
  5. Build Optimization Remove unnecessary packages to reduce APK size and performance overhead.

> There are many more possible uses depending on team needs and environment.

Troubleshooting Guide

Issue Possible Cause Solution
Workflow not triggering Wrong Google Drive folder Re-select the correct APK folder in the trigger node
MobSF upload failing Wrong URL or server not running Check MobSF Docker container and update the URL
MobSF scan shows empty results APK not parsed successfully Verify the APK is valid and not corrupted
Slack message not delivered Channel permissions or wrong channel ID Reconnect Slack credentials and select a valid channel
AI summary node fails Missing OpenAI credentials Add OpenAI API key in the credentials section

Need Help?

If you need assistance setting up, extending or customizing this workflow, our n8n automation experts at WeblineIndia are available to help.

Whether you want to add new features, integrate more systems or build similar automation workflows, feel free to reach out to us for professional support.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Start Analysis Trigger

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 2 - Download Apk

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - MobSF – Upload APK

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 4 - MobSF – Start Static Analysis

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 5 - Extract used and detected packages

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Identify Unused Packages

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Classify Unused Package Risk Levels

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Generate Developer Summary

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2

Block 9 - Notify Team on Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts
Complexity intermediate
Nodes 14
Categories DevOps, AI Summarization
Author WeblineIndia
Published 01 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14543/14543.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts do?

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 sta...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Summarization use case.