Skip to main content
A

Aslamul Fikri Alfirdausi

2
Workflows

Workflows by Aslamul Fikri Alfirdausi

Workflow preview: Discover viral social media trends with Gemini Flash & Apify scraping
Free advanced

Discover viral social media trends with Gemini Flash & Apify scraping

## How it works This workflow is a professional-grade market intelligence tool designed to bridge the gap between search interest and social media engagement. It automates the end-to-end process of trend discovery and content strategy. 1. **Detection:** Polls Google Trends RSS daily for rising regional search queries. 2. **Parallel Extraction:** Concurrently triggers industrial-grade **Apify** actors to scrape TikTok, Instagram, and X (Twitter) without the risk of account bans. 3. **Data Aggregation:** Uses custom JavaScript logic to clean and merge disparate data points, optimizing them for LLM processing. 4. **AI Analysis:** **Google Gemini Flash** analyzes the data to identify core topics, sentiment, and trend strength. 5. **Granular Delivery:** Delivers individual, structured reports for each identified trend directly to **Discord** via Webhooks. ## Set up steps 1. **API Credentials:** Prepare your **Apify API Token** and **Google Gemini API Key**. 2. **Discord Setup:** Create a Webhook in your Discord server and paste the URL into the Discord node. 3. **Regional Configuration:** Set your target country code (e.g., `JP`, `ID`, `US`) in the **"Edit Fields"** node at the start of the workflow. 4. **Node Settings:** Ensure all scraper nodes are set to "Continue on Fail" to maintain workflow resilience. ## Requirements * Apify Account. * Google Gemini API Key. * Discord Server for report delivery.

A
Aslamul Fikri Alfirdausi
Market Research
26 Dec 2025
447
0
Workflow preview: Create an all-in-one Discord assistant with Gemini, Llama Vision & Flux images
Free advanced

Create an all-in-one Discord assistant with Gemini, Llama Vision & Flux images

This n8n template demonstrates how to build **O'Carla**, an advanced all-in-one Discord AI assistant. It intelligently handles natural conversations, professional image generation, and visual file analysis within a single server integration. Use cases are many: Deploy a smart community manager that remembers past interactions, an on-demand artistic tool for your members, or an AI that can "read" and explain uploaded documents and images! ## Good to know * **API Costs:** Each interaction costs vary depending on the model used (Gemini vs. OpenRouter). Check your provider's dashboard for updated pricing. * **Infrastructure:** This workflow requires a separate Discord bot script (e.g., Node.js) to forward events to the n8n Webhook. It is recommended to host the bot using **PM2** for 24/7 uptime. ## How it works 1. **Webhook Trigger:** Receives incoming data (text and attachments) from your Discord bot. 2. **Intent Routing:** The workflow uses conditional logic to detect if the user wants an image (via keyword `gambar:`), a vision analysis (via attachments), or a standard chat. 3. **Multi-Model Intelligence:** * **Gemini 2.5:** Powers rapid and high-quality general chat reasoning. * **Llama 3.2 Vision (via OpenRouter):** Specifically used to describe and analyze images or text-based files. * **Flux (via Pollinations):** Uses a specialized AI Agent to refine prompts and generate professional-grade images. 4. **Contextual Memory:** A 50-message buffer window ensures O'Carla maintains the context of your conversation based on your Discord User ID. 5. **Clean UI Output:** Generated image links are automatically shortened via **TinyURL** to keep the Discord chat interface tidy. ## How to use 1. Connect your **Google Gemini** and **OpenRouter** API keys in the respective nodes. 2. Replace the Webhook URL in your bot script with this workflow's **Production Webhook URL**. 3. Type `gambar: [your prompt]` in Discord to generate images. 4. Upload an image or file to Discord to trigger the AI Vision analysis. ## Requirements * n8n instance (Self-hosted or Cloud). * Google Gemini API Key. * OpenRouter API Key. * Discord Bot Token and hosting environment. ## Customising this workflow O'Carla is highly flexible. You can change her personality by modifying the **System Message** in the Agent nodes, adjust the memory window length, or swap the LLM models to specialized ones like Claude 3.5 or GPT-4o.

A
Aslamul Fikri Alfirdausi
Support Chatbot
24 Dec 2025
65
0