Skip to main content

Audit Android feature flags from GitHub with Firebase and send Slack reports

Workflow preview

Workflow preview
100%
Audit Android feature flags from GitHub with Firebase and send Slack reports preview
Open on n8n.io

1. Workflow Overview

Android Feature Flag Cleanup Automation This workflow automatically scans an Android GitHub repository, detects feature flags used in the codebase, compares them with Firebase Remote Config flags, ...

Best for

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

Tools used

n8n-nodes-base.code, n8n-nodes-base.cron, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.if, n8n-nodes-base.splitinbatches, n8n-nodes-base.slack

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
Audit Android feature flags from GitHub with Firebase and send Slack reports
Workflow name
Audit Android feature flags from GitHub with Firebase and send Slack reports

Android Feature Flag Cleanup Automation

This workflow automatically scans an Android GitHub repository, detects feature flags used in the codebase, compares them with Firebase Remote Config flags, identifies unused flags and sends a weekly cleanup report to Slack.

This workflow runs every week and checks Android source files (.kt / .java) inside your GitHub repository. It finds possible feature flags used in code, compares them with Firebase Remote Config flags and highlights flags that may no longer be used.

It then builds a clean summary report and sends the result to Slack for team review.

You receive:

  • Weekly automated Android flag audit
  • Unused Firebase flag detection
  • Slack summary report for cleanup review
  • Better visibility of active vs stale flags

Ideal for Android teams who want cleaner Firebase Remote Config management.

Quick Start – Implementation Steps

  1. Login to your n8n account.
  2. Add your GitHub credential in n8n.
  3. Update repository owner, repo name and branch.
  4. Add Slack credentials and choose a channel.
  5. Add Firebase Remote Config API later (currently test data supported).
  6. Activate workflow for weekly automation.

What It Does

This workflow automates Android feature flag cleanup:

  1. Runs automatically every week.
  2. Connects to GitHub repository.
  3. Fetches all Android .kt and .java files.
  4. Reads source code files.
  5. Detects possible feature flags inside code.
  6. Loads Firebase Remote Config flags.
  7. Compares code flags vs Firebase flags.
  8. Finds unused Firebase flags.
  9. Creates final summary report.
  10. Sends report to Slack.

This helps teams remove stale flags and maintain clean configuration.

Who It's For

This workflow is ideal for:

  • Android development teams
  • Tech leads
  • QA teams
  • DevOps / Release teams
  • Firebase Remote Config users
  • Teams maintaining multiple feature flags

Requirements to Use This Workflow

To run this workflow, you need:

  • n8n account (cloud or self-hosted)
  • GitHub repository access
  • Slack workspace
  • Firebase Remote Config project (optional initially)
  • Basic understanding of Android source files

How It Works

  1. Weekly Trigger – Workflow starts automatically every week.
  2. Load Settings – Reads repository and workflow settings.
  3. Connect GitHub – Fetches project files.
  4. Filter Android Files – Only .kt and .java files selected.
  5. Read Code – Downloads and decodes file content.
  6. Detect Flags – Finds feature flags from source code.
  7. Load Firebase Flags – Uses Firebase Remote Config flags.
  8. Compare Flags – Finds used and unused flags.
  9. Create Report – Builds totals and cleanup summary.
  10. Send Slack Alert – Posts report to team channel.

Setup Steps

  1. Import the workflow JSON into n8n.
  2. Open Workflow Settings node.
  3. Enter:
  • GitHub Owner
  • GitHub Repo
  • Branch Name
  1. Connect GitHub credentials.
  2. Connect Slack credentials.
  3. Select Slack channel.
  4. Replace mock Firebase flags with real Firebase API later.
  5. Activate workflow.

How To Customize Nodes

Customize Scan Schedule

Change Cron node:

  • Weekly
  • Daily
  • Monthly

Customize File Types

Change file filter:

  • .kt
  • .java
  • .xml
  • .gradle

Customize Flag Detection

Improve regex to detect:

  • BuildConfig.FEATURE_*
  • RemoteConfig.getString()
  • Custom wrappers

Customize Slack Alerts

You may add:

  • Emojis
  • Mentions
  • Team tags
  • Priority warnings

Add-Ons (Optional Enhancements)

You can extend this workflow to:

  • Create Jira cleanup tickets
  • Update Google Sheets catalog
  • Create GitHub PR with markdown report
  • Track first seen / last seen flags
  • Team ownership by prefix
  • Strict aging rules (30+ days unused)
  • Multi-repository scanning

Use Case Examples

1. Firebase Cleanup

Remove old Remote Config flags not used in app code.

2. Weekly Engineering Report

Send flag health report to Slack.

3. Release Readiness

Check unused experiments before release.

4. Tech Debt Reduction

Keep feature flag system clean and manageable.

5. Multi-Team Visibility

Know which flags are active or stale.

Troubleshooting Guide

Issue Possible Cause Solution
No files found Wrong repo/branch Check settings
Slack message failed Wrong credentials Reconnect Slack
No flags detected Regex too strict Improve detection logic
Too many files Large repo Reduce scan scope
Firebase data empty API not connected Use mock data or fix API
Workflow not running Disabled trigger Enable Cron node

Need Help?

If you need help customizing this workflow by adding Jira, Google Sheets, GitHub PR creation, real Firebase API integration or scaling for enterprise use then our n8n workflow developers at WeblineIndia can help build an advanced production-ready version.

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 - Code: Compare Flags

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

Block 2 - Extercet key flags

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

Block 3 - Filter keys

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

Block 4 - classify key

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

Block 5 - Weekly Schedule Trigger

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

Block 6 - Set: Repository Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Get Branch Details

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

Block 8 - Get Repository File List

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

Block 9 - Process Each File Separately

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

Block 10 - check file IF: .kt or .java

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Download File Content

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

Block 12 - Read Files One by One

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

Block 13 - Decode File Content

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

Block 14 - Mock Firebase Flags Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Create Final Summary Report

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

Block 16 - Send Slack Report

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

Block 17 - Sticky Note

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

Block 18 - Sticky Note1

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

Block 19 - Sticky Note2

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

Block 20 - Sticky Note3

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

3. Summary Table

Workflow Audit Android feature flags from GitHub with Firebase and send Slack reports
Complexity advanced
Nodes 20
Categories DevOps, AI Summarization
Author WeblineIndia
Published 22 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15233/15233.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 Audit Android feature flags from GitHub with Firebase and send Slack reports do?

Android Feature Flag Cleanup Automation This workflow automatically scans an Android GitHub repository, detects feature flags used in the codebase, compares them with Firebase Remote Config flags, ...

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.