Cj Elijah Garay
I build custom AI agents for individuals and startups looking to automate their workflows and gain a competitive edge. My AI solutions work around the clock, handling repetitive tasks and processes so you can focus on what matters most. By automating what can be automated, my clients save time, reduce costs, and stay ahead of competitors who still rely on manual work. Whether you're scaling your business or streamlining personal workflows, I deliver AI automation that works for you.
Templates by Cj Elijah Garay
Discord AI trading assistant with proper position sizing (metatrader5)
AI Trading Assistant with Metatrader5 and position sizing capabilities Trade or buy/sell forex and xauusd/gold assets with this n8n template. It demonstrates an AI-powered Discord bot that monitors trading commands in a private server channel and automatically executes them on MetaTrader 5, using natural language processing to parse flexible trade syntax and manage signal queues with correct position sizing for lot sizes. Use cases are many: Try creating a private Discord trading room where you can execute MT5 trades with simple messages like "buy EU 1% 30 pip SL 3R TP", building a shared trading server where team members can post signals that auto-execute on everyone's MT5, or developing a trading journal bot that logs and executes your strategy calls in real-time! Good to know Always test on demo accounts first - this bot executes real trades based on Discord messages, so thorough testing is critical Requires OpenAI API key for natural language processing (GPT-4o-mini model) - costs approximately $0.0001-0.0003 per trade command Discord OAuth2 authentication required - you'll need to create a Discord application and configure webhook permissions The workflow polls Discord every 7 seconds by default - adjust the Schedule Trigger interval to balance responsiveness vs. API rate limits Only processes messages from specified users without emoji reactions - prevents duplicate processing and allows filtering by username MT5 Trading Signal Handler workflow must be running - this bot sends orders to the webhook endpoints from the companion workflow Supports both market orders (instant execution) and limit orders (pending at specific price) Uses two-stage parsing: regex-based parser for speed, with LLM fallback for complex or ambiguous commands No message history - only processes the most recent Discord message per polling cycle Built-in signal management commands - users can check pending signals or clear the queue via natural language How it works Scheduled Polling: The Schedule Trigger fires every 7 seconds, setting Discord server ID and channel ID credentials, then fetching the most recent message from the specified channel Message Filtering: The workflow filters messages to only process those from the specified username (e.g., "elijahfx") that haven't been reacted to yet, preventing duplicate processing Processing Indicator: Once a valid message is detected, the bot reacts with a π emoji to show it's working, providing immediate user feedback AI Classification: The first LLM (GPT-4o-mini) classifies the message intent into six categories: tradeexecution, tradeinquiry, signalquery, signalclear, helprequest, or offtopic Regex Parsing: For trade execution messages, a JavaScript Code node attempts to extract parameters using regex patterns, detecting order type (market vs limit), direction (buy/sell), asset shortcuts (EUβEURUSD, GUβGBPUSD), risk percentage, stop loss, and take profit LLM Fallback: If the regex parser can't confidently extract all required parameters (needsllmreview: true), a second LLM validates completeness and extracts missing fields, ensuring flexible syntax handling Parameter Validation: The workflow checks if all required parameters are present - market orders need direction, asset, risk%, and SL pips; limit orders additionally require entry price Order Type Routing: A Switch node routes complete orders to the appropriate HTTP endpoint - market orders to /webhook/mt5-market-order, limit orders to /webhook/mt5-limit-order MT5 Execution: HTTP Request nodes send the parsed parameters to your local MT5 webhook endpoints, which execute the trades via the companion MT5 Trading Signal Handler workflow Response Handling: The workflow receives confirmation from MT5, then posts a Discord message confirming successful execution or reporting errors with details Signal Management: For signalquery commands, the bot fetches and displays pending signals from the MT5 queue; for signalclear commands, it purges all pending signals via HTTP request Help System: When users request help, the bot posts comprehensive instructions covering trade syntax, asset shortcuts, required parameters, and example commands Query Handling: Non-trade questions about trading are answered directly by the AI, providing a conversational assistant experience How to use Create a Discord bot application at discord.com/developers and obtain OAuth2 credentials with message read/write and reaction permissions Configure Discord OAuth2 credentials in all Discord nodes (use the same credential across all nodes for consistency) Set your OpenAI API key in the three "4o mini" nodes for LLM processing Update the "set credentials and params" node with your Discord server ID and channel ID (right-click in Discord with Developer Mode enabled to copy IDs) Ensure the MT5 Trading Signal Handler workflow is imported, activated, and running on the same n8n instance (default: localhost:5678) Activate this workflow and verify the Schedule Trigger is set to your desired polling interval (7 seconds default) In the "only get user's message that has no reacts" Filter node, change the username from "elijahfx" to your Discord username Post "help" in your Discord channel to test connectivity and receive the command reference guide Try a test market order: buy EU 1% 30 pip SL 3R TP and watch for the π reaction and confirmation message Test a limit order: buy limit EU at 1.0850 1% risk 30 pip SL 2R TP Query pending signals: show me pending signals or any open signals? Clear the queue: clear all pending signals or cancel all signals Requirements n8n instance running locally or on a private VPS (cloud-hosted n8n may have network restrictions for localhost webhooks) Discord bot application with OAuth2 credentials and appropriate permissions (read messages, send messages, add reactions) OpenAI API account with access to GPT-4o-mini model (approximately $0.15 per 1 million input tokens) MT5 Trading Signal Handler workflow running on the same n8n instance (provides webhook endpoints) Discord server where you have admin permissions to add the bot MetaTrader 5 terminal with the custom EA running and polling the signal queue Basic understanding of Discord bot setup, n8n workflows, and trading concepts Customising this workflow Add multiple user support by removing the username filter or converting it to a whitelist of approved traders Implement authentication by checking for specific Discord roles before processing trade commands (prevents unauthorized trading) Add trade logging by inserting a database node (PostgreSQL, Airtable) after successful execution to maintain a trade journal Create Discord embeds instead of plain text responses using Discord's embed formatting for richer, more professional replies Add risk limits in a Code node before HTTP requests to cap maximum position sizes or enforce daily loss limits Build a dashboard by connecting to Google Sheets or Notion to track all executed trades, win rates, and performance metrics Implement approval workflows where limit orders post to a separate channel for review before execution Add TradingView alerts as an alternative input by creating a webhook trigger that accepts TradingView JSON payloads Create strategy templates where users can save and recall complete trade setups with a single command like "execute strategy A" Enable multi-account trading by routing orders to different MT5 instances based on user roles or command prefixes Try a popular use-case such as building a signal subscription service where premium Discord members get auto-execution while free members only see the signals! Purchasing this N8N workflow comes with the Metatrader5 and N8N Integration for Forex and Gold Trading via Webhooks Workflow too so it is sold together and vice versa as well along with the MQL code for the ExpertAdvisor listener all for the price of 120 usd total Questions? If you have questions or need help with this workflow, feel free to reach out: elijahmamuri@gmail.com elijahfxtrading@gmail.com --- Important Disclaimer: This workflow is provided for educational purposes and demo account testing only. It demonstrates how to build Discord bots with AI-powered natural language processing and webhook integrations. Always test thoroughly on demo accounts, implement proper authentication and security measures, and understand that automated trading involves substantial risk. The bot executes trades based on Discord messages - ensure only authorized users have access. No warranties, financial advice, or guarantees are provided. See the full disclaimer in the workflow for complete terms.
Discord to Google Sheets task manager with GPT prioritization and deep work focus
AI-Powered Discord Task Manager with Priority Intelligence Mission-Aligned Task Tracker: Discord + AI + Google Sheets Opening Summary This n8n template demonstrates how to automate task management by syncing tasks from a Discord channel to Google Sheets, enriching them with AI-driven prioritization, and delivering a daily prioritized digest back to Discord. It streamlines task organization aligned with personal mission and productivity frameworks. Use cases are many: Try managing your teamβs project tasks by automatically prioritizing them based on strategic goals! Try personal task tracking with AI-powered prioritization for optimized daily productivity! Try automating follow-ups and completed task archiving seamlessly between Discord and Google Sheets! Good to know Using OpenAI GPT-4.1 and GPT-5 mini models may incur API costs based on usage (check your OpenAI pricing plan). Google Sheets API has rate limits; large task volumes may require batch adjustments to avoid quota errors. Discord API OAuth2 authentication is needed with permissions to read messages, add reactions, and post messages. The workflow requires shared Google Sheets with specific sheets named Tasks and completed tasks (template link provided). Reaction emojis in Discord (βοΈ for processed, β for completed) are used to track task status within Discord. AI-driven prioritization follows mission alignment based on Eisenhower Matrix, energy levels, and impact scoring. Uses concepts from: Deep work by Cal Newport Essentialism: The Disciplined Pursuit of Less β Greg McKeown (2014) Getting Results the Agile Way β J.D. Meier Hyperfocus β Chris Bailey (2018) Slow Productivity β Cal Newport (2024) Newportβs newest book. Explicitly about doing fewer things, working at a natural pace, and obsessing over qualityβbasically Deep Work 2.0 How it works Schedule Trigger fires hourly to initiate task syncing. Set discord IDs here node defines Discord server and channel IDs for input/output. get data - tasks Channel fetches all messages from the Discord input channel. Loop Over Items1 and if message is recorded already prevent reprocessing tasks. clean data prepares message information to uniform structure. ai task organizer node sends each task text to OpenAI GPT-4.1 mini agent, which analyzes and assigns priority, impact, energy level, category, and other metadata aligned to the user's mission. Tasks are appended to Google Sheets Tasks sheet using Append row in task sheet. react to confirm adds a reaction on Discord to mark the message as processed. Get tasks to do retrieves all in-progress tasks from Google Sheets for daily prioritization. Aggregated task data is analyzed by the AI Agent with GPT-5 mini to select top 6 tasks (3 high-energy, 3 low-energy). The daily prioritized list is split into acceptable message sizes and sent back to a Discord output channel by Send a message node. The workflow checks for tasks with β reactions in Discord (get checked ones), updates their status to "Completed" in Google Sheets (Update row in sheet). Completed tasks are moved to a separate completed tasks sheet (move completed rows to completed sheet) and deleted from active list (delete completed rows) in a loop until none remain. Wait nodes and limits are used to control API call pacing and batch sizes. How to use Set your Discord server and channel IDs for input (tasks-to-do) and output (my-prio-tasks-today) in the Set discord IDs here node. Connect your Google Sheets account and set the Spreadsheet ID in all relevant nodes (the sheet must have Tasks and completed tasks sheets with expected columns). Add your OpenAI API credentials for GPT-4.1 mini (task processing) and GPT-5 mini (daily digest). Ensure your Discord app has OAuth2 tokens with message read, react, and post permissions. Post tasks as messages in the configured Discord input channel. Run the workflow or activate it; it will sync, process, prioritize, and update tasks automatically on schedule. Customize the schedule trigger if you want more frequent or different syncing intervals. Requirements Discord account and bot/app with OAuth2 app credentials for message read, react, and post permissions. Google Sheets account for task data storage, with a spreadsheet structured as specified (Sheets: Tasks, completed tasks). OpenAI API account with access to GPT-4.1 mini and GPT-5 mini models for AI task analysis and summarization. Google Sheets OAuth2 credentials configured in n8n. Properly set Discord server and channel IDs in the workflow. Customising this workflow Try adding support for multiple Discord servers or channels to centralize tasks from different teams or projects. Extend AI prompts to include deadlines parsing or automated reminders. Customize the Google Sheets columns or the scoring logic to fit your unique productivity frameworks or KPIs. Incorporate notifications via email or Slack based on task priority or completion. Replace Google Sheets with other databases if scalable storage is required. Adjust the energy level and impact criteria in AI prompts to match your personal productivity rhythms. Sample inputs: "publish tasks tracker asap" "Improve personal portfolio asap" "Watch new movie - Jujutsu Kaisen" Sample output: π₯ Today's Agenda ββββββββββββββββββββββββββββββββ β‘ Morning Deep Work Blocks (High Energy Required) Do these during peak hours (6 AM to 2 PM or whenever you're sharpest) 1οΈβ£ Improve personal portfolio for job applications π‘ Why: Critical for landing > 50k automation job - enhances job application success π Priority: 100 | Impact: 10/10 Link: (https://discord.com/channels/1373770435146689/1481777943919293/1440107502032) 2οΈβ£ Complete all Udemy n8n courses ASAP π‘ Why: Essential skill for landing >50k automation job and digital product creation π Priority: 88 | Impact: 9/10 Link: (https://discord.com/channels/137770435134668/14348177539192/14365639629204) 3οΈβ£ Finish finance debt tracker and publish as template π‘ Why: Generates immediate income potential and supports income generation π Priority: 86 | Impact: 9/10 Link: (https://discord.com/channels/1373767704351346/1434817779453919/1436445965471973) ββββββββββββββββββββββββββββββββ π― DOWNTIME BLOCK (Low-Medium Energy) Do these during energy dips (post-lunch, late afternoon, tired moments) 1οΈβ£ Call Bank collections agency (09277055515 / 09559050973) π‘ Why: Limited-time offer; could significantly monthly payments π Priority: 96 | Impact: 10/10 | Energy: Medium Link: (https://discord.com/channels/13767704351/14348177453/14379926889894) 2οΈβ£ Publish n8n workflow and submit for verification π‘ Why: Enables earning from this and future n8n workflows β immediate income opportunity π Priority: 96 | Impact: 9/10 | Energy: Medium Link: (https://discord.com/channels/1373767435134/14347794539/143810998822) 3οΈβ£ Plan and pay Loan π‘ Why: Immediate debt payments reduce penalties/interest and support financial stability π Priority: 96 | Impact: 10/10 | Energy: Medium Link: (https://discord.com/channels/1373767704351346/143481777945391/14382823609982) ββββββββββββββββββββββββββββββββ πͺ EXECUTION STRATEGY π‘οΈ Morning Block: Protect this ruthlessly β no meetings, no social, deep work only. βοΈ Downtime Block: Tackle these during lower-energy windows; they move the money/debt needle without burning you out. π― Win Condition: Complete all 6 = massive progress toward landing high-paying work and eliminating high-priority debt. Protect your morning deep work at all costs β it's your leverage. You're building financial freedom one prioritized action at a time. If you finish all 6 today: your portfolio and skills will be significantly closer to landing high-paying work, and you'll make a major dent in urgent debt obligations. Questions? If you have questions or need help with this workflow, feel free to reach out: elijahmamuri@gmail.com elijahfxtrading@gmail.com
Moderate your Discord server using chatGPT-5 & Google Sheets (Learning system)
Discord AI Content Moderator with Learning System This n8n template demonstrates how to automatically moderate Discord messages using AI-powered content analysis that learns from your community standards. It continuously monitors your server, intelligently flags problematic content while allowing context-appropriate language, and provides a complete audit trail for all moderation actions. Use cases are many: Try moderating a forex trading community where enthusiasm runs high, protecting a gaming server from toxic behavior while keeping banter alive, or maintaining professional standards in a business Discord without being overly strict! Good to know This workflow uses OpenAI's GPT-5 Mini model which incurs API costs per message analyzed (approximately $0.001-0.003 per moderation check depending on message volume) The workflow runs every minute by default - adjust the Schedule Trigger interval based on your server activity and budget Discord API rate limits apply - the batch processor includes 1.5-second delays between deletions to prevent rate limiting You'll need a Google Sheet to store training examples - a template link is provided in the workflow notes The AI analyzes context and intent, not just keywords - "I cking love this community" won't be deleted, but "you guys are sht" will be Deleted messages cannot be recovered from Discord - the admin notification channel preserves the content for review How it works The Schedule Trigger activates every minute to check for new messages requiring moderation We'll fetch training data from Google Sheets containing labeled examples of messages to delete (with reasons) and messages to keep The workflow retrieves the last 10 messages from your specified Discord channel using the Discord API A preparation node formats both the training examples and recent messages into a structured prompt with unique indices for each message The AI Agent (powered by GPT-5 Mini) analyzes each message against your community standards, considering intent and context rather than just keywords The AI returns a JSON array of message indices that violate guidelines (e.g., [0, 2, 5]) A parsing node extracts these indices, validates them, removes duplicates, and maps them to actual Discord message objects The batch processor loops through each flagged message one at a time to prevent API rate limiting and ensure proper error handling Each message is deleted from Discord using the exact message ID A 1.5-second wait prevents hitting Discord's rate limits between operations Finally, an admin notification is posted to your designated admin channel with the deleted message's author, ID, and original content for audit purposes How to use Replace the Discord Server ID, Moderated Channel ID, and Admin Channel ID in the "Edit Fields" node with your server's specific IDs Create a copy of the provided Google Sheets template with columns: messagecontent, shoulddelete (YES/NO), and reason Connect your Discord OAuth2 credentials (requires bot permissions for reading messages, deleting messages, and posting to channels) Add your OpenAI API key to access GPT-5 Mini Customize the AI Agent's system message to reflect your specific community standards and tone Adjust the message fetch limit (default: 10) based on your server activity - higher limits cost more per run but catch more violations Consider changing the Schedule Trigger from every minute to every 3-5 minutes if you have a smaller community Requirements Discord OAuth2 credentials for bot authentication with message read, delete, and send permissions Google Sheets API connection for accessing the training data knowledge base OpenAI API key for GPT-5 Mini model access A Google Sheet formatted with message examples, deletion labels, and reasoning Discord Server ID, Channel IDs (moderated + admin) which you can get by enabling Developer Mode in Discord Customising this workflow Try building an emoji-based feedback system where admins can react to notifications with β (correct deletion) or β (wrong deletion) to automatically update your training data Add a severity scoring system that issues warnings for minor violations before deleting messages Implement a user strike system that tracks repeat offenders and automatically applies temporary mutes or bans Expand the AI prompt to categorize violations (spam, harassment, profanity, etc.) and route different types to different admin channels Create a weekly digest that summarizes moderation statistics and trending violation types Add support for monitoring multiple channels by duplicating the Discord message fetch nodes with different channel IDs Integrate with a database instead of Google Sheets for faster lookups and more sophisticated training data management If you have questions Feel free to contact me here: elijahmamuri@gmail.com elijahfxtrading@gmail.com
AI trading assistant for Telegram using chatGPT-4o (with Position Sizing)
MT5 AI Trading Assistant - Telegram Bot Workflow with position sizing capabilities Open trades for forex/xauusd/gold with this n8n template. It demonstrates how to automate MetaTrader 5 trading executions through natural language commands via Telegram, enabling hands-free trade management with AI-powered intent classification and parameter parsing. Use cases are many Try executing market orders right away when you see an opportunity using commands, setting up limit orders with precise entry points, or managing pending signals directly from your phone! This workflow handles everything from simple "buy EU 1% 30 pip SL and 3R TP" commands to complex limit orders with risk-reward calculations. Good to know This template is for educational purposes only - requires significant security hardening before live trading use OpenAI API costs apply - approximately $0.0001-0.0005 per message depending on complexity Webhook endpoints are NOT authenticated by default - you must add authentication before production deployment or if you want extra security No built-in position size limits - add validation to cap maximum risk percentage MT5 Expert Advisor required - this workflow only sends signals; you need a separate EA to execute trades Local/VPS deployment recommended - not suitable for public cloud without security hardening Always test with demo accounts first - automated trading involves substantial risk of loss How it works The Telegram Chat Trigger listens for incoming messages from authorized users in your Telegram bot A reaction emoji (π) is immediately sent to acknowledge message receipt using the Telegram API The first AI classifier (GPT-4o mini) analyzes the message intent and categorizes it into six types: trade execution, trade inquiry, help request, signal query, signal clear, or off-topic For trade execution commands, a regex-based parser extracts parameters (asset, direction, risk, stop loss, take profit) from natural language If initial parsing is incomplete or confidence is low, an LLM fallback parser attempts to extract missing parameters with strict validation Complete trade parameters are routed through a Switch node to determine order type (market vs limit) Market orders trigger an HTTP POST to webhook/mt5-market-order with asset, direction, risk, SL, and TP parameters Limit orders include an additional entry price parameter and route to webhook/mt5-limit-order For signal queries, the workflow fetches pending signals from webhook/mt5-signals and formats the response Signal clearing commands POST to webhook/mt5-clear-all to remove all pending orders Trade execution success/failure is validated and appropriate confirmation messages are sent back to Telegram Help requests receive multi-part instructional messages with command examples and formatting guidelines How to use Set up your Telegram bot via BotFather and obtain your bot token Configure the Telegram credentials in both the Chat Trigger and all response nodes Add your OpenAI API key to the three "4o mini" language model nodes Deploy the four MT5 webhook endpoints (market-order, limit-order, signals, clear-all) on your local machine or VPS Critical: Implement authentication on all webhook endpoints before connecting to live MT5 accounts Test commands with demo account first: try "buy EU 1% 30 pip SL 3R TP" or "show pending signals" Consider adding user ID whitelisting in the "set credentials and params" node for access control Modify the AI prompts in the classifier nodes to adjust trading parameter validation rules Requirements Telegram Bot API account for receiving and sending messages OpenAI API key for GPT-4o mini language model (intent classification and parameter parsing) MetaTrader 5 platform with custom Expert Advisor that listens to webhook signals n8n instance running locally or on VPS (self-hosted or cloud) Basic understanding of forex trading concepts (pips, risk management, order types) Customising this workflow Add a user whitelist validation node after the Telegram trigger to restrict access to specific Telegram user IDs Implement maximum risk percentage caps (e.g., 5%) in the parameter validation nodes Create an asset whitelist to only allow specific currency pairs your broker supports Add audit logging by storing trade commands and execution results to a database Include trade confirmation mode: send preview before execution and wait for "confirm" message Integrate with position sizing calculators based on account equity and volatility Add webhook authentication headers (API keys or JWT tokens) to all HTTP request nodes Create a scheduled workflow to auto-expire pending signals after a certain time period Try a popular use-case such as connecting to TradingView alerts instead of manual Telegram commands Important Security Disclaimer β οΈ This workflow is NOT production-ready in its current form. Before using with live trading: Add authentication to all webhook endpoints Implement input validation for risk limits, asset whitelists, and parameter ranges Add rate limiting to prevent spam attacks Set up user authorization to restrict who can execute trades Test extensively with demo accounts for at least 3-6 months Understand that automated trading involves substantial risk of loss This template is provided for educational purposes only and does not constitute financial advice. You are solely responsible for implementing security measures, testing thoroughly, and accepting all trading risks. Purchasing this N8N workflow comes with the Metatrader5 and N8N Integration for Forex and Gold Trading via Webhooks Workflow too so it is sold together and vice versa as well along with the MQL code for the ExpertAdvisor listener all for the price of 120 usd total Questions? If you have questions or need help with this workflow, feel free to reach out: elijahmamuri@gmail.com elijahfxtrading@gmail.com